Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 487 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 622 | gt_needs= |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 623 | ac_header_list= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 624 | gl_use_threads_default= |
| 625 | ac_func_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 627 | LIBOBJS |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 628 | LDFLAGS_SHLIB |
| 629 | CFLAGS_STLIB |
| 630 | CFLAGS_SHLIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 631 | BUILD_LDFLAGS |
| 632 | BUILD_CFLAGS |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 633 | MKINSTALLDIRS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 634 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | DO_TEST_SUITE |
| 636 | ET_DIR |
| 637 | SS_DIR |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 638 | LDFLAGS_STATIC |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 639 | root_sysconfdir |
| 640 | root_libdir |
| 641 | root_sbindir |
| 642 | root_bindir |
| 643 | root_prefix |
| 644 | UNIX_CMT |
| 645 | CYGWIN_CMT |
| 646 | LINUX_CMT |
| 647 | UNI_DIFF_OPTS |
| 648 | SEM_INIT_LIB |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 649 | FUSE_CMT |
| 650 | FUSE_LIB |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 651 | MAGIC_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 652 | SOCKET_LIB |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame] | 653 | SIZEOF_TIME_T |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 654 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 655 | SIZEOF_LONG_LONG |
| 656 | SIZEOF_LONG |
| 657 | SIZEOF_INT |
| 658 | SIZEOF_SHORT |
| 659 | BUILD_CC |
| 660 | MAKEINFO |
| 661 | STRIP |
| 662 | AR |
| 663 | LDCONFIG |
| 664 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 665 | AWK |
| 666 | CHMOD |
| 667 | RM |
| 668 | CP |
| 669 | MV |
| 670 | LN_S |
| 671 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 672 | ifNotGNUmake |
| 673 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 674 | BINARY_TYPE |
| 675 | POSUB |
| 676 | LTLIBINTL |
| 677 | LIBINTL |
| 678 | INTLLIBS |
| 679 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 680 | INTLOBJS |
| 681 | GENCAT |
| 682 | INSTOBJEXT |
| 683 | DATADIRNAME |
| 684 | CATOBJEXT |
| 685 | USE_INCLUDED_LIBINTL |
| 686 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 687 | LTLIBC |
| 688 | WINDRES |
| 689 | WOE32 |
| 690 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 691 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 692 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 693 | HAVE_SNPRINTF |
| 694 | HAVE_ASPRINTF |
| 695 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 696 | INTL_DEFAULT_VERBOSITY |
| 697 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 698 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 699 | INTLBISON |
| 700 | LTLIBICONV |
| 701 | LIBICONV |
| 702 | LTLIBMULTITHREAD |
| 703 | LIBMULTITHREAD |
| 704 | LTLIBTHREAD |
| 705 | LIBTHREAD |
| 706 | LIBPTH_PREFIX |
| 707 | LTLIBPTH |
| 708 | LIBPTH |
| 709 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 710 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 711 | HAVE_VISIBILITY |
| 712 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 713 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 714 | GLIBC2 |
| 715 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 716 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 717 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 718 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 719 | GMSGFMT_015 |
| 720 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 721 | GMSGFMT |
| 722 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 723 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 724 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 725 | SED |
| 726 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 727 | INSTALL_DATA |
| 728 | INSTALL_SCRIPT |
| 729 | INSTALL_PROGRAM |
| 730 | SET_MAKE |
| 731 | VERSION |
| 732 | PACKAGE |
| 733 | GETTEXT_PACKAGE |
Theodore Ts'o | 749f071 | 2016-05-29 20:48:54 -0400 | [diff] [blame] | 734 | TDB_MAN_COMMENT |
| 735 | TDB_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 736 | UUIDD_CMT |
| 737 | E2INITRD_MAN |
| 738 | E2INITRD_PROG |
| 739 | FSCK_MAN |
| 740 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 741 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 742 | RESIZER_CMT |
| 743 | IMAGER_CMT |
| 744 | DEBUGFS_CMT |
| 745 | BLKID_CMT |
| 746 | DEPPROFILED_LIBBLKID |
| 747 | PROFILED_LIBBLKID |
| 748 | DEPSTATIC_LIBBLKID |
| 749 | STATIC_LIBBLKID |
| 750 | DEPLIBBLKID |
| 751 | LIBBLKID |
| 752 | UUID_CMT |
| 753 | DEPPROFILED_LIBUUID |
| 754 | PROFILED_LIBUUID |
| 755 | DEPSTATIC_LIBUUID |
| 756 | STATIC_LIBUUID |
| 757 | DEPLIBUUID |
| 758 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 759 | PKG_CONFIG_LIBDIR |
| 760 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 761 | PKG_CONFIG |
| 762 | TEST_IO_CMT |
| 763 | PRIVATE_LIBS_CMT |
| 764 | LDFLAG_DYNAMIC |
| 765 | PROFILED_LIB_EXT |
| 766 | STATIC_LIB_EXT |
| 767 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 768 | PROFILE_CMT |
| 769 | BSDLIB_CMT |
| 770 | ELF_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 771 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 772 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 773 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 774 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 775 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 776 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 777 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 778 | EGREP |
| 779 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 780 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 781 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 782 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 783 | OBJEXT |
| 784 | EXEEXT |
| 785 | ac_ct_CC |
| 786 | CPPFLAGS |
| 787 | LDFLAGS |
| 788 | CFLAGS |
| 789 | CC |
| 790 | host_os |
| 791 | host_vendor |
| 792 | host_cpu |
| 793 | host |
| 794 | build_os |
| 795 | build_vendor |
| 796 | build_cpu |
| 797 | build |
| 798 | E2FSPROGS_PKGVER |
| 799 | E2FSPROGS_VERSION |
| 800 | E2FSPROGS_DAY |
| 801 | E2FSPROGS_MONTH |
| 802 | E2FSPROGS_YEAR |
| 803 | target_alias |
| 804 | host_alias |
| 805 | build_alias |
| 806 | LIBS |
| 807 | ECHO_T |
| 808 | ECHO_N |
| 809 | ECHO_C |
| 810 | DEFS |
| 811 | mandir |
| 812 | localedir |
| 813 | libdir |
| 814 | psdir |
| 815 | pdfdir |
| 816 | dvidir |
| 817 | htmldir |
| 818 | infodir |
| 819 | docdir |
| 820 | oldincludedir |
| 821 | includedir |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 822 | runstatedir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 823 | localstatedir |
| 824 | sharedstatedir |
| 825 | sysconfdir |
| 826 | datadir |
| 827 | datarootdir |
| 828 | libexecdir |
| 829 | sbindir |
| 830 | bindir |
| 831 | program_transform_name |
| 832 | prefix |
| 833 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 834 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 835 | PACKAGE_BUGREPORT |
| 836 | PACKAGE_STRING |
| 837 | PACKAGE_VERSION |
| 838 | PACKAGE_TARNAME |
| 839 | PACKAGE_NAME |
| 840 | PATH_SEPARATOR |
| 841 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 842 | ac_subst_files='MCONFIG |
| 843 | MAKEFILE_ELF |
| 844 | MAKEFILE_BSDLIB |
| 845 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 846 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 847 | ASM_TYPES_HEADER |
| 848 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 849 | ac_user_opts=' |
| 850 | enable_option_checking |
| 851 | with_diet_libc |
| 852 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 853 | with_ccopts |
| 854 | with_ldopts |
| 855 | with_root_prefix |
| 856 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 857 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 858 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 859 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 860 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 861 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 862 | enable_elf_shlibs |
| 863 | enable_bsd_shlibs |
| 864 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 865 | enable_gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 866 | enable_hardening |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 867 | enable_jbd_debug |
| 868 | enable_blkid_debug |
| 869 | enable_testio_debug |
| 870 | enable_libuuid |
| 871 | enable_libblkid |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 872 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 873 | enable_debugfs |
| 874 | enable_imager |
| 875 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 876 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 877 | enable_fsck |
| 878 | enable_e2initrd_helper |
| 879 | enable_tls |
| 880 | enable_uuidd |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 881 | enable_mmp |
Theodore Ts'o | 749f071 | 2016-05-29 20:48:54 -0400 | [diff] [blame] | 882 | enable_tdb |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 883 | enable_bmap_stats |
| 884 | enable_bmap_stats_ops |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 885 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 886 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 887 | with_gnu_ld |
| 888 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 889 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 890 | with_libiconv_prefix |
| 891 | with_included_gettext |
| 892 | with_libintl_prefix |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 893 | enable_fuse2fs |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 894 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 895 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 896 | ac_precious_vars='build_alias |
| 897 | host_alias |
| 898 | target_alias |
| 899 | CC |
| 900 | CFLAGS |
| 901 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 902 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 903 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 904 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 905 | PKG_CONFIG |
| 906 | PKG_CONFIG_PATH |
| 907 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 908 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | |
| 910 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 911 | ac_init_help= |
| 912 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 913 | ac_unrecognized_opts= |
| 914 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | # The variables have the same names as the options, with |
| 916 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 917 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 918 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 920 | no_recursion= |
| 921 | prefix=NONE |
| 922 | program_prefix=NONE |
| 923 | program_suffix=NONE |
| 924 | program_transform_name=s,x,x, |
| 925 | silent= |
| 926 | site= |
| 927 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 928 | verbose= |
| 929 | x_includes=NONE |
| 930 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 931 | |
| 932 | # Installation directory options. |
| 933 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 934 | # and all the variables that are supposed to be based on exec_prefix |
| 935 | # by default will actually change. |
| 936 | # 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] | 937 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 938 | bindir='${exec_prefix}/bin' |
| 939 | sbindir='${exec_prefix}/sbin' |
| 940 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 941 | datarootdir='${prefix}/share' |
| 942 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 943 | sysconfdir='${prefix}/etc' |
| 944 | sharedstatedir='${prefix}/com' |
| 945 | localstatedir='${prefix}/var' |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 946 | runstatedir='${localstatedir}/run' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 947 | includedir='${prefix}/include' |
| 948 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 949 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 950 | infodir='${datarootdir}/info' |
| 951 | htmldir='${docdir}' |
| 952 | dvidir='${docdir}' |
| 953 | pdfdir='${docdir}' |
| 954 | psdir='${docdir}' |
| 955 | libdir='${exec_prefix}/lib' |
| 956 | localedir='${datarootdir}/locale' |
| 957 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 958 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 959 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 960 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 961 | for ac_option |
| 962 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 963 | # If the previous option needs an argument, assign it. |
| 964 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 965 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 966 | ac_prev= |
| 967 | continue |
| 968 | fi |
| 969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 970 | case $ac_option in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 971 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 972 | *=) ac_optarg= ;; |
| 973 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 974 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 975 | |
| 976 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 978 | case $ac_dashdash$ac_option in |
| 979 | --) |
| 980 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 981 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 982 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 983 | ac_prev=bindir ;; |
| 984 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 985 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 986 | |
| 987 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 988 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 989 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 990 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 991 | |
| 992 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 993 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 994 | ac_prev=cache_file ;; |
| 995 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 996 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 997 | cache_file=$ac_optarg ;; |
| 998 | |
| 999 | --config-cache | -C) |
| 1000 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1002 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1003 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1004 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1005 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1007 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1008 | | --dataroo | --dataro | --datar) |
| 1009 | ac_prev=datarootdir ;; |
| 1010 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1011 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1012 | datarootdir=$ac_optarg ;; |
| 1013 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1014 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1015 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1018 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1019 | ac_useropt_orig=$ac_useropt |
| 1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1021 | case $ac_user_opts in |
| 1022 | *" |
| 1023 | "enable_$ac_useropt" |
| 1024 | "*) ;; |
| 1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1026 | ac_unrecognized_sep=', ';; |
| 1027 | esac |
| 1028 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1029 | |
| 1030 | -docdir | --docdir | --docdi | --doc | --do) |
| 1031 | ac_prev=docdir ;; |
| 1032 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1033 | docdir=$ac_optarg ;; |
| 1034 | |
| 1035 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1036 | ac_prev=dvidir ;; |
| 1037 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1038 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1039 | |
| 1040 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1041 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1042 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1043 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1044 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1045 | ac_useropt_orig=$ac_useropt |
| 1046 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1047 | case $ac_user_opts in |
| 1048 | *" |
| 1049 | "enable_$ac_useropt" |
| 1050 | "*) ;; |
| 1051 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1052 | ac_unrecognized_sep=', ';; |
| 1053 | esac |
| 1054 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1055 | |
| 1056 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1057 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1058 | | --exec | --exe | --ex) |
| 1059 | ac_prev=exec_prefix ;; |
| 1060 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1061 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1062 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1063 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1064 | |
| 1065 | -gas | --gas | --ga | --g) |
| 1066 | # Obsolete; use --with-gas. |
| 1067 | with_gas=yes ;; |
| 1068 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1069 | -help | --help | --hel | --he | -h) |
| 1070 | ac_init_help=long ;; |
| 1071 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1072 | ac_init_help=recursive ;; |
| 1073 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1074 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1075 | |
| 1076 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1077 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1078 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1079 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1081 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1082 | ac_prev=htmldir ;; |
| 1083 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1084 | | --ht=*) |
| 1085 | htmldir=$ac_optarg ;; |
| 1086 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1087 | -includedir | --includedir | --includedi | --included | --include \ |
| 1088 | | --includ | --inclu | --incl | --inc) |
| 1089 | ac_prev=includedir ;; |
| 1090 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1091 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1092 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1093 | |
| 1094 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1095 | ac_prev=infodir ;; |
| 1096 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1098 | |
| 1099 | -libdir | --libdir | --libdi | --libd) |
| 1100 | ac_prev=libdir ;; |
| 1101 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1102 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1103 | |
| 1104 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1105 | | --libexe | --libex | --libe) |
| 1106 | ac_prev=libexecdir ;; |
| 1107 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1108 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1109 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1111 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1112 | ac_prev=localedir ;; |
| 1113 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1114 | localedir=$ac_optarg ;; |
| 1115 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1116 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1117 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1118 | ac_prev=localstatedir ;; |
| 1119 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1120 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1122 | |
| 1123 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1124 | ac_prev=mandir ;; |
| 1125 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1126 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1127 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | -nfp | --nfp | --nf) |
| 1129 | # Obsolete; use --without-fp. |
| 1130 | with_fp=no ;; |
| 1131 | |
| 1132 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1133 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1134 | no_create=yes ;; |
| 1135 | |
| 1136 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1137 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1138 | no_recursion=yes ;; |
| 1139 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1140 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1141 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1142 | | --oldin | --oldi | --old | --ol | --o) |
| 1143 | ac_prev=oldincludedir ;; |
| 1144 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1145 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1146 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1148 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1149 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1150 | ac_prev=prefix ;; |
| 1151 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1153 | |
| 1154 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1155 | | --program-pre | --program-pr | --program-p) |
| 1156 | ac_prev=program_prefix ;; |
| 1157 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1158 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1160 | |
| 1161 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1162 | | --program-suf | --program-su | --program-s) |
| 1163 | ac_prev=program_suffix ;; |
| 1164 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1165 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1166 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1167 | |
| 1168 | -program-transform-name | --program-transform-name \ |
| 1169 | | --program-transform-nam | --program-transform-na \ |
| 1170 | | --program-transform-n | --program-transform- \ |
| 1171 | | --program-transform | --program-transfor \ |
| 1172 | | --program-transfo | --program-transf \ |
| 1173 | | --program-trans | --program-tran \ |
| 1174 | | --progr-tra | --program-tr | --program-t) |
| 1175 | ac_prev=program_transform_name ;; |
| 1176 | -program-transform-name=* | --program-transform-name=* \ |
| 1177 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1178 | | --program-transform-n=* | --program-transform-=* \ |
| 1179 | | --program-transform=* | --program-transfor=* \ |
| 1180 | | --program-transfo=* | --program-transf=* \ |
| 1181 | | --program-trans=* | --program-tran=* \ |
| 1182 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1183 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1185 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1186 | ac_prev=pdfdir ;; |
| 1187 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1188 | pdfdir=$ac_optarg ;; |
| 1189 | |
| 1190 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1191 | ac_prev=psdir ;; |
| 1192 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1193 | psdir=$ac_optarg ;; |
| 1194 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1196 | | -silent | --silent | --silen | --sile | --sil) |
| 1197 | silent=yes ;; |
| 1198 | |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1199 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1200 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1201 | | --run | --ru | --r) |
| 1202 | ac_prev=runstatedir ;; |
| 1203 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1204 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1205 | | --run=* | --ru=* | --r=*) |
| 1206 | runstatedir=$ac_optarg ;; |
| 1207 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1208 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1209 | ac_prev=sbindir ;; |
| 1210 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1211 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1212 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1213 | |
| 1214 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1215 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1216 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1217 | | --sha | --sh) |
| 1218 | ac_prev=sharedstatedir ;; |
| 1219 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1220 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1221 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1222 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1223 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1224 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1225 | -site | --site | --sit) |
| 1226 | ac_prev=site ;; |
| 1227 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1228 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1229 | |
| 1230 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1231 | ac_prev=srcdir ;; |
| 1232 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1233 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1234 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1235 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1236 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1237 | ac_prev=sysconfdir ;; |
| 1238 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1239 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1240 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1241 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1242 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1243 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1244 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1245 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1246 | |
| 1247 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1248 | verbose=yes ;; |
| 1249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1250 | -version | --version | --versio | --versi | --vers | -V) |
| 1251 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | |
| 1253 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1254 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1255 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1256 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1257 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1258 | ac_useropt_orig=$ac_useropt |
| 1259 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1260 | case $ac_user_opts in |
| 1261 | *" |
| 1262 | "with_$ac_useropt" |
| 1263 | "*) ;; |
| 1264 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1265 | ac_unrecognized_sep=', ';; |
| 1266 | esac |
| 1267 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1268 | |
| 1269 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1270 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1271 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1272 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1273 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1274 | ac_useropt_orig=$ac_useropt |
| 1275 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1276 | case $ac_user_opts in |
| 1277 | *" |
| 1278 | "with_$ac_useropt" |
| 1279 | "*) ;; |
| 1280 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1281 | ac_unrecognized_sep=', ';; |
| 1282 | esac |
| 1283 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1284 | |
| 1285 | --x) |
| 1286 | # Obsolete; use --with-x. |
| 1287 | with_x=yes ;; |
| 1288 | |
| 1289 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1290 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1291 | ac_prev=x_includes ;; |
| 1292 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1293 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1294 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1295 | |
| 1296 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1297 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1298 | ac_prev=x_libraries ;; |
| 1299 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1300 | | --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] | 1301 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1302 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1303 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1304 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1305 | ;; |
| 1306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1307 | *=*) |
| 1308 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1309 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1310 | case $ac_envvar in #( |
| 1311 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1312 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1313 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1314 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | export $ac_envvar ;; |
| 1316 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1317 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1318 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1319 | $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] | 1320 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1321 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1322 | : "${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] | 1323 | ;; |
| 1324 | |
| 1325 | esac |
| 1326 | done |
| 1327 | |
| 1328 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1329 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1330 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1331 | fi |
| 1332 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1333 | if test -n "$ac_unrecognized_opts"; then |
| 1334 | case $enable_option_checking in |
| 1335 | no) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1336 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1337 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1338 | esac |
| 1339 | fi |
| 1340 | |
| 1341 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1342 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1343 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1344 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1345 | libdir localedir mandir runstatedir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1346 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1347 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1348 | # Remove trailing slashes. |
| 1349 | case $ac_val in |
| 1350 | */ ) |
| 1351 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1352 | eval $ac_var=\$ac_val;; |
| 1353 | esac |
| 1354 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1355 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1356 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1357 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1358 | esac |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1359 | 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] | 1360 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1361 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1362 | # There might be people who depend on the old broken behavior: `$host' |
| 1363 | # used to hold the argument of --host etc. |
| 1364 | # FIXME: To remove some day. |
| 1365 | build=$build_alias |
| 1366 | host=$host_alias |
| 1367 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1368 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1369 | # FIXME: To remove some day. |
| 1370 | if test "x$host_alias" != x; then |
| 1371 | if test "x$build_alias" = x; then |
| 1372 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1373 | elif test "x$build_alias" != "x$host_alias"; then |
| 1374 | cross_compiling=yes |
| 1375 | fi |
| 1376 | fi |
| 1377 | |
| 1378 | ac_tool_prefix= |
| 1379 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1380 | |
| 1381 | test "$silent" = yes && exec 6>/dev/null |
| 1382 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1383 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1384 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1385 | ac_ls_di=`ls -di .` && |
| 1386 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1387 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1388 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1389 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1390 | |
| 1391 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1392 | # Find the source files, if location was not specified. |
| 1393 | if test -z "$srcdir"; then |
| 1394 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1395 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1396 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1397 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1398 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1399 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1400 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1401 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\/\)[^/].*/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | /^X\(\/\/\)$/{ |
| 1411 | s//\1/ |
| 1412 | q |
| 1413 | } |
| 1414 | /^X\(\/\).*/{ |
| 1415 | s//\1/ |
| 1416 | q |
| 1417 | } |
| 1418 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1419 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1420 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1421 | srcdir=.. |
| 1422 | fi |
| 1423 | else |
| 1424 | ac_srcdir_defaulted=no |
| 1425 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1426 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1427 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1428 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1429 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1430 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1431 | ac_abs_confdir=`( |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1432 | 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] | 1433 | pwd)` |
| 1434 | # When building in place, set srcdir=. |
| 1435 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1436 | srcdir=. |
| 1437 | fi |
| 1438 | # Remove unnecessary trailing slashes from srcdir. |
| 1439 | # Double slashes in file names in object file debugging info |
| 1440 | # mess up M-x gdb in Emacs. |
| 1441 | case $srcdir in |
| 1442 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1443 | esac |
| 1444 | for ac_var in $ac_precious_vars; do |
| 1445 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1446 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1447 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1448 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1449 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1451 | # |
| 1452 | # Report the --help message. |
| 1453 | # |
| 1454 | if test "$ac_init_help" = "long"; then |
| 1455 | # Omit some internal or obsolete options to make the list less imposing. |
| 1456 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1457 | cat <<_ACEOF |
| 1458 | \`configure' configures this package to adapt to many kinds of systems. |
| 1459 | |
| 1460 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1461 | |
| 1462 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1463 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1464 | |
| 1465 | Defaults for the options are specified in brackets. |
| 1466 | |
| 1467 | Configuration: |
| 1468 | -h, --help display this help and exit |
| 1469 | --help=short display options specific to this package |
| 1470 | --help=recursive display the short help of all the included packages |
| 1471 | -V, --version display version information and exit |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1472 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1473 | --cache-file=FILE cache test results in FILE [disabled] |
| 1474 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1475 | -n, --no-create do not create output files |
| 1476 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1478 | Installation directories: |
| 1479 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1480 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1481 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1482 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | |
| 1484 | By default, \`make install' will install all the files in |
| 1485 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1486 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1487 | for instance \`--prefix=\$HOME'. |
| 1488 | |
| 1489 | For better control, use the options below. |
| 1490 | |
| 1491 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1492 | --bindir=DIR user executables [EPREFIX/bin] |
| 1493 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1494 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1495 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1496 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1497 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1498 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1499 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1500 | --includedir=DIR C header files [PREFIX/include] |
| 1501 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1502 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1503 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1504 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1505 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1506 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1507 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1508 | --htmldir=DIR html documentation [DOCDIR] |
| 1509 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1510 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1511 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1512 | _ACEOF |
| 1513 | |
| 1514 | cat <<\_ACEOF |
| 1515 | |
| 1516 | System types: |
| 1517 | --build=BUILD configure for building on BUILD [guessed] |
| 1518 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1519 | _ACEOF |
| 1520 | fi |
| 1521 | |
| 1522 | if test -n "$ac_init_help"; then |
| 1523 | |
| 1524 | cat <<\_ACEOF |
| 1525 | |
| 1526 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1527 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1529 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1530 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1531 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1532 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1533 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1534 | --enable-symlink-build use symlinks while building instead of hard links |
| 1535 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1536 | --enable-elf-shlibs select ELF shared libraries |
| 1537 | --enable-bsd-shlibs select BSD shared libraries |
| 1538 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1539 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 1540 | --enable-hardening build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1541 | --enable-jbd-debug enable journal debugging |
| 1542 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1543 | --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] | 1544 | --enable-libuuid build and use private uuid library |
| 1545 | --enable-libblkid build and use private blkid library |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1546 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | --disable-debugfs disable support of debugfs program |
| 1548 | --disable-imager disable support of e2image program |
| 1549 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1550 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1551 | --enable-fsck build fsck wrapper program |
| 1552 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1553 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1554 | --disable-uuidd disable building the uuid daemon |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1555 | --disable-mmp disable support mmp, Multi Mount Protection |
Theodore Ts'o | 749f071 | 2016-05-29 20:48:54 -0400 | [diff] [blame] | 1556 | --disable-tdb disable tdb support |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 1557 | --disable-bmap-stats disable collection of bitmap stats. |
| 1558 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1559 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1560 | --enable-threads={posix|solaris|pth|windows} |
| 1561 | specify multithreading API |
| 1562 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1563 | --disable-rpath do not hardcode runtime library paths |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 1564 | --disable-fuse2fs do not build fuse2fs |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1565 | |
| 1566 | Optional Packages: |
| 1567 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1568 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1569 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1570 | --with-cc no longer supported, use CC= instead |
| 1571 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1572 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1573 | --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] | 1574 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1575 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1576 | --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] | 1577 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1578 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1579 | --with-included-gettext use the GNU gettext library included here |
| 1580 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1581 | --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] | 1582 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1583 | |
| 1584 | Some influential environment variables: |
| 1585 | CC C compiler command |
| 1586 | CFLAGS C compiler flags |
| 1587 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1588 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1589 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1590 | 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] | 1591 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1592 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1593 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1594 | PKG_CONFIG_PATH |
| 1595 | directories to add to pkg-config's search path |
| 1596 | PKG_CONFIG_LIBDIR |
| 1597 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1598 | |
| 1599 | Use these variables to override the choices made by `configure' or to help |
| 1600 | it to find libraries and programs with nonstandard names/locations. |
| 1601 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1602 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1603 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1604 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1605 | fi |
| 1606 | |
| 1607 | if test "$ac_init_help" = "recursive"; then |
| 1608 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1609 | 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] | 1610 | test -d "$ac_dir" || |
| 1611 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1612 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1613 | ac_builddir=. |
| 1614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1615 | case "$ac_dir" in |
| 1616 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1617 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1618 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1619 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1620 | 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] | 1621 | case $ac_top_builddir_sub in |
| 1622 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1623 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1624 | esac ;; |
| 1625 | esac |
| 1626 | ac_abs_top_builddir=$ac_pwd |
| 1627 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1628 | # for backward compatibility: |
| 1629 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1630 | |
| 1631 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1632 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1633 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1634 | ac_top_srcdir=$ac_top_builddir_sub |
| 1635 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1636 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1637 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1638 | ac_top_srcdir=$srcdir |
| 1639 | ac_abs_top_srcdir=$srcdir ;; |
| 1640 | *) # Relative name. |
| 1641 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1642 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1643 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1644 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1645 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1646 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1647 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1648 | # Check for guested configure. |
| 1649 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1650 | echo && |
| 1651 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1652 | elif test -f "$ac_srcdir/configure"; then |
| 1653 | echo && |
| 1654 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1655 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1656 | $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] | 1657 | fi || ac_status=$? |
| 1658 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1659 | done |
| 1660 | fi |
| 1661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1662 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1663 | if $ac_init_version; then |
| 1664 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1665 | configure |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1666 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1667 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1668 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1669 | This configure script is free software; the Free Software Foundation |
| 1670 | gives unlimited permission to copy, distribute and modify it. |
| 1671 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1672 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1673 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1674 | |
| 1675 | ## ------------------------ ## |
| 1676 | ## Autoconf initialization. ## |
| 1677 | ## ------------------------ ## |
| 1678 | |
| 1679 | # ac_fn_c_try_compile LINENO |
| 1680 | # -------------------------- |
| 1681 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1682 | ac_fn_c_try_compile () |
| 1683 | { |
| 1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1685 | rm -f conftest.$ac_objext |
| 1686 | if { { ac_try="$ac_compile" |
| 1687 | case "(($ac_try" in |
| 1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1689 | *) ac_try_echo=$ac_try;; |
| 1690 | esac |
| 1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1692 | $as_echo "$ac_try_echo"; } >&5 |
| 1693 | (eval "$ac_compile") 2>conftest.err |
| 1694 | ac_status=$? |
| 1695 | if test -s conftest.err; then |
| 1696 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1697 | cat conftest.er1 >&5 |
| 1698 | mv -f conftest.er1 conftest.err |
| 1699 | fi |
| 1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1701 | test $ac_status = 0; } && { |
| 1702 | test -z "$ac_c_werror_flag" || |
| 1703 | test ! -s conftest.err |
| 1704 | } && test -s conftest.$ac_objext; then : |
| 1705 | ac_retval=0 |
| 1706 | else |
| 1707 | $as_echo "$as_me: failed program was:" >&5 |
| 1708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1709 | |
| 1710 | ac_retval=1 |
| 1711 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1713 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1714 | |
| 1715 | } # ac_fn_c_try_compile |
| 1716 | |
| 1717 | # ac_fn_c_try_link LINENO |
| 1718 | # ----------------------- |
| 1719 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1720 | ac_fn_c_try_link () |
| 1721 | { |
| 1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1724 | if { { ac_try="$ac_link" |
| 1725 | case "(($ac_try" in |
| 1726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1727 | *) ac_try_echo=$ac_try;; |
| 1728 | esac |
| 1729 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1730 | $as_echo "$ac_try_echo"; } >&5 |
| 1731 | (eval "$ac_link") 2>conftest.err |
| 1732 | ac_status=$? |
| 1733 | if test -s conftest.err; then |
| 1734 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1735 | cat conftest.er1 >&5 |
| 1736 | mv -f conftest.er1 conftest.err |
| 1737 | fi |
| 1738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1739 | test $ac_status = 0; } && { |
| 1740 | test -z "$ac_c_werror_flag" || |
| 1741 | test ! -s conftest.err |
| 1742 | } && test -s conftest$ac_exeext && { |
| 1743 | test "$cross_compiling" = yes || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1744 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1745 | }; then : |
| 1746 | ac_retval=0 |
| 1747 | else |
| 1748 | $as_echo "$as_me: failed program was:" >&5 |
| 1749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1750 | |
| 1751 | ac_retval=1 |
| 1752 | fi |
| 1753 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1754 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1755 | # interfere with the next link command; also delete a directory that is |
| 1756 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1757 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1759 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1760 | |
| 1761 | } # ac_fn_c_try_link |
| 1762 | |
| 1763 | # ac_fn_c_try_cpp LINENO |
| 1764 | # ---------------------- |
| 1765 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1766 | ac_fn_c_try_cpp () |
| 1767 | { |
| 1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1769 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1770 | case "(($ac_try" in |
| 1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1772 | *) ac_try_echo=$ac_try;; |
| 1773 | esac |
| 1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1775 | $as_echo "$ac_try_echo"; } >&5 |
| 1776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1777 | ac_status=$? |
| 1778 | if test -s conftest.err; then |
| 1779 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1780 | cat conftest.er1 >&5 |
| 1781 | mv -f conftest.er1 conftest.err |
| 1782 | fi |
| 1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1784 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1785 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1786 | test ! -s conftest.err |
| 1787 | }; then : |
| 1788 | ac_retval=0 |
| 1789 | else |
| 1790 | $as_echo "$as_me: failed program was:" >&5 |
| 1791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1792 | |
| 1793 | ac_retval=1 |
| 1794 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1795 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1796 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1797 | |
| 1798 | } # ac_fn_c_try_cpp |
| 1799 | |
| 1800 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1801 | # ------------------------------------------------------- |
| 1802 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1803 | # the include files in INCLUDES and setting the cache variable VAR |
| 1804 | # accordingly. |
| 1805 | ac_fn_c_check_header_mongrel () |
| 1806 | { |
| 1807 | 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] | 1808 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1810 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1811 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1812 | $as_echo_n "(cached) " >&6 |
| 1813 | fi |
| 1814 | eval ac_res=\$$3 |
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1816 | $as_echo "$ac_res" >&6; } |
| 1817 | else |
| 1818 | # Is the header compilable? |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1820 | $as_echo_n "checking $2 usability... " >&6; } |
| 1821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1822 | /* end confdefs.h. */ |
| 1823 | $4 |
| 1824 | #include <$2> |
| 1825 | _ACEOF |
| 1826 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1827 | ac_header_compiler=yes |
| 1828 | else |
| 1829 | ac_header_compiler=no |
| 1830 | fi |
| 1831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1833 | $as_echo "$ac_header_compiler" >&6; } |
| 1834 | |
| 1835 | # Is the header present? |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1837 | $as_echo_n "checking $2 presence... " >&6; } |
| 1838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1839 | /* end confdefs.h. */ |
| 1840 | #include <$2> |
| 1841 | _ACEOF |
| 1842 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1843 | ac_header_preproc=yes |
| 1844 | else |
| 1845 | ac_header_preproc=no |
| 1846 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1847 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1849 | $as_echo "$ac_header_preproc" >&6; } |
| 1850 | |
| 1851 | # So? What about this header? |
| 1852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1853 | yes:no: ) |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1855 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1857 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1858 | ;; |
| 1859 | no:yes:* ) |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1861 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1863 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1865 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1867 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1869 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1870 | ;; |
| 1871 | esac |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1873 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1874 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1875 | $as_echo_n "(cached) " >&6 |
| 1876 | else |
| 1877 | eval "$3=\$ac_header_compiler" |
| 1878 | fi |
| 1879 | eval ac_res=\$$3 |
| 1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1881 | $as_echo "$ac_res" >&6; } |
| 1882 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1883 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1884 | |
| 1885 | } # ac_fn_c_check_header_mongrel |
| 1886 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1887 | # ac_fn_c_try_run LINENO |
| 1888 | # ---------------------- |
| 1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1890 | # that executables *can* be run. |
| 1891 | ac_fn_c_try_run () |
| 1892 | { |
| 1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1894 | if { { ac_try="$ac_link" |
| 1895 | case "(($ac_try" in |
| 1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1897 | *) ac_try_echo=$ac_try;; |
| 1898 | esac |
| 1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1900 | $as_echo "$ac_try_echo"; } >&5 |
| 1901 | (eval "$ac_link") 2>&5 |
| 1902 | ac_status=$? |
| 1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1904 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1905 | { { case "(($ac_try" in |
| 1906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1907 | *) ac_try_echo=$ac_try;; |
| 1908 | esac |
| 1909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1910 | $as_echo "$ac_try_echo"; } >&5 |
| 1911 | (eval "$ac_try") 2>&5 |
| 1912 | ac_status=$? |
| 1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1914 | test $ac_status = 0; }; }; then : |
| 1915 | ac_retval=0 |
| 1916 | else |
| 1917 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1918 | $as_echo "$as_me: failed program was:" >&5 |
| 1919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1920 | |
| 1921 | ac_retval=$ac_status |
| 1922 | fi |
| 1923 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1925 | as_fn_set_status $ac_retval |
| 1926 | |
| 1927 | } # ac_fn_c_try_run |
| 1928 | |
| 1929 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1930 | # ------------------------------------------------------- |
| 1931 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1932 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1933 | ac_fn_c_check_header_compile () |
| 1934 | { |
| 1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1937 | $as_echo_n "checking for $2... " >&6; } |
| 1938 | if eval \${$3+:} false; then : |
| 1939 | $as_echo_n "(cached) " >&6 |
| 1940 | else |
| 1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1942 | /* end confdefs.h. */ |
| 1943 | $4 |
| 1944 | #include <$2> |
| 1945 | _ACEOF |
| 1946 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1947 | eval "$3=yes" |
| 1948 | else |
| 1949 | eval "$3=no" |
| 1950 | fi |
| 1951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1952 | fi |
| 1953 | eval ac_res=\$$3 |
| 1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1955 | $as_echo "$ac_res" >&6; } |
| 1956 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1957 | |
| 1958 | } # ac_fn_c_check_header_compile |
| 1959 | |
| 1960 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1961 | # ------------------------------------------- |
| 1962 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1963 | # variable VAR accordingly. |
| 1964 | ac_fn_c_check_type () |
| 1965 | { |
| 1966 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1968 | $as_echo_n "checking for $2... " >&6; } |
| 1969 | if eval \${$3+:} false; then : |
| 1970 | $as_echo_n "(cached) " >&6 |
| 1971 | else |
| 1972 | eval "$3=no" |
| 1973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1974 | /* end confdefs.h. */ |
| 1975 | $4 |
| 1976 | int |
| 1977 | main () |
| 1978 | { |
| 1979 | if (sizeof ($2)) |
| 1980 | return 0; |
| 1981 | ; |
| 1982 | return 0; |
| 1983 | } |
| 1984 | _ACEOF |
| 1985 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1987 | /* end confdefs.h. */ |
| 1988 | $4 |
| 1989 | int |
| 1990 | main () |
| 1991 | { |
| 1992 | if (sizeof (($2))) |
| 1993 | return 0; |
| 1994 | ; |
| 1995 | return 0; |
| 1996 | } |
| 1997 | _ACEOF |
| 1998 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1999 | |
| 2000 | else |
| 2001 | eval "$3=yes" |
| 2002 | fi |
| 2003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2004 | fi |
| 2005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2006 | fi |
| 2007 | eval ac_res=\$$3 |
| 2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2009 | $as_echo "$ac_res" >&6; } |
| 2010 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2011 | |
| 2012 | } # ac_fn_c_check_type |
| 2013 | |
| 2014 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2015 | # ---------------------------------- |
| 2016 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2017 | ac_fn_c_check_func () |
| 2018 | { |
| 2019 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2021 | $as_echo_n "checking for $2... " >&6; } |
| 2022 | if eval \${$3+:} false; then : |
| 2023 | $as_echo_n "(cached) " >&6 |
| 2024 | else |
| 2025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2026 | /* end confdefs.h. */ |
| 2027 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2029 | #define $2 innocuous_$2 |
| 2030 | |
| 2031 | /* System header to define __stub macros and hopefully few prototypes, |
| 2032 | which can conflict with char $2 (); below. |
| 2033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2034 | <limits.h> exists even on freestanding compilers. */ |
| 2035 | |
| 2036 | #ifdef __STDC__ |
| 2037 | # include <limits.h> |
| 2038 | #else |
| 2039 | # include <assert.h> |
| 2040 | #endif |
| 2041 | |
| 2042 | #undef $2 |
| 2043 | |
| 2044 | /* Override any GCC internal prototype to avoid an error. |
| 2045 | Use char because int might match the return type of a GCC |
| 2046 | builtin and then its argument prototype would still apply. */ |
| 2047 | #ifdef __cplusplus |
| 2048 | extern "C" |
| 2049 | #endif |
| 2050 | char $2 (); |
| 2051 | /* The GNU C library defines this for functions which it implements |
| 2052 | to always fail with ENOSYS. Some functions are actually named |
| 2053 | something starting with __ and the normal name is an alias. */ |
| 2054 | #if defined __stub_$2 || defined __stub___$2 |
| 2055 | choke me |
| 2056 | #endif |
| 2057 | |
| 2058 | int |
| 2059 | main () |
| 2060 | { |
| 2061 | return $2 (); |
| 2062 | ; |
| 2063 | return 0; |
| 2064 | } |
| 2065 | _ACEOF |
| 2066 | if ac_fn_c_try_link "$LINENO"; then : |
| 2067 | eval "$3=yes" |
| 2068 | else |
| 2069 | eval "$3=no" |
| 2070 | fi |
| 2071 | rm -f core conftest.err conftest.$ac_objext \ |
| 2072 | conftest$ac_exeext conftest.$ac_ext |
| 2073 | fi |
| 2074 | eval ac_res=\$$3 |
| 2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2076 | $as_echo "$ac_res" >&6; } |
| 2077 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2078 | |
| 2079 | } # ac_fn_c_check_func |
| 2080 | |
| 2081 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2082 | # --------------------------------------------- |
| 2083 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2084 | # accordingly. |
| 2085 | ac_fn_c_check_decl () |
| 2086 | { |
| 2087 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2088 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2089 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2091 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2092 | if eval \${$3+:} false; then : |
| 2093 | $as_echo_n "(cached) " >&6 |
| 2094 | else |
| 2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2096 | /* end confdefs.h. */ |
| 2097 | $4 |
| 2098 | int |
| 2099 | main () |
| 2100 | { |
| 2101 | #ifndef $as_decl_name |
| 2102 | #ifdef __cplusplus |
| 2103 | (void) $as_decl_use; |
| 2104 | #else |
| 2105 | (void) $as_decl_name; |
| 2106 | #endif |
| 2107 | #endif |
| 2108 | |
| 2109 | ; |
| 2110 | return 0; |
| 2111 | } |
| 2112 | _ACEOF |
| 2113 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2114 | eval "$3=yes" |
| 2115 | else |
| 2116 | eval "$3=no" |
| 2117 | fi |
| 2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2119 | fi |
| 2120 | eval ac_res=\$$3 |
| 2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2122 | $as_echo "$ac_res" >&6; } |
| 2123 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2124 | |
| 2125 | } # ac_fn_c_check_decl |
| 2126 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2127 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2128 | # -------------------------------------------- |
| 2129 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2130 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2131 | # computed |
| 2132 | ac_fn_c_compute_int () |
| 2133 | { |
| 2134 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2135 | if test "$cross_compiling" = yes; then |
| 2136 | # Depending upon the size, compute the lo and hi bounds. |
| 2137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2138 | /* end confdefs.h. */ |
| 2139 | $4 |
| 2140 | int |
| 2141 | main () |
| 2142 | { |
| 2143 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2144 | test_array [0] = 0; |
| 2145 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2146 | |
| 2147 | ; |
| 2148 | return 0; |
| 2149 | } |
| 2150 | _ACEOF |
| 2151 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2152 | ac_lo=0 ac_mid=0 |
| 2153 | while :; do |
| 2154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2155 | /* end confdefs.h. */ |
| 2156 | $4 |
| 2157 | int |
| 2158 | main () |
| 2159 | { |
| 2160 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2161 | test_array [0] = 0; |
| 2162 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2163 | |
| 2164 | ; |
| 2165 | return 0; |
| 2166 | } |
| 2167 | _ACEOF |
| 2168 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2169 | ac_hi=$ac_mid; break |
| 2170 | else |
| 2171 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2172 | if test $ac_lo -le $ac_mid; then |
| 2173 | ac_lo= ac_hi= |
| 2174 | break |
| 2175 | fi |
| 2176 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2177 | fi |
| 2178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2179 | done |
| 2180 | else |
| 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2182 | /* end confdefs.h. */ |
| 2183 | $4 |
| 2184 | int |
| 2185 | main () |
| 2186 | { |
| 2187 | static int test_array [1 - 2 * !(($2) < 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2188 | test_array [0] = 0; |
| 2189 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2190 | |
| 2191 | ; |
| 2192 | return 0; |
| 2193 | } |
| 2194 | _ACEOF |
| 2195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2196 | ac_hi=-1 ac_mid=-1 |
| 2197 | while :; do |
| 2198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2199 | /* end confdefs.h. */ |
| 2200 | $4 |
| 2201 | int |
| 2202 | main () |
| 2203 | { |
| 2204 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2205 | test_array [0] = 0; |
| 2206 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2207 | |
| 2208 | ; |
| 2209 | return 0; |
| 2210 | } |
| 2211 | _ACEOF |
| 2212 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2213 | ac_lo=$ac_mid; break |
| 2214 | else |
| 2215 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2216 | if test $ac_mid -le $ac_hi; then |
| 2217 | ac_lo= ac_hi= |
| 2218 | break |
| 2219 | fi |
| 2220 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2221 | fi |
| 2222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2223 | done |
| 2224 | else |
| 2225 | ac_lo= ac_hi= |
| 2226 | fi |
| 2227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2228 | fi |
| 2229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2230 | # Binary search between lo and hi bounds. |
| 2231 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2232 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2234 | /* end confdefs.h. */ |
| 2235 | $4 |
| 2236 | int |
| 2237 | main () |
| 2238 | { |
| 2239 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2240 | test_array [0] = 0; |
| 2241 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2242 | |
| 2243 | ; |
| 2244 | return 0; |
| 2245 | } |
| 2246 | _ACEOF |
| 2247 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2248 | ac_hi=$ac_mid |
| 2249 | else |
| 2250 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2251 | fi |
| 2252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2253 | done |
| 2254 | case $ac_lo in #(( |
| 2255 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2256 | '') ac_retval=1 ;; |
| 2257 | esac |
| 2258 | else |
| 2259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2260 | /* end confdefs.h. */ |
| 2261 | $4 |
| 2262 | static long int longval () { return $2; } |
| 2263 | static unsigned long int ulongval () { return $2; } |
| 2264 | #include <stdio.h> |
| 2265 | #include <stdlib.h> |
| 2266 | int |
| 2267 | main () |
| 2268 | { |
| 2269 | |
| 2270 | FILE *f = fopen ("conftest.val", "w"); |
| 2271 | if (! f) |
| 2272 | return 1; |
| 2273 | if (($2) < 0) |
| 2274 | { |
| 2275 | long int i = longval (); |
| 2276 | if (i != ($2)) |
| 2277 | return 1; |
| 2278 | fprintf (f, "%ld", i); |
| 2279 | } |
| 2280 | else |
| 2281 | { |
| 2282 | unsigned long int i = ulongval (); |
| 2283 | if (i != ($2)) |
| 2284 | return 1; |
| 2285 | fprintf (f, "%lu", i); |
| 2286 | } |
| 2287 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2288 | on some platforms. */ |
| 2289 | return ferror (f) || fclose (f) != 0; |
| 2290 | |
| 2291 | ; |
| 2292 | return 0; |
| 2293 | } |
| 2294 | _ACEOF |
| 2295 | if ac_fn_c_try_run "$LINENO"; then : |
| 2296 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2297 | else |
| 2298 | ac_retval=1 |
| 2299 | fi |
| 2300 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2301 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2302 | rm -f conftest.val |
| 2303 | |
| 2304 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2305 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2306 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2307 | |
| 2308 | } # ac_fn_c_compute_int |
| 2309 | |
| 2310 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2311 | # ---------------------------------------------------- |
| 2312 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2313 | # INCLUDES, setting cache variable VAR accordingly. |
| 2314 | ac_fn_c_check_member () |
| 2315 | { |
| 2316 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2318 | $as_echo_n "checking for $2.$3... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2319 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2320 | $as_echo_n "(cached) " >&6 |
| 2321 | else |
| 2322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2323 | /* end confdefs.h. */ |
| 2324 | $5 |
| 2325 | int |
| 2326 | main () |
| 2327 | { |
| 2328 | static $2 ac_aggr; |
| 2329 | if (ac_aggr.$3) |
| 2330 | return 0; |
| 2331 | ; |
| 2332 | return 0; |
| 2333 | } |
| 2334 | _ACEOF |
| 2335 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2336 | eval "$4=yes" |
| 2337 | else |
| 2338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2339 | /* end confdefs.h. */ |
| 2340 | $5 |
| 2341 | int |
| 2342 | main () |
| 2343 | { |
| 2344 | static $2 ac_aggr; |
| 2345 | if (sizeof ac_aggr.$3) |
| 2346 | return 0; |
| 2347 | ; |
| 2348 | return 0; |
| 2349 | } |
| 2350 | _ACEOF |
| 2351 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2352 | eval "$4=yes" |
| 2353 | else |
| 2354 | eval "$4=no" |
| 2355 | fi |
| 2356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2357 | fi |
| 2358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2359 | fi |
| 2360 | eval ac_res=\$$4 |
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2362 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2363 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2364 | |
| 2365 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2366 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2367 | This file contains any messages produced by compilers while |
| 2368 | running configure, to aid debugging if configure makes a mistake. |
| 2369 | |
| 2370 | It was created by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2371 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2372 | |
| 2373 | $ $0 $@ |
| 2374 | |
| 2375 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2376 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2377 | { |
| 2378 | cat <<_ASUNAME |
| 2379 | ## --------- ## |
| 2380 | ## Platform. ## |
| 2381 | ## --------- ## |
| 2382 | |
| 2383 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2384 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2385 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2386 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2387 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2388 | |
| 2389 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2390 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2391 | |
| 2392 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2393 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2394 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2395 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2396 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2397 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2398 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2399 | |
| 2400 | _ASUNAME |
| 2401 | |
| 2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2403 | for as_dir in $PATH |
| 2404 | do |
| 2405 | IFS=$as_save_IFS |
| 2406 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2407 | $as_echo "PATH: $as_dir" |
| 2408 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2409 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2410 | |
| 2411 | } >&5 |
| 2412 | |
| 2413 | cat >&5 <<_ACEOF |
| 2414 | |
| 2415 | |
| 2416 | ## ----------- ## |
| 2417 | ## Core tests. ## |
| 2418 | ## ----------- ## |
| 2419 | |
| 2420 | _ACEOF |
| 2421 | |
| 2422 | |
| 2423 | # Keep a trace of the command line. |
| 2424 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2425 | # Strip out --silent because we don't want to record it for future runs. |
| 2426 | # Also quote any args containing shell meta-characters. |
| 2427 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2428 | ac_configure_args= |
| 2429 | ac_configure_args0= |
| 2430 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2431 | ac_must_keep_next=false |
| 2432 | for ac_pass in 1 2 |
| 2433 | do |
| 2434 | for ac_arg |
| 2435 | do |
| 2436 | case $ac_arg in |
| 2437 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2438 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2439 | | -silent | --silent | --silen | --sile | --sil) |
| 2440 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2441 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2442 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2443 | esac |
| 2444 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2445 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2447 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2448 | if test $ac_must_keep_next = true; then |
| 2449 | ac_must_keep_next=false # Got value, back to normal. |
| 2450 | else |
| 2451 | case $ac_arg in |
| 2452 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2453 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2454 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2455 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2456 | case "$ac_configure_args0 " in |
| 2457 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2458 | esac |
| 2459 | ;; |
| 2460 | -* ) ac_must_keep_next=true ;; |
| 2461 | esac |
| 2462 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2463 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2464 | ;; |
| 2465 | esac |
| 2466 | done |
| 2467 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2468 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2469 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | |
| 2471 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2472 | # config.log. We remove comments because anyway the quotes in there |
| 2473 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2474 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2475 | # 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] | 2476 | trap 'exit_status=$? |
| 2477 | # Save into config.log some information that might help in debugging. |
| 2478 | { |
| 2479 | echo |
| 2480 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2481 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2482 | ## Cache variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2483 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2484 | echo |
| 2485 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2486 | ( |
| 2487 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2488 | eval ac_val=\$$ac_var |
| 2489 | case $ac_val in #( |
| 2490 | *${as_nl}*) |
| 2491 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2492 | *_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] | 2493 | $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] | 2494 | esac |
| 2495 | case $ac_var in #( |
| 2496 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2497 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2498 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2499 | esac ;; |
| 2500 | esac |
| 2501 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2503 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2504 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2505 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2506 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2507 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2508 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2509 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2510 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2512 | esac | |
| 2513 | sort |
| 2514 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2515 | echo |
| 2516 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2517 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2518 | ## Output variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2519 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2520 | echo |
| 2521 | for ac_var in $ac_subst_vars |
| 2522 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2523 | eval ac_val=\$$ac_var |
| 2524 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2525 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2526 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2527 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2528 | done | sort |
| 2529 | echo |
| 2530 | |
| 2531 | if test -n "$ac_subst_files"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2532 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2533 | ## File substitutions. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2534 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2535 | echo |
| 2536 | for ac_var in $ac_subst_files |
| 2537 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2538 | eval ac_val=\$$ac_var |
| 2539 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2540 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2541 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2542 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | done | sort |
| 2544 | echo |
| 2545 | fi |
| 2546 | |
| 2547 | if test -s confdefs.h; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2548 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | ## confdefs.h. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2550 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2551 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2552 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | echo |
| 2554 | fi |
| 2555 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2556 | $as_echo "$as_me: caught signal $ac_signal" |
| 2557 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2558 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2559 | rm -f core *.core core.conftest.* && |
| 2560 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2562 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2563 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2564 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2565 | done |
| 2566 | ac_signal=0 |
| 2567 | |
| 2568 | # 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] | 2569 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2570 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2571 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2573 | # Predefined preprocessor variables. |
| 2574 | |
| 2575 | cat >>confdefs.h <<_ACEOF |
| 2576 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2577 | _ACEOF |
| 2578 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF |
| 2580 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2581 | _ACEOF |
| 2582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2583 | cat >>confdefs.h <<_ACEOF |
| 2584 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2585 | _ACEOF |
| 2586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | cat >>confdefs.h <<_ACEOF |
| 2588 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2589 | _ACEOF |
| 2590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | cat >>confdefs.h <<_ACEOF |
| 2592 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2593 | _ACEOF |
| 2594 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2595 | cat >>confdefs.h <<_ACEOF |
| 2596 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2597 | _ACEOF |
| 2598 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2599 | |
| 2600 | # 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] | 2601 | # Prefer an explicitly selected file to automatically selected ones. |
| 2602 | ac_site_file1=NONE |
| 2603 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2604 | if test -n "$CONFIG_SITE"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2605 | # We do not want a PATH search for config.site. |
| 2606 | case $CONFIG_SITE in #(( |
| 2607 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2608 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2609 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2610 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2611 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2612 | ac_site_file1=$prefix/share/config.site |
| 2613 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2614 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2615 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2616 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2617 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2618 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2619 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2620 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2621 | 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] | 2622 | { $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] | 2623 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2624 | sed 's/^/| /' "$ac_site_file" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2625 | . "$ac_site_file" \ |
| 2626 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2628 | as_fn_error $? "failed to load site script $ac_site_file |
| 2629 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2630 | fi |
| 2631 | done |
| 2632 | |
| 2633 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2634 | # Some versions of bash will fail to source /dev/null (special files |
| 2635 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2636 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2637 | { $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] | 2638 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2639 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2640 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2641 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2642 | esac |
| 2643 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2644 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2645 | { $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] | 2646 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2647 | >$cache_file |
| 2648 | fi |
| 2649 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2650 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2651 | as_fn_append ac_header_list " stdlib.h" |
| 2652 | as_fn_append ac_header_list " unistd.h" |
| 2653 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2654 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | # Check that the precious variables saved in the cache have kept the same |
| 2656 | # value. |
| 2657 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2658 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2659 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2660 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2661 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2662 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2663 | case $ac_old_set,$ac_new_set in |
| 2664 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2666 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2667 | ac_cache_corrupted=: ;; |
| 2668 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2669 | { $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] | 2670 | $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] | 2671 | ac_cache_corrupted=: ;; |
| 2672 | ,);; |
| 2673 | *) |
| 2674 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2675 | # differences in whitespace do not lead to failure. |
| 2676 | ac_old_val_w=`echo x $ac_old_val` |
| 2677 | ac_new_val_w=`echo x $ac_new_val` |
| 2678 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2679 | { $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] | 2680 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2681 | ac_cache_corrupted=: |
| 2682 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2683 | { $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] | 2684 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2685 | eval $ac_var=\$ac_old_val |
| 2686 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2687 | { $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] | 2688 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2689 | { $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] | 2690 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2691 | fi;; |
| 2692 | esac |
| 2693 | # Pass precious variables to config.status. |
| 2694 | if test "$ac_new_set" = set; then |
| 2695 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2696 | *\'*) 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] | 2697 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2698 | esac |
| 2699 | case " $ac_configure_args " in |
| 2700 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2701 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2702 | esac |
| 2703 | fi |
| 2704 | done |
| 2705 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2706 | { $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] | 2707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2708 | { $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] | 2709 | $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] | 2710 | 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] | 2711 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2712 | ## -------------------- ## |
| 2713 | ## Main body of script. ## |
| 2714 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2715 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2716 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2717 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2721 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2722 | |
| 2723 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2724 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2725 | for ac_dir in config "$srcdir"/config; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2726 | if test -f "$ac_dir/install-sh"; then |
| 2727 | ac_aux_dir=$ac_dir |
| 2728 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2729 | break |
| 2730 | elif test -f "$ac_dir/install.sh"; then |
| 2731 | ac_aux_dir=$ac_dir |
| 2732 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2733 | break |
| 2734 | elif test -f "$ac_dir/shtool"; then |
| 2735 | ac_aux_dir=$ac_dir |
| 2736 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2737 | break |
| 2738 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2739 | done |
| 2740 | if test -z "$ac_aux_dir"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2741 | 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] | 2742 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2743 | |
| 2744 | # These three variables are undocumented and unsupported, |
| 2745 | # and are intended to be withdrawn in a future Autoconf release. |
| 2746 | # They can cause serious problems if a builder's source tree is in a directory |
| 2747 | # whose full name contains unusual characters. |
| 2748 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2749 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2750 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2751 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2752 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2753 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2754 | |
| 2755 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2756 | MCONFIG=./MCONFIG |
| 2757 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2758 | BINARY_TYPE=bin |
| 2759 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2760 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2761 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2762 | | tr \" " "` |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2763 | 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] | 2764 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2765 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2766 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2767 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2768 | E2FSPROGS_YEAR=$YEAR |
| 2769 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2770 | E2FSPROGS_YEAR=19$YEAR |
| 2771 | else |
| 2772 | E2FSPROGS_YEAR=20$YEAR |
| 2773 | fi |
| 2774 | |
| 2775 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2776 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2777 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2778 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2779 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2780 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2781 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2782 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2783 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2784 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2785 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2786 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2787 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2788 | *) { $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] | 2789 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2790 | esac |
| 2791 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2792 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2793 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2794 | |
| 2795 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2796 | |
| 2797 | case $E2FSPROGS_VERSION in |
| 2798 | *-WIP|pre-*) |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2799 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2800 | ;; |
| 2801 | *) |
| 2802 | E2FSPROGS_PKGVER="$base_ver" |
| 2803 | ;; |
| 2804 | esac |
| 2805 | |
| 2806 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2807 | { $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] | 2808 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2809 | { $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] | 2810 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2811 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2812 | |
| 2813 | |
| 2814 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2815 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2816 | WITH_DIET_LIBC= |
| 2817 | |
| 2818 | # Check whether --with-diet-libc was given. |
| 2819 | if test "${with_diet_libc+set}" = set; then : |
| 2820 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2821 | WITH_DIET_LIBC=yes |
| 2822 | if test -z "$LIBS" |
| 2823 | then |
| 2824 | LIBS="-lcompat" |
| 2825 | else |
| 2826 | LIBS="$LIBS -lcompat" |
| 2827 | fi |
| 2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2829 | $as_echo "CC=$CC" >&6; } |
| 2830 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2831 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2832 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2833 | 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] | 2834 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2835 | { $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] | 2836 | $as_echo_n "checking build system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2837 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2838 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2839 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2840 | ac_build_alias=$build_alias |
| 2841 | test "x$ac_build_alias" = x && |
| 2842 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2843 | test "x$ac_build_alias" = x && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2844 | 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] | 2845 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2846 | 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] | 2847 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2848 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2849 | { $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] | 2850 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2851 | case $ac_cv_build in |
| 2852 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2853 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2854 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2855 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2856 | ac_save_IFS=$IFS; IFS='-' |
| 2857 | set x $ac_cv_build |
| 2858 | shift |
| 2859 | build_cpu=$1 |
| 2860 | build_vendor=$2 |
| 2861 | shift; shift |
| 2862 | # Remember, the first character of IFS is used to create $*, |
| 2863 | # except with old shells: |
| 2864 | build_os=$* |
| 2865 | IFS=$ac_save_IFS |
| 2866 | 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] | 2867 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2868 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2869 | { $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] | 2870 | $as_echo_n "checking host system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2871 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2872 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2873 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2874 | if test "x$host_alias" = x; then |
| 2875 | ac_cv_host=$ac_cv_build |
| 2876 | else |
| 2877 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2878 | 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] | 2879 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2880 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2881 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2882 | { $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] | 2883 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2884 | case $ac_cv_host in |
| 2885 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2886 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2887 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2888 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2889 | ac_save_IFS=$IFS; IFS='-' |
| 2890 | set x $ac_cv_host |
| 2891 | shift |
| 2892 | host_cpu=$1 |
| 2893 | host_vendor=$2 |
| 2894 | shift; shift |
| 2895 | # Remember, the first character of IFS is used to create $*, |
| 2896 | # except with old shells: |
| 2897 | host_os=$* |
| 2898 | IFS=$ac_save_IFS |
| 2899 | 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] | 2900 | |
| 2901 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2902 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2903 | ac_ext=c |
| 2904 | ac_cpp='$CPP $CPPFLAGS' |
| 2905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2908 | if test -n "$ac_tool_prefix"; then |
| 2909 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2910 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2911 | { $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] | 2912 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2913 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2914 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2915 | else |
| 2916 | if test -n "$CC"; then |
| 2917 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2918 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2920 | for as_dir in $PATH |
| 2921 | do |
| 2922 | IFS=$as_save_IFS |
| 2923 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2924 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2925 | 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] | 2926 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2927 | $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] | 2928 | break 2 |
| 2929 | fi |
| 2930 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2931 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2932 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2934 | fi |
| 2935 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2937 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2939 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2940 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2942 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2943 | fi |
| 2944 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2945 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2946 | fi |
| 2947 | if test -z "$ac_cv_prog_CC"; then |
| 2948 | ac_ct_CC=$CC |
| 2949 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2950 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2951 | { $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] | 2952 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2953 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2954 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2955 | else |
| 2956 | if test -n "$ac_ct_CC"; then |
| 2957 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2958 | else |
| 2959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2960 | for as_dir in $PATH |
| 2961 | do |
| 2962 | IFS=$as_save_IFS |
| 2963 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2965 | 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] | 2966 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2967 | $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] | 2968 | break 2 |
| 2969 | fi |
| 2970 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2971 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2972 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2973 | |
| 2974 | fi |
| 2975 | fi |
| 2976 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2977 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2978 | { $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] | 2979 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2982 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2983 | fi |
| 2984 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2985 | if test "x$ac_ct_CC" = x; then |
| 2986 | CC="" |
| 2987 | else |
| 2988 | case $cross_compiling:$ac_tool_warned in |
| 2989 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2990 | { $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] | 2991 | $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] | 2992 | ac_tool_warned=yes ;; |
| 2993 | esac |
| 2994 | CC=$ac_ct_CC |
| 2995 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2996 | else |
| 2997 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2998 | fi |
| 2999 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3000 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3001 | if test -n "$ac_tool_prefix"; then |
| 3002 | # 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] | 3003 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3004 | { $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] | 3005 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3006 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3007 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3008 | else |
| 3009 | if test -n "$CC"; then |
| 3010 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3011 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3013 | for as_dir in $PATH |
| 3014 | do |
| 3015 | IFS=$as_save_IFS |
| 3016 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3017 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3018 | 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] | 3019 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3020 | $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] | 3021 | break 2 |
| 3022 | fi |
| 3023 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3024 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3025 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3026 | |
| 3027 | fi |
| 3028 | fi |
| 3029 | CC=$ac_cv_prog_CC |
| 3030 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3032 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3033 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3035 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3036 | fi |
| 3037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3038 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3040 | fi |
| 3041 | if test -z "$CC"; then |
| 3042 | # Extract the first word of "cc", so it can be a program name with args. |
| 3043 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3044 | { $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] | 3045 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3046 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3047 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3048 | else |
| 3049 | if test -n "$CC"; then |
| 3050 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3051 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3052 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3054 | for as_dir in $PATH |
| 3055 | do |
| 3056 | IFS=$as_save_IFS |
| 3057 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3058 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3059 | 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] | 3060 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3061 | ac_prog_rejected=yes |
| 3062 | continue |
| 3063 | fi |
| 3064 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3065 | $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] | 3066 | break 2 |
| 3067 | fi |
| 3068 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3069 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3070 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3071 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3072 | if test $ac_prog_rejected = yes; then |
| 3073 | # We found a bogon in the path, so make sure we never use it. |
| 3074 | set dummy $ac_cv_prog_CC |
| 3075 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3076 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3077 | # We chose a different compiler from the bogus one. |
| 3078 | # However, it has the same basename, so the bogon will be chosen |
| 3079 | # first if we set CC to just the basename; use the full file name. |
| 3080 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3081 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3082 | fi |
| 3083 | fi |
| 3084 | fi |
| 3085 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3086 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3087 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3089 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3090 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3092 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3093 | fi |
| 3094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3096 | fi |
| 3097 | if test -z "$CC"; then |
| 3098 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3099 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3100 | do |
| 3101 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3102 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3103 | { $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] | 3104 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3105 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3106 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3107 | else |
| 3108 | if test -n "$CC"; then |
| 3109 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3110 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3112 | for as_dir in $PATH |
| 3113 | do |
| 3114 | IFS=$as_save_IFS |
| 3115 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3116 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3117 | 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] | 3118 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3119 | $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] | 3120 | break 2 |
| 3121 | fi |
| 3122 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3123 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3124 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3125 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3126 | fi |
| 3127 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3128 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3129 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3131 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3132 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3134 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3135 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3138 | test -n "$CC" && break |
| 3139 | done |
| 3140 | fi |
| 3141 | if test -z "$CC"; then |
| 3142 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3143 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3144 | do |
| 3145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3146 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3147 | { $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] | 3148 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3149 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3150 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | else |
| 3152 | if test -n "$ac_ct_CC"; then |
| 3153 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3154 | else |
| 3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3156 | for as_dir in $PATH |
| 3157 | do |
| 3158 | IFS=$as_save_IFS |
| 3159 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3160 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3161 | 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] | 3162 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3163 | $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] | 3164 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3165 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3166 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3167 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3168 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3169 | |
| 3170 | fi |
| 3171 | fi |
| 3172 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3173 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3174 | { $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] | 3175 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3176 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3178 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3179 | fi |
| 3180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3182 | test -n "$ac_ct_CC" && break |
| 3183 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3185 | if test "x$ac_ct_CC" = x; then |
| 3186 | CC="" |
| 3187 | else |
| 3188 | case $cross_compiling:$ac_tool_warned in |
| 3189 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3190 | { $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] | 3191 | $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] | 3192 | ac_tool_warned=yes ;; |
| 3193 | esac |
| 3194 | CC=$ac_ct_CC |
| 3195 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3196 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3197 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3199 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3200 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3201 | 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] | 3202 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3203 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3204 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3205 | |
| 3206 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3207 | $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] | 3208 | set X $ac_compile |
| 3209 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3210 | for ac_option in --version -v -V -qversion; do |
| 3211 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3212 | case "(($ac_try" in |
| 3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3214 | *) ac_try_echo=$ac_try;; |
| 3215 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3216 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3217 | $as_echo "$ac_try_echo"; } >&5 |
| 3218 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3219 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3220 | if test -s conftest.err; then |
| 3221 | sed '10a\ |
| 3222 | ... rest of stderr output deleted ... |
| 3223 | 10q' conftest.err >conftest.er1 |
| 3224 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3225 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3226 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3228 | test $ac_status = 0; } |
| 3229 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3230 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3232 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3233 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3234 | int |
| 3235 | main () |
| 3236 | { |
| 3237 | |
| 3238 | ; |
| 3239 | return 0; |
| 3240 | } |
| 3241 | _ACEOF |
| 3242 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3243 | 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] | 3244 | # Try to create an executable without -o first, disregard a.out. |
| 3245 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3246 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3248 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3249 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3250 | |
| 3251 | # The possible output files: |
| 3252 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3254 | ac_rmfiles= |
| 3255 | for ac_file in $ac_files |
| 3256 | do |
| 3257 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3258 | *.$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] | 3259 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3260 | esac |
| 3261 | done |
| 3262 | rm -f $ac_rmfiles |
| 3263 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3264 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3265 | case "(($ac_try" in |
| 3266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3267 | *) ac_try_echo=$ac_try;; |
| 3268 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3269 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3270 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3271 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3272 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3274 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3275 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3276 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3277 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3278 | # so that the user can short-circuit this test for compilers unknown to |
| 3279 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3280 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3281 | do |
| 3282 | test -f "$ac_file" || continue |
| 3283 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3284 | *.$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] | 3285 | ;; |
| 3286 | [ab].out ) |
| 3287 | # We found the default executable, but exeext='' is most |
| 3288 | # certainly right. |
| 3289 | break;; |
| 3290 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3291 | 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] | 3292 | then :; else |
| 3293 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3294 | fi |
| 3295 | # We set ac_cv_exeext here because the later test for it is not |
| 3296 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3297 | # argument, so we may need to know it at that point already. |
| 3298 | # Even if this section looks crufty: it has the advantage of |
| 3299 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3300 | break;; |
| 3301 | * ) |
| 3302 | break;; |
| 3303 | esac |
| 3304 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3305 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3307 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3308 | ac_file='' |
| 3309 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3310 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3312 | $as_echo "no" >&6; } |
| 3313 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3315 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3316 | { { $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] | 3317 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3318 | as_fn_error 77 "C compiler cannot create executables |
| 3319 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3320 | else |
| 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3322 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3323 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3325 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3327 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3328 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3329 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3330 | 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] | 3331 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3332 | { $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] | 3333 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3334 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3335 | case "(($ac_try" in |
| 3336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3337 | *) ac_try_echo=$ac_try;; |
| 3338 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3339 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3340 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3341 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3342 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3344 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3346 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3347 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3348 | # `rm'. |
| 3349 | for ac_file in conftest.exe conftest conftest.*; do |
| 3350 | test -f "$ac_file" || continue |
| 3351 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3352 | *.$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] | 3353 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3354 | break;; |
| 3355 | * ) break;; |
| 3356 | esac |
| 3357 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3358 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3359 | { { $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] | 3360 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3361 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3362 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3363 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3364 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3365 | { $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] | 3366 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3367 | |
| 3368 | rm -f conftest.$ac_ext |
| 3369 | EXEEXT=$ac_cv_exeext |
| 3370 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3372 | /* end confdefs.h. */ |
| 3373 | #include <stdio.h> |
| 3374 | int |
| 3375 | main () |
| 3376 | { |
| 3377 | FILE *f = fopen ("conftest.out", "w"); |
| 3378 | return ferror (f) || fclose (f) != 0; |
| 3379 | |
| 3380 | ; |
| 3381 | return 0; |
| 3382 | } |
| 3383 | _ACEOF |
| 3384 | ac_clean_files="$ac_clean_files conftest.out" |
| 3385 | # Check that the compiler produces executables we can run. If not, either |
| 3386 | # the compiler is broken, or we cross compile. |
| 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3388 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3389 | if test "$cross_compiling" != yes; then |
| 3390 | { { ac_try="$ac_link" |
| 3391 | case "(($ac_try" in |
| 3392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3393 | *) ac_try_echo=$ac_try;; |
| 3394 | esac |
| 3395 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3396 | $as_echo "$ac_try_echo"; } >&5 |
| 3397 | (eval "$ac_link") 2>&5 |
| 3398 | ac_status=$? |
| 3399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3400 | test $ac_status = 0; } |
| 3401 | if { ac_try='./conftest$ac_cv_exeext' |
| 3402 | { { case "(($ac_try" in |
| 3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3404 | *) ac_try_echo=$ac_try;; |
| 3405 | esac |
| 3406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3407 | $as_echo "$ac_try_echo"; } >&5 |
| 3408 | (eval "$ac_try") 2>&5 |
| 3409 | ac_status=$? |
| 3410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3411 | test $ac_status = 0; }; }; then |
| 3412 | cross_compiling=no |
| 3413 | else |
| 3414 | if test "$cross_compiling" = maybe; then |
| 3415 | cross_compiling=yes |
| 3416 | else |
| 3417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3419 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3420 | If you meant to cross compile, use \`--host'. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3421 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3422 | fi |
| 3423 | fi |
| 3424 | fi |
| 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3426 | $as_echo "$cross_compiling" >&6; } |
| 3427 | |
| 3428 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3429 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3430 | { $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] | 3431 | $as_echo_n "checking for suffix of object files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3432 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3433 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3434 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3436 | /* end confdefs.h. */ |
| 3437 | |
| 3438 | int |
| 3439 | main () |
| 3440 | { |
| 3441 | |
| 3442 | ; |
| 3443 | return 0; |
| 3444 | } |
| 3445 | _ACEOF |
| 3446 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3447 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3448 | case "(($ac_try" in |
| 3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3450 | *) ac_try_echo=$ac_try;; |
| 3451 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3453 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3454 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3455 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3457 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3458 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3459 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3460 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3461 | *.$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] | 3462 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3463 | break;; |
| 3464 | esac |
| 3465 | done |
| 3466 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3467 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3470 | { { $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] | 3471 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3472 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3473 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3474 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3475 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3476 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3477 | { $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] | 3478 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3479 | OBJEXT=$ac_cv_objext |
| 3480 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3481 | { $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] | 3482 | $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] | 3483 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3484 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3485 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | /* end confdefs.h. */ |
| 3488 | |
| 3489 | int |
| 3490 | main () |
| 3491 | { |
| 3492 | #ifndef __GNUC__ |
| 3493 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3494 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3496 | ; |
| 3497 | return 0; |
| 3498 | } |
| 3499 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3500 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3501 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3502 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3503 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3504 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3506 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3508 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3509 | { $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] | 3510 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3511 | if test $ac_compiler_gnu = yes; then |
| 3512 | GCC=yes |
| 3513 | else |
| 3514 | GCC= |
| 3515 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3516 | ac_test_CFLAGS=${CFLAGS+set} |
| 3517 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3518 | { $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] | 3519 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3520 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3521 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3522 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3523 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3524 | ac_c_werror_flag=yes |
| 3525 | ac_cv_prog_cc_g=no |
| 3526 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3528 | /* end confdefs.h. */ |
| 3529 | |
| 3530 | int |
| 3531 | main () |
| 3532 | { |
| 3533 | |
| 3534 | ; |
| 3535 | return 0; |
| 3536 | } |
| 3537 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3538 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3539 | ac_cv_prog_cc_g=yes |
| 3540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3541 | CFLAGS="" |
| 3542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3543 | /* end confdefs.h. */ |
| 3544 | |
| 3545 | int |
| 3546 | main () |
| 3547 | { |
| 3548 | |
| 3549 | ; |
| 3550 | return 0; |
| 3551 | } |
| 3552 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3553 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3554 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3555 | else |
| 3556 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3557 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3559 | /* end confdefs.h. */ |
| 3560 | |
| 3561 | int |
| 3562 | main () |
| 3563 | { |
| 3564 | |
| 3565 | ; |
| 3566 | return 0; |
| 3567 | } |
| 3568 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3569 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3570 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3573 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3575 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3577 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3578 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3579 | { $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] | 3580 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3581 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3583 | elif test $ac_cv_prog_cc_g = yes; then |
| 3584 | if test "$GCC" = yes; then |
| 3585 | CFLAGS="-g -O2" |
| 3586 | else |
| 3587 | CFLAGS="-g" |
| 3588 | fi |
| 3589 | else |
| 3590 | if test "$GCC" = yes; then |
| 3591 | CFLAGS="-O2" |
| 3592 | else |
| 3593 | CFLAGS= |
| 3594 | fi |
| 3595 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3596 | { $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] | 3597 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3598 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3599 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3600 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3601 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3604 | /* end confdefs.h. */ |
| 3605 | #include <stdarg.h> |
| 3606 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3607 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3608 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3609 | struct buf { int x; }; |
| 3610 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3611 | static char *e (p, i) |
| 3612 | char **p; |
| 3613 | int i; |
| 3614 | { |
| 3615 | return p[i]; |
| 3616 | } |
| 3617 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3618 | { |
| 3619 | char *s; |
| 3620 | va_list v; |
| 3621 | va_start (v,p); |
| 3622 | s = g (p, va_arg (v,int)); |
| 3623 | va_end (v); |
| 3624 | return s; |
| 3625 | } |
| 3626 | |
| 3627 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3628 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3629 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3630 | 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] | 3631 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3632 | 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] | 3633 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3634 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3635 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3636 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3637 | inside strings and character constants. */ |
| 3638 | #define FOO(x) 'x' |
| 3639 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3641 | int test (int i, double x); |
| 3642 | struct s1 {int (*f) (int a);}; |
| 3643 | struct s2 {int (*f) (double a);}; |
| 3644 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3645 | int argc; |
| 3646 | char **argv; |
| 3647 | int |
| 3648 | main () |
| 3649 | { |
| 3650 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3651 | ; |
| 3652 | return 0; |
| 3653 | } |
| 3654 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3655 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3656 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3657 | do |
| 3658 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3659 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3662 | rm -f core conftest.err conftest.$ac_objext |
| 3663 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3664 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3665 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3666 | CC=$ac_save_CC |
| 3667 | |
| 3668 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3669 | # AC_CACHE_VAL |
| 3670 | case "x$ac_cv_prog_cc_c89" in |
| 3671 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3673 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3674 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3676 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3677 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3678 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3679 | { $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] | 3680 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3681 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3682 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3683 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3684 | fi |
| 3685 | |
| 3686 | ac_ext=c |
| 3687 | ac_cpp='$CPP $CPPFLAGS' |
| 3688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3691 | |
| 3692 | |
| 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3694 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3695 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3696 | $as_echo_n "(cached) " >&6 |
| 3697 | else |
| 3698 | ac_check_lib_save_LIBS=$LIBS |
| 3699 | LIBS="-ldl $LIBS" |
| 3700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3701 | /* end confdefs.h. */ |
| 3702 | |
| 3703 | /* Override any GCC internal prototype to avoid an error. |
| 3704 | Use char because int might match the return type of a GCC |
| 3705 | builtin and then its argument prototype would still apply. */ |
| 3706 | #ifdef __cplusplus |
| 3707 | extern "C" |
| 3708 | #endif |
| 3709 | char dlopen (); |
| 3710 | int |
| 3711 | main () |
| 3712 | { |
| 3713 | return dlopen (); |
| 3714 | ; |
| 3715 | return 0; |
| 3716 | } |
| 3717 | _ACEOF |
| 3718 | if ac_fn_c_try_link "$LINENO"; then : |
| 3719 | ac_cv_lib_dl_dlopen=yes |
| 3720 | else |
| 3721 | ac_cv_lib_dl_dlopen=no |
| 3722 | fi |
| 3723 | rm -f core conftest.err conftest.$ac_objext \ |
| 3724 | conftest$ac_exeext conftest.$ac_ext |
| 3725 | LIBS=$ac_check_lib_save_LIBS |
| 3726 | fi |
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3728 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3729 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3730 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3731 | fi |
| 3732 | |
| 3733 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3734 | |
| 3735 | # Check whether --with-cc was given. |
| 3736 | if test "${with_cc+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3737 | 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] | 3738 | fi |
| 3739 | |
| 3740 | |
| 3741 | # Check whether --with-ccopts was given. |
| 3742 | if test "${with_ccopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3743 | 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] | 3744 | fi |
| 3745 | |
| 3746 | |
| 3747 | # Check whether --with-ldopts was given. |
| 3748 | if test "${with_ldopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3749 | 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] | 3750 | fi |
| 3751 | |
| 3752 | ac_ext=c |
| 3753 | ac_cpp='$CPP $CPPFLAGS' |
| 3754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3757 | if test -n "$ac_tool_prefix"; then |
| 3758 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3759 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3761 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3762 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3763 | $as_echo_n "(cached) " >&6 |
| 3764 | else |
| 3765 | if test -n "$CC"; then |
| 3766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3767 | else |
| 3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3769 | for as_dir in $PATH |
| 3770 | do |
| 3771 | IFS=$as_save_IFS |
| 3772 | test -z "$as_dir" && as_dir=. |
| 3773 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3774 | 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] | 3775 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3777 | break 2 |
| 3778 | fi |
| 3779 | done |
| 3780 | done |
| 3781 | IFS=$as_save_IFS |
| 3782 | |
| 3783 | fi |
| 3784 | fi |
| 3785 | CC=$ac_cv_prog_CC |
| 3786 | if test -n "$CC"; then |
| 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3788 | $as_echo "$CC" >&6; } |
| 3789 | else |
| 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3791 | $as_echo "no" >&6; } |
| 3792 | fi |
| 3793 | |
| 3794 | |
| 3795 | fi |
| 3796 | if test -z "$ac_cv_prog_CC"; then |
| 3797 | ac_ct_CC=$CC |
| 3798 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3799 | set dummy gcc; ac_word=$2 |
| 3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3801 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3802 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3803 | $as_echo_n "(cached) " >&6 |
| 3804 | else |
| 3805 | if test -n "$ac_ct_CC"; then |
| 3806 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3807 | else |
| 3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3809 | for as_dir in $PATH |
| 3810 | do |
| 3811 | IFS=$as_save_IFS |
| 3812 | test -z "$as_dir" && as_dir=. |
| 3813 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3814 | 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] | 3815 | ac_cv_prog_ac_ct_CC="gcc" |
| 3816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3817 | break 2 |
| 3818 | fi |
| 3819 | done |
| 3820 | done |
| 3821 | IFS=$as_save_IFS |
| 3822 | |
| 3823 | fi |
| 3824 | fi |
| 3825 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3826 | if test -n "$ac_ct_CC"; then |
| 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3828 | $as_echo "$ac_ct_CC" >&6; } |
| 3829 | else |
| 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3831 | $as_echo "no" >&6; } |
| 3832 | fi |
| 3833 | |
| 3834 | if test "x$ac_ct_CC" = x; then |
| 3835 | CC="" |
| 3836 | else |
| 3837 | case $cross_compiling:$ac_tool_warned in |
| 3838 | yes:) |
| 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3841 | ac_tool_warned=yes ;; |
| 3842 | esac |
| 3843 | CC=$ac_ct_CC |
| 3844 | fi |
| 3845 | else |
| 3846 | CC="$ac_cv_prog_CC" |
| 3847 | fi |
| 3848 | |
| 3849 | if test -z "$CC"; then |
| 3850 | if test -n "$ac_tool_prefix"; then |
| 3851 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3852 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3854 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3855 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3856 | $as_echo_n "(cached) " >&6 |
| 3857 | else |
| 3858 | if test -n "$CC"; then |
| 3859 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3860 | else |
| 3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3862 | for as_dir in $PATH |
| 3863 | do |
| 3864 | IFS=$as_save_IFS |
| 3865 | test -z "$as_dir" && as_dir=. |
| 3866 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3867 | 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] | 3868 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3870 | break 2 |
| 3871 | fi |
| 3872 | done |
| 3873 | done |
| 3874 | IFS=$as_save_IFS |
| 3875 | |
| 3876 | fi |
| 3877 | fi |
| 3878 | CC=$ac_cv_prog_CC |
| 3879 | if test -n "$CC"; then |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3881 | $as_echo "$CC" >&6; } |
| 3882 | else |
| 3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3884 | $as_echo "no" >&6; } |
| 3885 | fi |
| 3886 | |
| 3887 | |
| 3888 | fi |
| 3889 | fi |
| 3890 | if test -z "$CC"; then |
| 3891 | # Extract the first word of "cc", so it can be a program name with args. |
| 3892 | set dummy cc; ac_word=$2 |
| 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3894 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3895 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3896 | $as_echo_n "(cached) " >&6 |
| 3897 | else |
| 3898 | if test -n "$CC"; then |
| 3899 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3900 | else |
| 3901 | ac_prog_rejected=no |
| 3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3903 | for as_dir in $PATH |
| 3904 | do |
| 3905 | IFS=$as_save_IFS |
| 3906 | test -z "$as_dir" && as_dir=. |
| 3907 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3908 | 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] | 3909 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3910 | ac_prog_rejected=yes |
| 3911 | continue |
| 3912 | fi |
| 3913 | ac_cv_prog_CC="cc" |
| 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3915 | break 2 |
| 3916 | fi |
| 3917 | done |
| 3918 | done |
| 3919 | IFS=$as_save_IFS |
| 3920 | |
| 3921 | if test $ac_prog_rejected = yes; then |
| 3922 | # We found a bogon in the path, so make sure we never use it. |
| 3923 | set dummy $ac_cv_prog_CC |
| 3924 | shift |
| 3925 | if test $# != 0; then |
| 3926 | # We chose a different compiler from the bogus one. |
| 3927 | # However, it has the same basename, so the bogon will be chosen |
| 3928 | # first if we set CC to just the basename; use the full file name. |
| 3929 | shift |
| 3930 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3931 | fi |
| 3932 | fi |
| 3933 | fi |
| 3934 | fi |
| 3935 | CC=$ac_cv_prog_CC |
| 3936 | if test -n "$CC"; then |
| 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3938 | $as_echo "$CC" >&6; } |
| 3939 | else |
| 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3941 | $as_echo "no" >&6; } |
| 3942 | fi |
| 3943 | |
| 3944 | |
| 3945 | fi |
| 3946 | if test -z "$CC"; then |
| 3947 | if test -n "$ac_tool_prefix"; then |
| 3948 | for ac_prog in cl.exe |
| 3949 | do |
| 3950 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3951 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3953 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3954 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3955 | $as_echo_n "(cached) " >&6 |
| 3956 | else |
| 3957 | if test -n "$CC"; then |
| 3958 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3959 | else |
| 3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3961 | for as_dir in $PATH |
| 3962 | do |
| 3963 | IFS=$as_save_IFS |
| 3964 | test -z "$as_dir" && as_dir=. |
| 3965 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3966 | 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] | 3967 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3969 | break 2 |
| 3970 | fi |
| 3971 | done |
| 3972 | done |
| 3973 | IFS=$as_save_IFS |
| 3974 | |
| 3975 | fi |
| 3976 | fi |
| 3977 | CC=$ac_cv_prog_CC |
| 3978 | if test -n "$CC"; then |
| 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3980 | $as_echo "$CC" >&6; } |
| 3981 | else |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3983 | $as_echo "no" >&6; } |
| 3984 | fi |
| 3985 | |
| 3986 | |
| 3987 | test -n "$CC" && break |
| 3988 | done |
| 3989 | fi |
| 3990 | if test -z "$CC"; then |
| 3991 | ac_ct_CC=$CC |
| 3992 | for ac_prog in cl.exe |
| 3993 | do |
| 3994 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3995 | set dummy $ac_prog; ac_word=$2 |
| 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3997 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3998 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3999 | $as_echo_n "(cached) " >&6 |
| 4000 | else |
| 4001 | if test -n "$ac_ct_CC"; then |
| 4002 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4003 | else |
| 4004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4005 | for as_dir in $PATH |
| 4006 | do |
| 4007 | IFS=$as_save_IFS |
| 4008 | test -z "$as_dir" && as_dir=. |
| 4009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4010 | 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] | 4011 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4013 | break 2 |
| 4014 | fi |
| 4015 | done |
| 4016 | done |
| 4017 | IFS=$as_save_IFS |
| 4018 | |
| 4019 | fi |
| 4020 | fi |
| 4021 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4022 | if test -n "$ac_ct_CC"; then |
| 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4024 | $as_echo "$ac_ct_CC" >&6; } |
| 4025 | else |
| 4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4027 | $as_echo "no" >&6; } |
| 4028 | fi |
| 4029 | |
| 4030 | |
| 4031 | test -n "$ac_ct_CC" && break |
| 4032 | done |
| 4033 | |
| 4034 | if test "x$ac_ct_CC" = x; then |
| 4035 | CC="" |
| 4036 | else |
| 4037 | case $cross_compiling:$ac_tool_warned in |
| 4038 | yes:) |
| 4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4040 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4041 | ac_tool_warned=yes ;; |
| 4042 | esac |
| 4043 | CC=$ac_ct_CC |
| 4044 | fi |
| 4045 | fi |
| 4046 | |
| 4047 | fi |
| 4048 | |
| 4049 | |
| 4050 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4052 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4053 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4054 | |
| 4055 | # Provide some information about the compiler. |
| 4056 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4057 | set X $ac_compile |
| 4058 | ac_compiler=$2 |
| 4059 | for ac_option in --version -v -V -qversion; do |
| 4060 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4061 | case "(($ac_try" in |
| 4062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4063 | *) ac_try_echo=$ac_try;; |
| 4064 | esac |
| 4065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4066 | $as_echo "$ac_try_echo"; } >&5 |
| 4067 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4068 | ac_status=$? |
| 4069 | if test -s conftest.err; then |
| 4070 | sed '10a\ |
| 4071 | ... rest of stderr output deleted ... |
| 4072 | 10q' conftest.err >conftest.er1 |
| 4073 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4074 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4075 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4077 | test $ac_status = 0; } |
| 4078 | done |
| 4079 | |
| 4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4081 | $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] | 4082 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4083 | $as_echo_n "(cached) " >&6 |
| 4084 | else |
| 4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4086 | /* end confdefs.h. */ |
| 4087 | |
| 4088 | int |
| 4089 | main () |
| 4090 | { |
| 4091 | #ifndef __GNUC__ |
| 4092 | choke me |
| 4093 | #endif |
| 4094 | |
| 4095 | ; |
| 4096 | return 0; |
| 4097 | } |
| 4098 | _ACEOF |
| 4099 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4100 | ac_compiler_gnu=yes |
| 4101 | else |
| 4102 | ac_compiler_gnu=no |
| 4103 | fi |
| 4104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4105 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4106 | |
| 4107 | fi |
| 4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4109 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4110 | if test $ac_compiler_gnu = yes; then |
| 4111 | GCC=yes |
| 4112 | else |
| 4113 | GCC= |
| 4114 | fi |
| 4115 | ac_test_CFLAGS=${CFLAGS+set} |
| 4116 | ac_save_CFLAGS=$CFLAGS |
| 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4118 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4119 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4120 | $as_echo_n "(cached) " >&6 |
| 4121 | else |
| 4122 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4123 | ac_c_werror_flag=yes |
| 4124 | ac_cv_prog_cc_g=no |
| 4125 | CFLAGS="-g" |
| 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4127 | /* end confdefs.h. */ |
| 4128 | |
| 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4138 | ac_cv_prog_cc_g=yes |
| 4139 | else |
| 4140 | CFLAGS="" |
| 4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4142 | /* end confdefs.h. */ |
| 4143 | |
| 4144 | int |
| 4145 | main () |
| 4146 | { |
| 4147 | |
| 4148 | ; |
| 4149 | return 0; |
| 4150 | } |
| 4151 | _ACEOF |
| 4152 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4153 | |
| 4154 | else |
| 4155 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4156 | CFLAGS="-g" |
| 4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4158 | /* end confdefs.h. */ |
| 4159 | |
| 4160 | int |
| 4161 | main () |
| 4162 | { |
| 4163 | |
| 4164 | ; |
| 4165 | return 0; |
| 4166 | } |
| 4167 | _ACEOF |
| 4168 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4169 | ac_cv_prog_cc_g=yes |
| 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 | fi |
| 4175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4176 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4177 | fi |
| 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4179 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4180 | if test "$ac_test_CFLAGS" = set; then |
| 4181 | CFLAGS=$ac_save_CFLAGS |
| 4182 | elif test $ac_cv_prog_cc_g = yes; then |
| 4183 | if test "$GCC" = yes; then |
| 4184 | CFLAGS="-g -O2" |
| 4185 | else |
| 4186 | CFLAGS="-g" |
| 4187 | fi |
| 4188 | else |
| 4189 | if test "$GCC" = yes; then |
| 4190 | CFLAGS="-O2" |
| 4191 | else |
| 4192 | CFLAGS= |
| 4193 | fi |
| 4194 | fi |
| 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4196 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4197 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4198 | $as_echo_n "(cached) " >&6 |
| 4199 | else |
| 4200 | ac_cv_prog_cc_c89=no |
| 4201 | ac_save_CC=$CC |
| 4202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4203 | /* end confdefs.h. */ |
| 4204 | #include <stdarg.h> |
| 4205 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4206 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4207 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4208 | struct buf { int x; }; |
| 4209 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4210 | static char *e (p, i) |
| 4211 | char **p; |
| 4212 | int i; |
| 4213 | { |
| 4214 | return p[i]; |
| 4215 | } |
| 4216 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4217 | { |
| 4218 | char *s; |
| 4219 | va_list v; |
| 4220 | va_start (v,p); |
| 4221 | s = g (p, va_arg (v,int)); |
| 4222 | va_end (v); |
| 4223 | return s; |
| 4224 | } |
| 4225 | |
| 4226 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4227 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4228 | These don't provoke an error unfortunately, instead are silently treated |
| 4229 | as 'x'. The following induces an error, until -std is added to get |
| 4230 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4231 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4232 | that's true only with -std. */ |
| 4233 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4234 | |
| 4235 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4236 | inside strings and character constants. */ |
| 4237 | #define FOO(x) 'x' |
| 4238 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4239 | |
| 4240 | int test (int i, double x); |
| 4241 | struct s1 {int (*f) (int a);}; |
| 4242 | struct s2 {int (*f) (double a);}; |
| 4243 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4244 | int argc; |
| 4245 | char **argv; |
| 4246 | int |
| 4247 | main () |
| 4248 | { |
| 4249 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4250 | ; |
| 4251 | return 0; |
| 4252 | } |
| 4253 | _ACEOF |
| 4254 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4255 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4256 | do |
| 4257 | CC="$ac_save_CC $ac_arg" |
| 4258 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4259 | ac_cv_prog_cc_c89=$ac_arg |
| 4260 | fi |
| 4261 | rm -f core conftest.err conftest.$ac_objext |
| 4262 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4263 | done |
| 4264 | rm -f conftest.$ac_ext |
| 4265 | CC=$ac_save_CC |
| 4266 | |
| 4267 | fi |
| 4268 | # AC_CACHE_VAL |
| 4269 | case "x$ac_cv_prog_cc_c89" in |
| 4270 | x) |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4272 | $as_echo "none needed" >&6; } ;; |
| 4273 | xno) |
| 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4275 | $as_echo "unsupported" >&6; } ;; |
| 4276 | *) |
| 4277 | CC="$CC $ac_cv_prog_cc_c89" |
| 4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4279 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4280 | esac |
| 4281 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4282 | |
| 4283 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4284 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4285 | ac_ext=c |
| 4286 | ac_cpp='$CPP $CPPFLAGS' |
| 4287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4290 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4291 | if test "$GCC" = yes; then |
| 4292 | RDYNAMIC="-rdynamic" |
| 4293 | |
| 4294 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4295 | ac_ext=c |
| 4296 | ac_cpp='$CPP $CPPFLAGS' |
| 4297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4300 | { $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] | 4301 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4302 | # On Suns, sometimes $CPP names a directory. |
| 4303 | if test -n "$CPP" && test -d "$CPP"; then |
| 4304 | CPP= |
| 4305 | fi |
| 4306 | if test -z "$CPP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4307 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4308 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4309 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4310 | # Double quotes because CPP needs to be expanded |
| 4311 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4312 | do |
| 4313 | ac_preproc_ok=false |
| 4314 | for ac_c_preproc_warn_flag in '' yes |
| 4315 | do |
| 4316 | # Use a header file that comes with gcc, so configuring glibc |
| 4317 | # with a fresh cross-compiler works. |
| 4318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4319 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4320 | # 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] | 4321 | # 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] | 4322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4323 | /* end confdefs.h. */ |
| 4324 | #ifdef __STDC__ |
| 4325 | # include <limits.h> |
| 4326 | #else |
| 4327 | # include <assert.h> |
| 4328 | #endif |
| 4329 | Syntax error |
| 4330 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4331 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4332 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4333 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | # Broken: fails on valid input. |
| 4335 | continue |
| 4336 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4337 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4339 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4342 | /* end confdefs.h. */ |
| 4343 | #include <ac_nonexistent.h> |
| 4344 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4345 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4346 | # Broken: success on invalid input. |
| 4347 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4348 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4349 | # Passes both tests. |
| 4350 | ac_preproc_ok=: |
| 4351 | break |
| 4352 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4353 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4354 | |
| 4355 | done |
| 4356 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4357 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4358 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4359 | break |
| 4360 | fi |
| 4361 | |
| 4362 | done |
| 4363 | ac_cv_prog_CPP=$CPP |
| 4364 | |
| 4365 | fi |
| 4366 | CPP=$ac_cv_prog_CPP |
| 4367 | else |
| 4368 | ac_cv_prog_CPP=$CPP |
| 4369 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4371 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4372 | ac_preproc_ok=false |
| 4373 | for ac_c_preproc_warn_flag in '' yes |
| 4374 | do |
| 4375 | # Use a header file that comes with gcc, so configuring glibc |
| 4376 | # with a fresh cross-compiler works. |
| 4377 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4378 | # <limits.h> exists even on freestanding compilers. |
| 4379 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4380 | # 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] | 4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4382 | /* end confdefs.h. */ |
| 4383 | #ifdef __STDC__ |
| 4384 | # include <limits.h> |
| 4385 | #else |
| 4386 | # include <assert.h> |
| 4387 | #endif |
| 4388 | Syntax error |
| 4389 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4390 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4391 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4392 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4393 | # Broken: fails on valid input. |
| 4394 | continue |
| 4395 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4396 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4397 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4399 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4401 | /* end confdefs.h. */ |
| 4402 | #include <ac_nonexistent.h> |
| 4403 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4404 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4405 | # Broken: success on invalid input. |
| 4406 | continue |
| 4407 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4408 | # Passes both tests. |
| 4409 | ac_preproc_ok=: |
| 4410 | break |
| 4411 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4412 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4413 | |
| 4414 | done |
| 4415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4416 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4417 | if $ac_preproc_ok; then : |
| 4418 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4420 | { { $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] | 4421 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4422 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4423 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4424 | fi |
| 4425 | |
| 4426 | ac_ext=c |
| 4427 | ac_cpp='$CPP $CPPFLAGS' |
| 4428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4432 | { $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] | 4433 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4434 | if test "$GCC" = yes |
| 4435 | then |
| 4436 | case "$host_cpu" in |
| 4437 | alpha) addcflags="-mieee" ;; |
| 4438 | esac |
| 4439 | fi |
| 4440 | if test "x$addcflags" != x |
| 4441 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4443 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4444 | CFLAGS="$addcflags $CFLAGS" |
| 4445 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4447 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4448 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4449 | |
| 4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4451 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4452 | if ${ac_cv_path_GREP+:} false; then : |
| 4453 | $as_echo_n "(cached) " >&6 |
| 4454 | else |
| 4455 | if test -z "$GREP"; then |
| 4456 | ac_path_GREP_found=false |
| 4457 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4459 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4460 | do |
| 4461 | IFS=$as_save_IFS |
| 4462 | test -z "$as_dir" && as_dir=. |
| 4463 | for ac_prog in grep ggrep; do |
| 4464 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4465 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4466 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4467 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4468 | # Check for GNU $ac_path_GREP |
| 4469 | case `"$ac_path_GREP" --version 2>&1` in |
| 4470 | *GNU*) |
| 4471 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4472 | *) |
| 4473 | ac_count=0 |
| 4474 | $as_echo_n 0123456789 >"conftest.in" |
| 4475 | while : |
| 4476 | do |
| 4477 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4478 | mv "conftest.tmp" "conftest.in" |
| 4479 | cp "conftest.in" "conftest.nl" |
| 4480 | $as_echo 'GREP' >> "conftest.nl" |
| 4481 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4482 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4483 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4484 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4485 | # Best one so far, save it but keep looking for a better one |
| 4486 | ac_cv_path_GREP="$ac_path_GREP" |
| 4487 | ac_path_GREP_max=$ac_count |
| 4488 | fi |
| 4489 | # 10*(2^10) chars as input seems more than enough |
| 4490 | test $ac_count -gt 10 && break |
| 4491 | done |
| 4492 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4493 | esac |
| 4494 | |
| 4495 | $ac_path_GREP_found && break 3 |
| 4496 | done |
| 4497 | done |
| 4498 | done |
| 4499 | IFS=$as_save_IFS |
| 4500 | if test -z "$ac_cv_path_GREP"; then |
| 4501 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4502 | fi |
| 4503 | else |
| 4504 | ac_cv_path_GREP=$GREP |
| 4505 | fi |
| 4506 | |
| 4507 | fi |
| 4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4509 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4510 | GREP="$ac_cv_path_GREP" |
| 4511 | |
| 4512 | |
| 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4514 | $as_echo_n "checking for egrep... " >&6; } |
| 4515 | if ${ac_cv_path_EGREP+:} false; then : |
| 4516 | $as_echo_n "(cached) " >&6 |
| 4517 | else |
| 4518 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4519 | then ac_cv_path_EGREP="$GREP -E" |
| 4520 | else |
| 4521 | if test -z "$EGREP"; then |
| 4522 | ac_path_EGREP_found=false |
| 4523 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4525 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4526 | do |
| 4527 | IFS=$as_save_IFS |
| 4528 | test -z "$as_dir" && as_dir=. |
| 4529 | for ac_prog in egrep; do |
| 4530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4531 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4532 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4533 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4534 | # Check for GNU $ac_path_EGREP |
| 4535 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4536 | *GNU*) |
| 4537 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4538 | *) |
| 4539 | ac_count=0 |
| 4540 | $as_echo_n 0123456789 >"conftest.in" |
| 4541 | while : |
| 4542 | do |
| 4543 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4544 | mv "conftest.tmp" "conftest.in" |
| 4545 | cp "conftest.in" "conftest.nl" |
| 4546 | $as_echo 'EGREP' >> "conftest.nl" |
| 4547 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4548 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4549 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4550 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4551 | # Best one so far, save it but keep looking for a better one |
| 4552 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4553 | ac_path_EGREP_max=$ac_count |
| 4554 | fi |
| 4555 | # 10*(2^10) chars as input seems more than enough |
| 4556 | test $ac_count -gt 10 && break |
| 4557 | done |
| 4558 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4559 | esac |
| 4560 | |
| 4561 | $ac_path_EGREP_found && break 3 |
| 4562 | done |
| 4563 | done |
| 4564 | done |
| 4565 | IFS=$as_save_IFS |
| 4566 | if test -z "$ac_cv_path_EGREP"; then |
| 4567 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4568 | fi |
| 4569 | else |
| 4570 | ac_cv_path_EGREP=$EGREP |
| 4571 | fi |
| 4572 | |
| 4573 | fi |
| 4574 | fi |
| 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4576 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4577 | EGREP="$ac_cv_path_EGREP" |
| 4578 | |
| 4579 | |
| 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4581 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4582 | if ${ac_cv_header_stdc+:} false; then : |
| 4583 | $as_echo_n "(cached) " >&6 |
| 4584 | else |
| 4585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4586 | /* end confdefs.h. */ |
| 4587 | #include <stdlib.h> |
| 4588 | #include <stdarg.h> |
| 4589 | #include <string.h> |
| 4590 | #include <float.h> |
| 4591 | |
| 4592 | int |
| 4593 | main () |
| 4594 | { |
| 4595 | |
| 4596 | ; |
| 4597 | return 0; |
| 4598 | } |
| 4599 | _ACEOF |
| 4600 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4601 | ac_cv_header_stdc=yes |
| 4602 | else |
| 4603 | ac_cv_header_stdc=no |
| 4604 | fi |
| 4605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4606 | |
| 4607 | if test $ac_cv_header_stdc = yes; then |
| 4608 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4610 | /* end confdefs.h. */ |
| 4611 | #include <string.h> |
| 4612 | |
| 4613 | _ACEOF |
| 4614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4615 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4616 | |
| 4617 | else |
| 4618 | ac_cv_header_stdc=no |
| 4619 | fi |
| 4620 | rm -f conftest* |
| 4621 | |
| 4622 | fi |
| 4623 | |
| 4624 | if test $ac_cv_header_stdc = yes; then |
| 4625 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4627 | /* end confdefs.h. */ |
| 4628 | #include <stdlib.h> |
| 4629 | |
| 4630 | _ACEOF |
| 4631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4632 | $EGREP "free" >/dev/null 2>&1; then : |
| 4633 | |
| 4634 | else |
| 4635 | ac_cv_header_stdc=no |
| 4636 | fi |
| 4637 | rm -f conftest* |
| 4638 | |
| 4639 | fi |
| 4640 | |
| 4641 | if test $ac_cv_header_stdc = yes; then |
| 4642 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4643 | if test "$cross_compiling" = yes; then : |
| 4644 | : |
| 4645 | else |
| 4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4647 | /* end confdefs.h. */ |
| 4648 | #include <ctype.h> |
| 4649 | #include <stdlib.h> |
| 4650 | #if ((' ' & 0x0FF) == 0x020) |
| 4651 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4652 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4653 | #else |
| 4654 | # define ISLOWER(c) \ |
| 4655 | (('a' <= (c) && (c) <= 'i') \ |
| 4656 | || ('j' <= (c) && (c) <= 'r') \ |
| 4657 | || ('s' <= (c) && (c) <= 'z')) |
| 4658 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4659 | #endif |
| 4660 | |
| 4661 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4662 | int |
| 4663 | main () |
| 4664 | { |
| 4665 | int i; |
| 4666 | for (i = 0; i < 256; i++) |
| 4667 | if (XOR (islower (i), ISLOWER (i)) |
| 4668 | || toupper (i) != TOUPPER (i)) |
| 4669 | return 2; |
| 4670 | return 0; |
| 4671 | } |
| 4672 | _ACEOF |
| 4673 | if ac_fn_c_try_run "$LINENO"; then : |
| 4674 | |
| 4675 | else |
| 4676 | ac_cv_header_stdc=no |
| 4677 | fi |
| 4678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4679 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4680 | fi |
| 4681 | |
| 4682 | fi |
| 4683 | fi |
| 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4685 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4686 | if test $ac_cv_header_stdc = yes; then |
| 4687 | |
| 4688 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4689 | |
| 4690 | fi |
| 4691 | |
| 4692 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4693 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4694 | inttypes.h stdint.h unistd.h |
| 4695 | do : |
| 4696 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4697 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4698 | " |
| 4699 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4700 | cat >>confdefs.h <<_ACEOF |
| 4701 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4702 | _ACEOF |
| 4703 | |
| 4704 | fi |
| 4705 | |
| 4706 | done |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4711 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4712 | MINIX=yes |
| 4713 | else |
| 4714 | MINIX= |
| 4715 | fi |
| 4716 | |
| 4717 | |
| 4718 | if test "$MINIX" = yes; then |
| 4719 | |
| 4720 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4721 | |
| 4722 | |
| 4723 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4724 | |
| 4725 | |
| 4726 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4727 | |
| 4728 | fi |
| 4729 | |
| 4730 | |
| 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4732 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4733 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4734 | $as_echo_n "(cached) " >&6 |
| 4735 | else |
| 4736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4737 | /* end confdefs.h. */ |
| 4738 | |
| 4739 | # define __EXTENSIONS__ 1 |
| 4740 | $ac_includes_default |
| 4741 | int |
| 4742 | main () |
| 4743 | { |
| 4744 | |
| 4745 | ; |
| 4746 | return 0; |
| 4747 | } |
| 4748 | _ACEOF |
| 4749 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4750 | ac_cv_safe_to_define___extensions__=yes |
| 4751 | else |
| 4752 | ac_cv_safe_to_define___extensions__=no |
| 4753 | fi |
| 4754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4755 | fi |
| 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4757 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4758 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4759 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4760 | |
| 4761 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4762 | |
| 4763 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4764 | |
| 4765 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4766 | |
| 4767 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4768 | |
| 4769 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4770 | LIB_EXT=.a |
| 4771 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4772 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4774 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4775 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4776 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4777 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4778 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4779 | fi |
| 4780 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4781 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4782 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4783 | then |
| 4784 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4785 | { $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] | 4786 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4787 | else |
| 4788 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4789 | { $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] | 4790 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4791 | fi |
| 4792 | |
| 4793 | else |
| 4794 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4795 | { $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] | 4796 | $as_echo "Disabling maintainer mode by default" >&6; } |
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 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4800 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4801 | # Check whether --enable-symlink-install was given. |
| 4802 | if test "${enable_symlink_install+set}" = set; then : |
| 4803 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4804 | then |
| 4805 | LINK_INSTALL_FLAGS=-f |
| 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4807 | $as_echo "Disabling symlinks for install" >&6; } |
| 4808 | else |
| 4809 | LINK_INSTALL_FLAGS=-sf |
| 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4811 | $as_echo "Enabling symlinks for install" >&6; } |
| 4812 | fi |
| 4813 | |
| 4814 | else |
| 4815 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4817 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4818 | |
| 4819 | fi |
| 4820 | |
| 4821 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4822 | relative_symlink_defined= |
| 4823 | # Check whether --enable-relative-symlinks was given. |
| 4824 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4825 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4826 | then |
| 4827 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4828 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4830 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4831 | else |
| 4832 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4833 | relative_symlink_defined=yes |
| 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4835 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4836 | fi |
| 4837 | fi |
| 4838 | |
| 4839 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4840 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4841 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4842 | then |
| 4843 | SYMLINK_RELATIVE=yes |
| 4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4845 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4846 | else |
| 4847 | SYMLINK_RELATIVE=--relative |
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4849 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4850 | fi |
| 4851 | |
| 4852 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4853 | if test -z "$relative_symlink_defined" |
| 4854 | then |
| 4855 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4857 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4858 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4859 | |
| 4860 | fi |
| 4861 | |
| 4862 | |
| 4863 | # Check whether --enable-symlink-build was given. |
| 4864 | if test "${enable_symlink_build+set}" = set; then : |
| 4865 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4866 | then |
| 4867 | LINK_BUILD_FLAGS= |
| 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4869 | $as_echo "Disabling symlinks for build" >&6; } |
| 4870 | else |
| 4871 | LINK_BUILD_FLAGS=-s |
| 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4873 | $as_echo "Enabling symlinks for build" >&6; } |
| 4874 | fi |
| 4875 | |
| 4876 | else |
| 4877 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4879 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4880 | |
| 4881 | fi |
| 4882 | |
| 4883 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4884 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4885 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4886 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4887 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4888 | { $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] | 4889 | $as_echo "Disabling verbose make commands" >&6; } |
| 4890 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4891 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4892 | Q=@ |
| 4893 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4894 | { $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] | 4895 | $as_echo "Enabling verbose make commands" >&6; } |
| 4896 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4897 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4898 | Q= |
| 4899 | fi |
| 4900 | |
| 4901 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4902 | { $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] | 4903 | $as_echo "Disabling verbose make commands" >&6; } |
| 4904 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4905 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4906 | Q=@ |
| 4907 | |
| 4908 | fi |
| 4909 | |
| 4910 | |
| 4911 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4912 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4913 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4914 | LDFLAG_DYNAMIC= |
| 4915 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4916 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4917 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4918 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4919 | then |
| 4920 | ELF_CMT=# |
| 4921 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4922 | { $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] | 4923 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4924 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4925 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4926 | ELF_CMT= |
| 4927 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4928 | case "$host_os" in |
| 4929 | solaris2.*) |
| 4930 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4931 | ;; |
| 4932 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4933 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4934 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4935 | PRIVATE_LIBS_CMT=# |
| 4936 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4937 | { $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] | 4938 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4939 | fi |
| 4940 | |
| 4941 | else |
| 4942 | MAKEFILE_ELF=/dev/null |
| 4943 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4944 | { $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] | 4945 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4947 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4948 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4950 | |
| 4951 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4952 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4953 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4954 | then |
| 4955 | BSDLIB_CMT=# |
| 4956 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4957 | { $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] | 4958 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4959 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4960 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4961 | BSDLIB_CMT= |
| 4962 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4963 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4964 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4965 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4966 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4967 | LIB_EXT=.dylib |
| 4968 | ;; |
| 4969 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4970 | { $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] | 4971 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4972 | fi |
| 4973 | |
| 4974 | else |
| 4975 | MAKEFILE_BSDLIB=/dev/null |
| 4976 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4977 | { $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] | 4978 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4980 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4981 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4983 | |
| 4984 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4985 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4986 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4987 | then |
| 4988 | PROFILE_CMT=# |
| 4989 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4990 | { $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] | 4991 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4992 | else |
| 4993 | PROFILE_CMT= |
| 4994 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4995 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4996 | { $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] | 4997 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4998 | fi |
| 4999 | |
| 5000 | else |
| 5001 | PROFILE_CMT=# |
| 5002 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5003 | { $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] | 5004 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5006 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5007 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5009 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5010 | # Check whether --enable-gcov was given. |
| 5011 | if test "${enable_gcov+set}" = set; then : |
| 5012 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5013 | then |
| 5014 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5015 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5017 | $as_echo "Enabling gcov support" >&6; } |
| 5018 | fi |
| 5019 | |
| 5020 | fi |
| 5021 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 5022 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
| 5023 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" |
| 5024 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 5025 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} |
| 5026 | # Check whether --enable-hardening was given. |
| 5027 | if test "${enable_hardening+set}" = set; then : |
| 5028 | enableval=$enable_hardening; if test "$enableval" = "yes" |
| 5029 | then |
| 5030 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" |
| 5031 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" |
| 5032 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" |
| 5033 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" |
| 5034 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" |
| 5035 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" |
| 5036 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" |
| 5037 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" |
| 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 |
| 5039 | $as_echo "Enabling hardening support" >&6; } |
| 5040 | fi |
| 5041 | |
| 5042 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5043 | |
| 5044 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5046 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5047 | |
| 5048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5049 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5050 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5051 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5052 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5053 | { $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] | 5054 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5055 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5056 | |
| 5057 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5058 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5059 | { $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] | 5060 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5061 | fi |
| 5062 | |
| 5063 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5064 | { $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] | 5065 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5067 | fi |
| 5068 | |
| 5069 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5070 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5071 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5072 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5073 | { $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] | 5074 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5075 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5076 | |
| 5077 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5078 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5079 | { $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] | 5080 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5081 | fi |
| 5082 | |
| 5083 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5084 | { $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] | 5085 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5086 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5087 | fi |
| 5088 | |
| 5089 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5090 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5091 | enableval=$enable_testio_debug; |
| 5092 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5093 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5094 | { $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] | 5095 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5096 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5097 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5098 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5099 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5100 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5101 | { $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] | 5102 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5103 | fi |
| 5104 | |
| 5105 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5106 | { $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] | 5107 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5108 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5109 | |
| 5110 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5111 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5112 | fi |
| 5113 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5114 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5115 | |
| 5116 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
| 5121 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5122 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5123 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5124 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5125 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5126 | { $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] | 5127 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5128 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5129 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5130 | else |
| 5131 | case $PKG_CONFIG in |
| 5132 | [\\/]* | ?:[\\/]*) |
| 5133 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5134 | ;; |
| 5135 | *) |
| 5136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5137 | for as_dir in $PATH |
| 5138 | do |
| 5139 | IFS=$as_save_IFS |
| 5140 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5142 | 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] | 5143 | 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] | 5144 | $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] | 5145 | break 2 |
| 5146 | fi |
| 5147 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5148 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5149 | IFS=$as_save_IFS |
| 5150 | |
| 5151 | ;; |
| 5152 | esac |
| 5153 | fi |
| 5154 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5155 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5157 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5158 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5160 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5161 | fi |
| 5162 | |
| 5163 | |
| 5164 | fi |
| 5165 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5166 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5167 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5168 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5169 | { $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] | 5170 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5171 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5172 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5173 | else |
| 5174 | case $ac_pt_PKG_CONFIG in |
| 5175 | [\\/]* | ?:[\\/]*) |
| 5176 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5177 | ;; |
| 5178 | *) |
| 5179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5180 | for as_dir in $PATH |
| 5181 | do |
| 5182 | IFS=$as_save_IFS |
| 5183 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5184 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5185 | 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] | 5186 | 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] | 5187 | $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] | 5188 | break 2 |
| 5189 | fi |
| 5190 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5191 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5192 | IFS=$as_save_IFS |
| 5193 | |
| 5194 | ;; |
| 5195 | esac |
| 5196 | fi |
| 5197 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5198 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5199 | { $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] | 5200 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5201 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5203 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5204 | fi |
| 5205 | |
| 5206 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5207 | PKG_CONFIG="" |
| 5208 | else |
| 5209 | case $cross_compiling:$ac_tool_warned in |
| 5210 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5211 | { $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] | 5212 | $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] | 5213 | ac_tool_warned=yes ;; |
| 5214 | esac |
| 5215 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5216 | fi |
| 5217 | else |
| 5218 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5219 | fi |
| 5220 | |
| 5221 | fi |
| 5222 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5223 | _pkg_min_version=0.9.0 |
| 5224 | { $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] | 5225 | $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] | 5226 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5228 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5229 | else |
| 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5231 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5232 | PKG_CONFIG="" |
| 5233 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5234 | fi |
| 5235 | LIBUUID= |
| 5236 | DEPLIBUUID= |
| 5237 | STATIC_LIBUUID= |
| 5238 | DEPSTATIC_LIBUUID= |
| 5239 | PROFILED_LIBUUID= |
| 5240 | DEPPROFILED_LIBUUID= |
| 5241 | UUID_CMT= |
| 5242 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5243 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5244 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5245 | then |
| 5246 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5247 | 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] | 5248 | fi |
| 5249 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5250 | { $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] | 5251 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5252 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5253 | $as_echo_n "(cached) " >&6 |
| 5254 | else |
| 5255 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5256 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5258 | /* end confdefs.h. */ |
| 5259 | |
| 5260 | /* Override any GCC internal prototype to avoid an error. |
| 5261 | Use char because int might match the return type of a GCC |
| 5262 | builtin and then its argument prototype would still apply. */ |
| 5263 | #ifdef __cplusplus |
| 5264 | extern "C" |
| 5265 | #endif |
| 5266 | char uuid_generate (); |
| 5267 | int |
| 5268 | main () |
| 5269 | { |
| 5270 | return uuid_generate (); |
| 5271 | ; |
| 5272 | return 0; |
| 5273 | } |
| 5274 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5275 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5276 | ac_cv_lib_uuid_uuid_generate=yes |
| 5277 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5278 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5279 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5280 | rm -f core conftest.err conftest.$ac_objext \ |
| 5281 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5282 | LIBS=$ac_check_lib_save_LIBS |
| 5283 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5284 | { $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] | 5285 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5286 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5287 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5288 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5289 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5290 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5291 | fi |
| 5292 | |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5293 | PROFILED_LIBUUID=$LIBUUID |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5294 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5295 | { $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] | 5296 | $as_echo "Disabling private uuid library" >&6; } |
| 5297 | else |
| 5298 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5299 | DEPLIBUUID=$LIBUUID |
| 5300 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5301 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5302 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5303 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5304 | { $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] | 5305 | $as_echo "Enabling private uuid library" >&6; } |
| 5306 | fi |
| 5307 | |
| 5308 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5309 | if test -n "$PKG_CONFIG"; then |
| 5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 5311 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 5312 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
| 5313 | $as_echo_n "(cached) " >&6 |
| 5314 | else |
| 5315 | ac_check_lib_save_LIBS=$LIBS |
| 5316 | LIBS="-luuid $LIBS" |
| 5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5318 | /* end confdefs.h. */ |
| 5319 | |
| 5320 | /* Override any GCC internal prototype to avoid an error. |
| 5321 | Use char because int might match the return type of a GCC |
| 5322 | builtin and then its argument prototype would still apply. */ |
| 5323 | #ifdef __cplusplus |
| 5324 | extern "C" |
| 5325 | #endif |
| 5326 | char uuid_generate (); |
| 5327 | int |
| 5328 | main () |
| 5329 | { |
| 5330 | return uuid_generate (); |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
| 5335 | if ac_fn_c_try_link "$LINENO"; then : |
| 5336 | ac_cv_lib_uuid_uuid_generate=yes |
| 5337 | else |
| 5338 | ac_cv_lib_uuid_uuid_generate=no |
| 5339 | fi |
| 5340 | rm -f core conftest.err conftest.$ac_objext \ |
| 5341 | conftest$ac_exeext conftest.$ac_ext |
| 5342 | LIBS=$ac_check_lib_save_LIBS |
| 5343 | fi |
| 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 5345 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 5346 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
| 5347 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5348 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5349 | fi |
| 5350 | |
| 5351 | fi |
| 5352 | if test -n "$LIBUUID"; then |
| 5353 | PROFILED_LIBUUID=$LIBUUID |
| 5354 | UUID_CMT=# |
| 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
| 5356 | $as_echo "Using system uuid by default" >&6; } |
| 5357 | else |
| 5358 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5359 | DEPLIBUUID=$LIBUUID |
| 5360 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5361 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5362 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5363 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 5364 | { $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] | 5365 | $as_echo "Enabling private uuid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5366 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5367 | |
| 5368 | fi |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5384 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5385 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5386 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5387 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5388 | { $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] | 5389 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5390 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5391 | $as_echo_n "(cached) " >&6 |
| 5392 | else |
| 5393 | case $PKG_CONFIG in |
| 5394 | [\\/]* | ?:[\\/]*) |
| 5395 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5396 | ;; |
| 5397 | *) |
| 5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5399 | for as_dir in $PATH |
| 5400 | do |
| 5401 | IFS=$as_save_IFS |
| 5402 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5403 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5404 | 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] | 5405 | 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] | 5406 | $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] | 5407 | break 2 |
| 5408 | fi |
| 5409 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5410 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5411 | IFS=$as_save_IFS |
| 5412 | |
| 5413 | ;; |
| 5414 | esac |
| 5415 | fi |
| 5416 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5417 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5419 | $as_echo "$PKG_CONFIG" >&6; } |
| 5420 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5422 | $as_echo "no" >&6; } |
| 5423 | fi |
| 5424 | |
| 5425 | |
| 5426 | fi |
| 5427 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5428 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5429 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5430 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5431 | { $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] | 5432 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5433 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5434 | $as_echo_n "(cached) " >&6 |
| 5435 | else |
| 5436 | case $ac_pt_PKG_CONFIG in |
| 5437 | [\\/]* | ?:[\\/]*) |
| 5438 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5439 | ;; |
| 5440 | *) |
| 5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5442 | for as_dir in $PATH |
| 5443 | do |
| 5444 | IFS=$as_save_IFS |
| 5445 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5447 | 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] | 5448 | 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] | 5449 | $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] | 5450 | break 2 |
| 5451 | fi |
| 5452 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5453 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5454 | IFS=$as_save_IFS |
| 5455 | |
| 5456 | ;; |
| 5457 | esac |
| 5458 | fi |
| 5459 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5460 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5461 | { $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] | 5462 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5463 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5465 | $as_echo "no" >&6; } |
| 5466 | fi |
| 5467 | |
| 5468 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5469 | PKG_CONFIG="" |
| 5470 | else |
| 5471 | case $cross_compiling:$ac_tool_warned in |
| 5472 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5473 | { $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] | 5474 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5475 | ac_tool_warned=yes ;; |
| 5476 | esac |
| 5477 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5478 | fi |
| 5479 | else |
| 5480 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5481 | fi |
| 5482 | |
| 5483 | fi |
| 5484 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5485 | _pkg_min_version=0.9.0 |
| 5486 | { $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] | 5487 | $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] | 5488 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5490 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5491 | else |
| 5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5493 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5494 | PKG_CONFIG="" |
| 5495 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5496 | fi |
| 5497 | LIBBLKID= |
| 5498 | DEPLIBBLKID= |
| 5499 | STATIC_LIBBLKID= |
| 5500 | DEPSTATIC_LIBBLKID= |
| 5501 | PROFILED_LIBBLKID= |
| 5502 | DEPPROFILED_LIBBLKID= |
| 5503 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5504 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5505 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5506 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5507 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5508 | then |
| 5509 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5510 | 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] | 5511 | fi |
| 5512 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5513 | { $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] | 5514 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5515 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5516 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5517 | else |
| 5518 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5519 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5521 | /* end confdefs.h. */ |
| 5522 | |
| 5523 | /* Override any GCC internal prototype to avoid an error. |
| 5524 | Use char because int might match the return type of a GCC |
| 5525 | builtin and then its argument prototype would still apply. */ |
| 5526 | #ifdef __cplusplus |
| 5527 | extern "C" |
| 5528 | #endif |
| 5529 | char blkid_get_cache (); |
| 5530 | int |
| 5531 | main () |
| 5532 | { |
| 5533 | return blkid_get_cache (); |
| 5534 | ; |
| 5535 | return 0; |
| 5536 | } |
| 5537 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5538 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5539 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5541 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5542 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5543 | rm -f core conftest.err conftest.$ac_objext \ |
| 5544 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5545 | LIBS=$ac_check_lib_save_LIBS |
| 5546 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5547 | { $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] | 5548 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5549 | 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] | 5550 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5551 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5552 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5553 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5554 | fi |
| 5555 | |
| 5556 | BLKID_CMT=# |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5557 | PROFILED_LIBBLKID=$LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5558 | { $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] | 5559 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5560 | else |
| 5561 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5562 | DEPLIBBLKID=$LIBBLKID |
| 5563 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5564 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5565 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5566 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5567 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5568 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5569 | { $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] | 5570 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5571 | fi |
| 5572 | |
| 5573 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5574 | if test -n "$PKG_CONFIG"; then |
| 5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
| 5576 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
| 5577 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
| 5578 | $as_echo_n "(cached) " >&6 |
| 5579 | else |
| 5580 | ac_check_lib_save_LIBS=$LIBS |
| 5581 | LIBS="-lblkid $LIBS" |
| 5582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5583 | /* end confdefs.h. */ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5584 | |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5585 | /* Override any GCC internal prototype to avoid an error. |
| 5586 | Use char because int might match the return type of a GCC |
| 5587 | builtin and then its argument prototype would still apply. */ |
| 5588 | #ifdef __cplusplus |
| 5589 | extern "C" |
| 5590 | #endif |
| 5591 | char blkid_get_cache (); |
| 5592 | int |
| 5593 | main () |
| 5594 | { |
| 5595 | return blkid_get_cache (); |
| 5596 | ; |
| 5597 | return 0; |
| 5598 | } |
| 5599 | _ACEOF |
| 5600 | if ac_fn_c_try_link "$LINENO"; then : |
| 5601 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5602 | else |
| 5603 | ac_cv_lib_blkid_blkid_get_cache=no |
| 5604 | fi |
| 5605 | rm -f core conftest.err conftest.$ac_objext \ |
| 5606 | conftest$ac_exeext conftest.$ac_ext |
| 5607 | LIBS=$ac_check_lib_save_LIBS |
| 5608 | fi |
| 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 5610 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 5611 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
| 5612 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5613 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5614 | fi |
| 5615 | |
| 5616 | fi |
| 5617 | if test -n "$LIBBLKID"; then |
| 5618 | BLKID_CMT=# |
| 5619 | PROFILED_LIBBLKID=$LIBBLKID |
| 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
| 5621 | $as_echo "Using system blkid library by default" >&6; } |
| 5622 | else |
| 5623 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5624 | DEPLIBBLKID=$LIBBLKID |
| 5625 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5626 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5627 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5628 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 5629 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
| 5630 | |
| 5631 | { $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] | 5632 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5633 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5634 | |
| 5635 | fi |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5644 | |
| 5645 | # Check whether --enable-backtrace was given. |
| 5646 | if test "${enable_backtrace+set}" = set; then : |
| 5647 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5648 | then |
| 5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5650 | $as_echo "Disabling use of backtrace" >&6; } |
| 5651 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5652 | |
| 5653 | else |
| 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5655 | $as_echo "Enabling use of backtrace" >&6; } |
| 5656 | fi |
| 5657 | |
| 5658 | else |
| 5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5660 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5661 | |
| 5662 | fi |
| 5663 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5664 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5665 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5666 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5667 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5668 | { $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] | 5669 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5670 | DEBUGFS_CMT="#" |
| 5671 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5672 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5673 | { $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] | 5674 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5675 | fi |
| 5676 | |
| 5677 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5678 | { $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] | 5679 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5680 | DEBUGFS_CMT= |
| 5681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5682 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5683 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5684 | |
| 5685 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5686 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5687 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5688 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5689 | { $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] | 5690 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5691 | IMAGER_CMT="#" |
| 5692 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5693 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5694 | { $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] | 5695 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5696 | fi |
| 5697 | |
| 5698 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5699 | { $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] | 5700 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5701 | IMAGER_CMT= |
| 5702 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5703 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5704 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5705 | |
| 5706 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5707 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5708 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5709 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5710 | { $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] | 5711 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5712 | RESIZER_CMT="#" |
| 5713 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5714 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5715 | { $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] | 5716 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5717 | fi |
| 5718 | |
| 5719 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5720 | { $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] | 5721 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5722 | RESIZER_CMT= |
| 5723 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5724 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5726 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5727 | # Check whether --enable-defrag was given. |
| 5728 | if test "${enable_defrag+set}" = set; then : |
| 5729 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5730 | then |
| 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5732 | $as_echo "Disabling e4defrag support" >&6; } |
| 5733 | DEFRAG_CMT="#" |
| 5734 | else |
| 5735 | DEFRAG_CMT= |
| 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5737 | $as_echo "Enabling e4defrag support" >&6; } |
| 5738 | fi |
| 5739 | |
| 5740 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5741 | if test -z "$WITH_DIET_LIBC" |
| 5742 | then |
| 5743 | { $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] | 5744 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5745 | DEFRAG_CMT= |
| 5746 | else |
| 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5748 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5749 | DEFRAG_CMT="#" |
| 5750 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5751 | |
| 5752 | fi |
| 5753 | |
| 5754 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5755 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5756 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5758 | then |
| 5759 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5760 | { $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] | 5761 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5762 | else |
| 5763 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5764 | { $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] | 5765 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5766 | fi |
| 5767 | |
| 5768 | else |
| 5769 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5770 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5771 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5772 | { $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] | 5773 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5774 | ;; |
| 5775 | *) |
| 5776 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5777 | { $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] | 5778 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5779 | esac |
| 5780 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5781 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5782 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5783 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5784 | |
| 5785 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5786 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5787 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5788 | then |
| 5789 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5790 | { $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] | 5791 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5792 | else |
| 5793 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5794 | { $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] | 5795 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5796 | fi |
| 5797 | |
| 5798 | else |
| 5799 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5800 | { $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] | 5801 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5802 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5803 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5804 | |
| 5805 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5806 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5807 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5808 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5809 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5810 | then |
| 5811 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5812 | { $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] | 5813 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5814 | else |
| 5815 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5816 | { $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] | 5817 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5818 | fi |
| 5819 | |
| 5820 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5821 | if test -n "$WITH_DIET_LIBC" |
| 5822 | then |
| 5823 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5824 | { $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] | 5825 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5826 | else |
| 5827 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5828 | { $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] | 5829 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5830 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5831 | |
| 5832 | fi |
| 5833 | |
| 5834 | if test "$try_tls" = "yes" |
| 5835 | then |
| 5836 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5837 | { $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] | 5838 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5839 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5840 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5841 | else |
| 5842 | |
| 5843 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5844 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5845 | case $ax_tls_keyword in |
| 5846 | none) ac_cv_tls=none ; break ;; |
| 5847 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5849 | /* end confdefs.h. */ |
| 5850 | #include <stdlib.h> |
| 5851 | static void |
| 5852 | foo(void) { |
| 5853 | static $ax_tls_keyword int bar; |
| 5854 | exit(1); |
| 5855 | } |
| 5856 | int |
| 5857 | main () |
| 5858 | { |
| 5859 | |
| 5860 | ; |
| 5861 | return 0; |
| 5862 | } |
| 5863 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5864 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5865 | ac_cv_tls=$ax_tls_keyword ; break |
| 5866 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5867 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5868 | |
| 5869 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5871 | esac |
| 5872 | done |
| 5873 | |
| 5874 | fi |
| 5875 | |
| 5876 | |
| 5877 | if test "$ac_cv_tls" != "none"; then |
| 5878 | |
| 5879 | cat >>confdefs.h <<_ACEOF |
| 5880 | #define TLS $ac_cv_tls |
| 5881 | _ACEOF |
| 5882 | |
| 5883 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5884 | { $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] | 5885 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5886 | |
| 5887 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5888 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5889 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5890 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5891 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5892 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5893 | { $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] | 5894 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5895 | UUIDD_CMT="#" |
| 5896 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5897 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5898 | |
| 5899 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5901 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5902 | fi |
| 5903 | |
| 5904 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5905 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5906 | |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5907 | if test -z "$UUID_CMT" |
| 5908 | then |
| 5909 | UUIDD_CMT="" |
| 5910 | { $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] | 5911 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5912 | else |
| 5913 | UUIDD_CMT="#" |
| 5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
| 5915 | $as_echo "Disabling uuidd by default" >&6; } |
| 5916 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5917 | |
| 5918 | fi |
| 5919 | |
| 5920 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5921 | |
| 5922 | # Check whether --enable-mmp was given. |
| 5923 | if test "${enable_mmp+set}" = set; then : |
| 5924 | enableval=$enable_mmp; if test "$enableval" = "no" |
| 5925 | then |
| 5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
| 5927 | $as_echo "Disabling mmp support" >&6; } |
| 5928 | else |
| 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
| 5930 | $as_echo "Enabling mmp support" >&6; } |
| 5931 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5932 | |
| 5933 | fi |
| 5934 | |
| 5935 | else |
| 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 5937 | $as_echo "Enabling mmp support by default" >&6; } |
| 5938 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5939 | |
| 5940 | |
| 5941 | fi |
| 5942 | |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 5943 | |
Theodore Ts'o | 749f071 | 2016-05-29 20:48:54 -0400 | [diff] [blame] | 5944 | # Check whether --enable-tdb was given. |
| 5945 | if test "${enable_tdb+set}" = set; then : |
| 5946 | enableval=$enable_tdb; if test "$enableval" = "no" |
| 5947 | then |
| 5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 |
| 5949 | $as_echo "Disabling tdb support" >&6; } |
| 5950 | TDB_CMT="#" |
| 5951 | TDB_MAN_COMMENT='.\"' |
| 5952 | else |
| 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 |
| 5954 | $as_echo "Enabling tdb support" >&6; } |
| 5955 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h |
| 5956 | |
| 5957 | TDB_CMT="" |
| 5958 | TDB_MAN_COMMENT="" |
| 5959 | fi |
| 5960 | |
| 5961 | else |
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 5963 | $as_echo "Enabling mmp support by default" >&6; } |
| 5964 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h |
| 5965 | |
| 5966 | TDB_CMT="" |
| 5967 | TDB_MAN_COMMENT="" |
| 5968 | |
| 5969 | fi |
| 5970 | |
| 5971 | |
| 5972 | |
| 5973 | |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 5974 | # Check whether --enable-bmap-stats was given. |
| 5975 | if test "${enable_bmap_stats+set}" = set; then : |
| 5976 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
| 5977 | then |
| 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
| 5979 | $as_echo "Disabling bitmap statistics support" >&6; } |
| 5980 | else |
| 5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
| 5982 | $as_echo "Enabling bitmap statistics support" >&6; } |
| 5983 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5984 | |
| 5985 | fi |
| 5986 | |
| 5987 | else |
| 5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 |
| 5989 | $as_echo "Enabling bitmap statistics support by default" >&6; } |
| 5990 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5991 | |
| 5992 | |
| 5993 | fi |
| 5994 | |
| 5995 | |
| 5996 | # Check whether --enable-bmap-stats-ops was given. |
| 5997 | if test "${enable_bmap_stats_ops+set}" = set; then : |
| 5998 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
| 5999 | then |
| 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
| 6001 | $as_echo "Disabling additional bitmap statistics" >&6; } |
| 6002 | else |
| 6003 | if test "x${enable_bmap_stats}" = "xno"; then : |
| 6004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6006 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
| 6007 | See \`config.log' for more details" "$LINENO" 5; } |
| 6008 | fi |
| 6009 | |
| 6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
| 6011 | $as_echo "Enabling additional bitmap statistics" >&6; } |
| 6012 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h |
| 6013 | |
| 6014 | fi |
| 6015 | |
| 6016 | else |
| 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 |
| 6018 | $as_echo "Disabling additional bitmap statistics by default" >&6; } |
| 6019 | |
| 6020 | fi |
| 6021 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6022 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 6023 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6024 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6025 | PACKAGE=e2fsprogs |
| 6026 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6028 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6030 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6031 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6032 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6034 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6035 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6036 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6037 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6038 | |
| 6039 | |
| 6040 | |
| 6041 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6042 | { $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] | 6043 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6044 | set x ${MAKE-make} |
| 6045 | 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] | 6046 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6047 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6050 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6051 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6052 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6053 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6054 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6055 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6056 | *@@@%%%=?*=@@@%%%*) |
| 6057 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6058 | *) |
| 6059 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6060 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6061 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6062 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6063 | 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] | 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6065 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6066 | SET_MAKE= |
| 6067 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6069 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6070 | SET_MAKE="MAKE=${MAKE-make}" |
| 6071 | fi |
| 6072 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6073 | # Find a good install program. We prefer a C program (faster), |
| 6074 | # so one script is as good as another. But avoid the broken or |
| 6075 | # incompatible versions: |
| 6076 | # SysV /etc/install, /usr/sbin/install |
| 6077 | # SunOS /usr/etc/install |
| 6078 | # IRIX /sbin/install |
| 6079 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6080 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6081 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6082 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6083 | # 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] | 6084 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6085 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6086 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6087 | { $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] | 6088 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6089 | if test -z "$INSTALL"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6090 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6091 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6094 | for as_dir in $PATH |
| 6095 | do |
| 6096 | IFS=$as_save_IFS |
| 6097 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6098 | # Account for people who put trailing slashes in PATH elements. |
| 6099 | case $as_dir/ in #(( |
| 6100 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6102 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | /usr/ucb/* ) ;; |
| 6104 | *) |
| 6105 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6106 | # Don't use installbsd from OSF since it installs stuff as root |
| 6107 | # by default. |
| 6108 | for ac_prog in ginstall scoinst install; do |
| 6109 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6110 | 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] | 6111 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6112 | 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] | 6113 | # AIX install. It has an incompatible calling convention. |
| 6114 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | elif test $ac_prog = install && |
| 6116 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6117 | # program-specific install script used by HP pwplus--don't use. |
| 6118 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6119 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6120 | rm -rf conftest.one conftest.two conftest.dir |
| 6121 | echo one > conftest.one |
| 6122 | echo two > conftest.two |
| 6123 | mkdir conftest.dir |
| 6124 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6125 | test -s conftest.one && test -s conftest.two && |
| 6126 | test -s conftest.dir/conftest.one && |
| 6127 | test -s conftest.dir/conftest.two |
| 6128 | then |
| 6129 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6130 | break 3 |
| 6131 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6132 | fi |
| 6133 | fi |
| 6134 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6135 | done |
| 6136 | ;; |
| 6137 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6138 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6139 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6140 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6141 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6142 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6143 | |
| 6144 | fi |
| 6145 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6146 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6147 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6148 | # As a last resort, use the slow shell script. Don't cache a |
| 6149 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6150 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6151 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6152 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6153 | fi |
| 6154 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6156 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6157 | |
| 6158 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6159 | # It thinks the first close brace ends the variable substitution. |
| 6160 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6161 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6162 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6163 | |
| 6164 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6165 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6167 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6168 | if test -z "$MKDIR_P"; then |
| 6169 | if ${ac_cv_path_mkdir+:} false; then : |
| 6170 | $as_echo_n "(cached) " >&6 |
| 6171 | else |
| 6172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6173 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6174 | do |
| 6175 | IFS=$as_save_IFS |
| 6176 | test -z "$as_dir" && as_dir=. |
| 6177 | for ac_prog in mkdir gmkdir; do |
| 6178 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6179 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6180 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6181 | 'mkdir (GNU coreutils) '* | \ |
| 6182 | 'mkdir (coreutils) '* | \ |
| 6183 | 'mkdir (fileutils) '4.1*) |
| 6184 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6185 | break 3;; |
| 6186 | esac |
| 6187 | done |
| 6188 | done |
| 6189 | done |
| 6190 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6191 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6192 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6193 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6194 | test -d ./--version && rmdir ./--version |
| 6195 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6196 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6197 | else |
| 6198 | # As a last resort, use the slow shell script. Don't cache a |
| 6199 | # value for MKDIR_P within a source directory, because that will |
| 6200 | # break other packages using the cache if that directory is |
| 6201 | # removed, or if the value is a relative name. |
| 6202 | MKDIR_P="$ac_install_sh -d" |
| 6203 | fi |
| 6204 | fi |
| 6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6206 | $as_echo "$MKDIR_P" >&6; } |
| 6207 | |
| 6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6209 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6210 | if ${ac_cv_path_SED+:} false; then : |
| 6211 | $as_echo_n "(cached) " >&6 |
| 6212 | else |
| 6213 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6214 | for ac_i in 1 2 3 4 5 6 7; do |
| 6215 | ac_script="$ac_script$as_nl$ac_script" |
| 6216 | done |
| 6217 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6218 | { ac_script=; unset ac_script;} |
| 6219 | if test -z "$SED"; then |
| 6220 | ac_path_SED_found=false |
| 6221 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6223 | for as_dir in $PATH |
| 6224 | do |
| 6225 | IFS=$as_save_IFS |
| 6226 | test -z "$as_dir" && as_dir=. |
| 6227 | for ac_prog in sed gsed; do |
| 6228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6229 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6230 | as_fn_executable_p "$ac_path_SED" || continue |
| 6231 | # Check for GNU ac_path_SED and select it if it is found. |
| 6232 | # Check for GNU $ac_path_SED |
| 6233 | case `"$ac_path_SED" --version 2>&1` in |
| 6234 | *GNU*) |
| 6235 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6236 | *) |
| 6237 | ac_count=0 |
| 6238 | $as_echo_n 0123456789 >"conftest.in" |
| 6239 | while : |
| 6240 | do |
| 6241 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6242 | mv "conftest.tmp" "conftest.in" |
| 6243 | cp "conftest.in" "conftest.nl" |
| 6244 | $as_echo '' >> "conftest.nl" |
| 6245 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6246 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6247 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6248 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6249 | # Best one so far, save it but keep looking for a better one |
| 6250 | ac_cv_path_SED="$ac_path_SED" |
| 6251 | ac_path_SED_max=$ac_count |
| 6252 | fi |
| 6253 | # 10*(2^10) chars as input seems more than enough |
| 6254 | test $ac_count -gt 10 && break |
| 6255 | done |
| 6256 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6257 | esac |
| 6258 | |
| 6259 | $ac_path_SED_found && break 3 |
| 6260 | done |
| 6261 | done |
| 6262 | done |
| 6263 | IFS=$as_save_IFS |
| 6264 | if test -z "$ac_cv_path_SED"; then |
| 6265 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6266 | fi |
| 6267 | else |
| 6268 | ac_cv_path_SED=$SED |
| 6269 | fi |
| 6270 | |
| 6271 | fi |
| 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6273 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6274 | SED="$ac_cv_path_SED" |
| 6275 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6276 | |
| 6277 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6278 | { $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] | 6279 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6280 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6281 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6282 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | else |
| 6284 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6285 | fi |
| 6286 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6288 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6293 | GETTEXT_MACRO_VERSION=0.18 |
| 6294 | |
| 6295 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6296 | |
| 6297 | |
| 6298 | # Prepare PATH_SEPARATOR. |
| 6299 | # The user is always right. |
| 6300 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6301 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6302 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6303 | # so we have to set that as well for the test. |
| 6304 | PATH_SEPARATOR=: |
| 6305 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6306 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6307 | || PATH_SEPARATOR=';' |
| 6308 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6309 | fi |
| 6310 | |
| 6311 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6312 | # as systems may use methods other than mode bits to determine executability. |
| 6313 | cat >conf$$.file <<_ASEOF |
| 6314 | #! /bin/sh |
| 6315 | exit 0 |
| 6316 | _ASEOF |
| 6317 | chmod +x conf$$.file |
| 6318 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6319 | ac_executable_p="test -x" |
| 6320 | else |
| 6321 | ac_executable_p="test -f" |
| 6322 | fi |
| 6323 | rm -f conf$$.file |
| 6324 | |
| 6325 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6326 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6327 | { $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] | 6328 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6329 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6330 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6331 | else |
| 6332 | case "$MSGFMT" in |
| 6333 | [\\/]* | ?:[\\/]*) |
| 6334 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6335 | ;; |
| 6336 | *) |
| 6337 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6338 | for ac_dir in $PATH; do |
| 6339 | IFS="$ac_save_IFS" |
| 6340 | test -z "$ac_dir" && ac_dir=. |
| 6341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6342 | 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] | 6343 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6344 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6345 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6346 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6347 | break 2 |
| 6348 | fi |
| 6349 | fi |
| 6350 | done |
| 6351 | done |
| 6352 | IFS="$ac_save_IFS" |
| 6353 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6354 | ;; |
| 6355 | esac |
| 6356 | fi |
| 6357 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6358 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6360 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6363 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6364 | fi |
| 6365 | |
| 6366 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6367 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6368 | { $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] | 6369 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6370 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6371 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6372 | else |
| 6373 | case $GMSGFMT in |
| 6374 | [\\/]* | ?:[\\/]*) |
| 6375 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6376 | ;; |
| 6377 | *) |
| 6378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6379 | for as_dir in $PATH |
| 6380 | do |
| 6381 | IFS=$as_save_IFS |
| 6382 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6383 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6384 | 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] | 6385 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6386 | $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] | 6387 | break 2 |
| 6388 | fi |
| 6389 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6390 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6391 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6392 | |
| 6393 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6394 | ;; |
| 6395 | esac |
| 6396 | fi |
| 6397 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6398 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6400 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6401 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6403 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6404 | fi |
| 6405 | |
| 6406 | |
| 6407 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6408 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6409 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6410 | *) MSGFMT_015=$MSGFMT ;; |
| 6411 | esac |
| 6412 | |
| 6413 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6414 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6415 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6416 | esac |
| 6417 | |
| 6418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6419 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6420 | # Prepare PATH_SEPARATOR. |
| 6421 | # The user is always right. |
| 6422 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6423 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6424 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6425 | # so we have to set that as well for the test. |
| 6426 | PATH_SEPARATOR=: |
| 6427 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6428 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6429 | || PATH_SEPARATOR=';' |
| 6430 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6431 | fi |
| 6432 | |
| 6433 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6434 | # as systems may use methods other than mode bits to determine executability. |
| 6435 | cat >conf$$.file <<_ASEOF |
| 6436 | #! /bin/sh |
| 6437 | exit 0 |
| 6438 | _ASEOF |
| 6439 | chmod +x conf$$.file |
| 6440 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6441 | ac_executable_p="test -x" |
| 6442 | else |
| 6443 | ac_executable_p="test -f" |
| 6444 | fi |
| 6445 | rm -f conf$$.file |
| 6446 | |
| 6447 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6448 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6449 | { $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] | 6450 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6451 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6452 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | else |
| 6454 | case "$XGETTEXT" in |
| 6455 | [\\/]* | ?:[\\/]*) |
| 6456 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6457 | ;; |
| 6458 | *) |
| 6459 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6460 | for ac_dir in $PATH; do |
| 6461 | IFS="$ac_save_IFS" |
| 6462 | test -z "$ac_dir" && ac_dir=. |
| 6463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6464 | 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] | 6465 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6466 | 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] | 6467 | (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 |
| 6468 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6469 | break 2 |
| 6470 | fi |
| 6471 | fi |
| 6472 | done |
| 6473 | done |
| 6474 | IFS="$ac_save_IFS" |
| 6475 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6476 | ;; |
| 6477 | esac |
| 6478 | fi |
| 6479 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6480 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6482 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6483 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6485 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | fi |
| 6487 | |
| 6488 | rm -f messages.po |
| 6489 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6490 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6491 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6492 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6493 | esac |
| 6494 | |
| 6495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6496 | |
| 6497 | # Prepare PATH_SEPARATOR. |
| 6498 | # The user is always right. |
| 6499 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6500 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6501 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6502 | # so we have to set that as well for the test. |
| 6503 | PATH_SEPARATOR=: |
| 6504 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6505 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6506 | || PATH_SEPARATOR=';' |
| 6507 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6508 | fi |
| 6509 | |
| 6510 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6511 | # as systems may use methods other than mode bits to determine executability. |
| 6512 | cat >conf$$.file <<_ASEOF |
| 6513 | #! /bin/sh |
| 6514 | exit 0 |
| 6515 | _ASEOF |
| 6516 | chmod +x conf$$.file |
| 6517 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6518 | ac_executable_p="test -x" |
| 6519 | else |
| 6520 | ac_executable_p="test -f" |
| 6521 | fi |
| 6522 | rm -f conf$$.file |
| 6523 | |
| 6524 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6525 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6526 | { $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] | 6527 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6528 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6529 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | else |
| 6531 | case "$MSGMERGE" in |
| 6532 | [\\/]* | ?:[\\/]*) |
| 6533 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6534 | ;; |
| 6535 | *) |
| 6536 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6537 | for ac_dir in $PATH; do |
| 6538 | IFS="$ac_save_IFS" |
| 6539 | test -z "$ac_dir" && ac_dir=. |
| 6540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6541 | 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] | 6542 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6543 | 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] | 6544 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6545 | break 2 |
| 6546 | fi |
| 6547 | fi |
| 6548 | done |
| 6549 | done |
| 6550 | IFS="$ac_save_IFS" |
| 6551 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6552 | ;; |
| 6553 | esac |
| 6554 | fi |
| 6555 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6556 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6558 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6559 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6561 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6562 | fi |
| 6563 | |
| 6564 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6565 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6566 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6567 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6568 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6569 | |
| 6570 | |
| 6571 | ac_config_commands="$ac_config_commands po-directories" |
| 6572 | |
| 6573 | |
| 6574 | |
| 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6576 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6577 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6578 | $as_echo_n "(cached) " >&6 |
| 6579 | else |
| 6580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6581 | /* end confdefs.h. */ |
| 6582 | |
| 6583 | #include <features.h> |
| 6584 | #ifdef __GNU_LIBRARY__ |
| 6585 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6586 | Lucky GNU user |
| 6587 | #endif |
| 6588 | #endif |
| 6589 | |
| 6590 | _ACEOF |
| 6591 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6592 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6593 | ac_cv_gnu_library_2=yes |
| 6594 | else |
| 6595 | ac_cv_gnu_library_2=no |
| 6596 | fi |
| 6597 | rm -f conftest* |
| 6598 | |
| 6599 | |
| 6600 | |
| 6601 | fi |
| 6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6603 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6604 | |
| 6605 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6606 | |
| 6607 | |
| 6608 | if test -n "$ac_tool_prefix"; then |
| 6609 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6610 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6611 | { $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] | 6612 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6613 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6614 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6615 | else |
| 6616 | if test -n "$RANLIB"; then |
| 6617 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6618 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6620 | for as_dir in $PATH |
| 6621 | do |
| 6622 | IFS=$as_save_IFS |
| 6623 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6625 | 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] | 6626 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6627 | $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] | 6628 | break 2 |
| 6629 | fi |
| 6630 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6631 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6632 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6633 | |
| 6634 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | fi |
| 6636 | RANLIB=$ac_cv_prog_RANLIB |
| 6637 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6639 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6640 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6642 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6643 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6644 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6645 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | fi |
| 6647 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6648 | ac_ct_RANLIB=$RANLIB |
| 6649 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6650 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6651 | { $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] | 6652 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6653 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6654 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6655 | else |
| 6656 | if test -n "$ac_ct_RANLIB"; then |
| 6657 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6658 | else |
| 6659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6660 | for as_dir in $PATH |
| 6661 | do |
| 6662 | IFS=$as_save_IFS |
| 6663 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6665 | 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] | 6666 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6667 | $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] | 6668 | break 2 |
| 6669 | fi |
| 6670 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6671 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6672 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6673 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6674 | fi |
| 6675 | fi |
| 6676 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6677 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6678 | { $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] | 6679 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6680 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6682 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | fi |
| 6684 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6685 | if test "x$ac_ct_RANLIB" = x; then |
| 6686 | RANLIB=":" |
| 6687 | else |
| 6688 | case $cross_compiling:$ac_tool_warned in |
| 6689 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6690 | { $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] | 6691 | $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] | 6692 | ac_tool_warned=yes ;; |
| 6693 | esac |
| 6694 | RANLIB=$ac_ct_RANLIB |
| 6695 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6696 | else |
| 6697 | RANLIB="$ac_cv_prog_RANLIB" |
| 6698 | fi |
| 6699 | |
| 6700 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6701 | |
| 6702 | CFLAG_VISIBILITY= |
| 6703 | HAVE_VISIBILITY=0 |
| 6704 | if test -n "$GCC"; then |
| 6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6706 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6707 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6708 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6709 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6710 | |
| 6711 | gl_save_CFLAGS="$CFLAGS" |
| 6712 | CFLAGS="$CFLAGS -Werror" |
| 6713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6714 | /* end confdefs.h. */ |
| 6715 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6716 | int |
| 6717 | main () |
| 6718 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6720 | ; |
| 6721 | return 0; |
| 6722 | } |
| 6723 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6724 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6725 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6727 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6728 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6730 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6731 | fi |
| 6732 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6734 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6736 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6737 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6738 | $as_echo_n "(cached) " >&6 |
| 6739 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6740 | |
| 6741 | gl_save_CFLAGS="$CFLAGS" |
| 6742 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6743 | if test $gl_cv_cc_vis_werror = yes; then |
| 6744 | CFLAGS="$CFLAGS -Werror" |
| 6745 | fi |
| 6746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6747 | /* end confdefs.h. */ |
| 6748 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6749 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6750 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6751 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6752 | void dummyfunc (void) {} |
| 6753 | |
| 6754 | int |
| 6755 | main () |
| 6756 | { |
| 6757 | |
| 6758 | ; |
| 6759 | return 0; |
| 6760 | } |
| 6761 | _ACEOF |
| 6762 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6763 | gl_cv_cc_visibility=yes |
| 6764 | else |
| 6765 | gl_cv_cc_visibility=no |
| 6766 | fi |
| 6767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6768 | CFLAGS="$gl_save_CFLAGS" |
| 6769 | fi |
| 6770 | |
| 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6772 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6773 | if test $gl_cv_cc_visibility = yes; then |
| 6774 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6775 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6776 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6777 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6778 | |
| 6779 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6780 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6781 | cat >>confdefs.h <<_ACEOF |
| 6782 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6783 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6784 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6785 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6787 | $as_echo_n "checking for inline... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6788 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6789 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | else |
| 6791 | ac_cv_c_inline=no |
| 6792 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6794 | /* end confdefs.h. */ |
| 6795 | #ifndef __cplusplus |
| 6796 | typedef int foo_t; |
| 6797 | static $ac_kw foo_t static_foo () {return 0; } |
| 6798 | $ac_kw foo_t foo () {return 0; } |
| 6799 | #endif |
| 6800 | |
| 6801 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6802 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6803 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6804 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6806 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | done |
| 6808 | |
| 6809 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6810 | { $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] | 6811 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6813 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6814 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | *) |
| 6816 | case $ac_cv_c_inline in |
| 6817 | no) ac_val=;; |
| 6818 | *) ac_val=$ac_cv_c_inline;; |
| 6819 | esac |
| 6820 | cat >>confdefs.h <<_ACEOF |
| 6821 | #ifndef __cplusplus |
| 6822 | #define inline $ac_val |
| 6823 | #endif |
| 6824 | _ACEOF |
| 6825 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6826 | esac |
| 6827 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6828 | 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] | 6829 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6831 | else |
| 6832 | |
| 6833 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6834 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | _ACEOF |
| 6836 | |
| 6837 | fi |
| 6838 | |
| 6839 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6840 | { $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] | 6841 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6842 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6843 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | /* end confdefs.h. */ |
| 6847 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6848 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6849 | int |
| 6850 | main () |
| 6851 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6852 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | ; |
| 6854 | return 0; |
| 6855 | } |
| 6856 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6857 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6858 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6859 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6860 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6865 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6866 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6867 | |
| 6868 | cat >>confdefs.h <<_ACEOF |
| 6869 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6870 | _ACEOF |
| 6871 | |
| 6872 | fi |
| 6873 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6874 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6875 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6876 | { $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] | 6877 | $as_echo_n "checking for working alloca.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6878 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6879 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6880 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6882 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6883 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6888 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6889 | ; |
| 6890 | return 0; |
| 6891 | } |
| 6892 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6893 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6894 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6895 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6896 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6898 | rm -f core conftest.err conftest.$ac_objext \ |
| 6899 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6901 | { $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] | 6902 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6903 | if test $ac_cv_working_alloca_h = yes; then |
| 6904 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6905 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6906 | |
| 6907 | fi |
| 6908 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6910 | $as_echo_n "checking for alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6911 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6912 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6913 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6915 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6916 | #ifdef __GNUC__ |
| 6917 | # define alloca __builtin_alloca |
| 6918 | #else |
| 6919 | # ifdef _MSC_VER |
| 6920 | # include <malloc.h> |
| 6921 | # define alloca _alloca |
| 6922 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6923 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6924 | # include <alloca.h> |
| 6925 | # else |
| 6926 | # ifdef _AIX |
| 6927 | #pragma alloca |
| 6928 | # else |
| 6929 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6930 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6931 | # endif |
| 6932 | # endif |
| 6933 | # endif |
| 6934 | # endif |
| 6935 | #endif |
| 6936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6937 | int |
| 6938 | main () |
| 6939 | { |
| 6940 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6941 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6942 | ; |
| 6943 | return 0; |
| 6944 | } |
| 6945 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6946 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6947 | ac_cv_func_alloca_works=yes |
| 6948 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6949 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6951 | rm -f core conftest.err conftest.$ac_objext \ |
| 6952 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6953 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6955 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6957 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6958 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6959 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6961 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6962 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6963 | # that cause trouble. Some versions do not even contain alloca or |
| 6964 | # contain a buggy version. If you still want to use their alloca, |
| 6965 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6967 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6968 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6969 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | |
| 6971 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6972 | { $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] | 6973 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6974 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6975 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6978 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6979 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6980 | webecray |
| 6981 | #else |
| 6982 | wenotbecray |
| 6983 | #endif |
| 6984 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6985 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6987 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6988 | ac_cv_os_cray=yes |
| 6989 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6990 | ac_cv_os_cray=no |
| 6991 | fi |
| 6992 | rm -f conftest* |
| 6993 | |
| 6994 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6995 | { $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] | 6996 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6997 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6998 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6999 | 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] | 7000 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7001 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | |
| 7003 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7004 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7007 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7008 | fi |
| 7009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7010 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7011 | fi |
| 7012 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7013 | { $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] | 7014 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7015 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7016 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7017 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7018 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7019 | ac_cv_c_stack_direction=0 |
| 7020 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7023 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7024 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7025 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7026 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7027 | int dir, dummy = 0; |
| 7028 | if (! addr) |
| 7029 | addr = &dummy; |
| 7030 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7031 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7032 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7033 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7034 | |
| 7035 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7036 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7037 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7038 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7039 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7040 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7041 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7042 | ac_cv_c_stack_direction=1 |
| 7043 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7044 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7045 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7047 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7048 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7050 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7051 | { $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] | 7052 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7053 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7054 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7055 | _ACEOF |
| 7056 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7057 | |
| 7058 | fi |
| 7059 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7060 | |
| 7061 | |
| 7062 | |
| 7063 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7064 | do : |
| 7065 | 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] | 7066 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7067 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7068 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7069 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7070 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7071 | _ACEOF |
| 7072 | |
| 7073 | fi |
| 7074 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7075 | done |
| 7076 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7077 | |
| 7078 | |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | |
| 7083 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7085 | do : |
| 7086 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7087 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7088 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7089 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7090 | _ACEOF |
| 7091 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7092 | fi |
| 7093 | done |
| 7094 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7095 | { $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] | 7096 | $as_echo_n "checking for working mmap... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7097 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7098 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7099 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7100 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7101 | ac_cv_func_mmap_fixed_mapped=no |
| 7102 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7104 | /* end confdefs.h. */ |
| 7105 | $ac_includes_default |
| 7106 | /* malloc might have been renamed as rpl_malloc. */ |
| 7107 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7108 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7109 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7110 | Here is a matrix of mmap possibilities: |
| 7111 | mmap private not fixed |
| 7112 | mmap private fixed at somewhere currently unmapped |
| 7113 | mmap private fixed at somewhere already mapped |
| 7114 | mmap shared not fixed |
| 7115 | mmap shared fixed at somewhere currently unmapped |
| 7116 | mmap shared fixed at somewhere already mapped |
| 7117 | For private mappings, we should verify that changes cannot be read() |
| 7118 | back from the file, nor mmap's back from the file at a different |
| 7119 | address. (There have been systems where private was not correctly |
| 7120 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7121 | 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] | 7122 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7123 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7124 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7125 | |
| 7126 | Grep wants private fixed already mapped. |
| 7127 | The main things grep needs to know about mmap are: |
| 7128 | * does it exist and is it safe to write into the mmap'd area |
| 7129 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7130 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7131 | #include <fcntl.h> |
| 7132 | #include <sys/mman.h> |
| 7133 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7134 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7135 | char *malloc (); |
| 7136 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7139 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7140 | # ifdef _SC_PAGESIZE |
| 7141 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7142 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7143 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7144 | # include <sys/param.h> |
| 7145 | # ifdef EXEC_PAGESIZE |
| 7146 | # define getpagesize() EXEC_PAGESIZE |
| 7147 | # else /* no EXEC_PAGESIZE */ |
| 7148 | # ifdef NBPG |
| 7149 | # define getpagesize() NBPG * CLSIZE |
| 7150 | # ifndef CLSIZE |
| 7151 | # define CLSIZE 1 |
| 7152 | # endif /* no CLSIZE */ |
| 7153 | # else /* no NBPG */ |
| 7154 | # ifdef NBPC |
| 7155 | # define getpagesize() NBPC |
| 7156 | # else /* no NBPC */ |
| 7157 | # ifdef PAGESIZE |
| 7158 | # define getpagesize() PAGESIZE |
| 7159 | # endif /* PAGESIZE */ |
| 7160 | # endif /* no NBPC */ |
| 7161 | # endif /* no NBPG */ |
| 7162 | # endif /* no EXEC_PAGESIZE */ |
| 7163 | # else /* no HAVE_SYS_PARAM_H */ |
| 7164 | # define getpagesize() 8192 /* punt totally */ |
| 7165 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7166 | # endif /* no _SC_PAGESIZE */ |
| 7167 | |
| 7168 | #endif /* no HAVE_GETPAGESIZE */ |
| 7169 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7170 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7171 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7172 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7173 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7174 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7176 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7178 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | /* First, make a file with some known garbage in it. */ |
| 7181 | data = (char *) malloc (pagesize); |
| 7182 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7183 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7184 | for (i = 0; i < pagesize; ++i) |
| 7185 | *(data + i) = rand (); |
| 7186 | umask (0); |
| 7187 | fd = creat ("conftest.mmap", 0600); |
| 7188 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7189 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7190 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7191 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7192 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7193 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7194 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7195 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7196 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7197 | if (fd2 < 0) |
| 7198 | return 4; |
| 7199 | cdata2 = ""; |
| 7200 | if (write (fd2, cdata2, 1) != 1) |
| 7201 | return 5; |
| 7202 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7203 | if (data2 == MAP_FAILED) |
| 7204 | return 6; |
| 7205 | for (i = 0; i < pagesize; ++i) |
| 7206 | if (*(data2 + i)) |
| 7207 | return 7; |
| 7208 | close (fd2); |
| 7209 | if (munmap (data2, pagesize)) |
| 7210 | return 8; |
| 7211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | /* Next, try to mmap the file at a fixed address which already has |
| 7213 | something else allocated at it. If we can, also make sure that |
| 7214 | we see the same garbage. */ |
| 7215 | fd = open ("conftest.mmap", O_RDWR); |
| 7216 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7217 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7219 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7220 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7221 | for (i = 0; i < pagesize; ++i) |
| 7222 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7223 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | /* Finally, make sure that changes to the mapped area do not |
| 7226 | percolate back to the file as seen by read(). (This is a bug on |
| 7227 | some variants of i386 svr4.0.) */ |
| 7228 | for (i = 0; i < pagesize; ++i) |
| 7229 | *(data2 + i) = *(data2 + i) + 1; |
| 7230 | data3 = (char *) malloc (pagesize); |
| 7231 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7232 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7233 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7234 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7235 | for (i = 0; i < pagesize; ++i) |
| 7236 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7237 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7238 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7239 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7240 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7241 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7242 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7243 | ac_cv_func_mmap_fixed_mapped=yes |
| 7244 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7245 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7246 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7247 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7248 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7249 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7250 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7251 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7252 | { $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] | 7253 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7254 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7256 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7257 | |
| 7258 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7259 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7260 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7263 | { $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] | 7264 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7265 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7266 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7267 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7269 | gt_cv_int_divbyzero_sigfpe= |
| 7270 | case "$host_os" in |
| 7271 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7272 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7273 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7274 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7275 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7276 | i[34567]86 | x86_64) |
| 7277 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7278 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7279 | ;; |
| 7280 | esac |
| 7281 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7282 | if test "$cross_compiling" = yes; then : |
| 7283 | |
| 7284 | # Guess based on the CPU. |
| 7285 | case "$host_cpu" in |
| 7286 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7287 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7288 | *) |
| 7289 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7290 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7291 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7292 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7294 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7295 | |
| 7296 | #include <stdlib.h> |
| 7297 | #include <signal.h> |
| 7298 | |
| 7299 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7300 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7301 | { |
| 7302 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7303 | exit (sig != SIGFPE); |
| 7304 | } |
| 7305 | |
| 7306 | int x = 1; |
| 7307 | int y = 0; |
| 7308 | int z; |
| 7309 | int nan; |
| 7310 | |
| 7311 | int main () |
| 7312 | { |
| 7313 | signal (SIGFPE, sigfpe_handler); |
| 7314 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7315 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7316 | signal (SIGTRAP, sigfpe_handler); |
| 7317 | #endif |
| 7318 | /* Linux/SPARC yields signal SIGILL. */ |
| 7319 | #if defined (__sparc__) && defined (__linux__) |
| 7320 | signal (SIGILL, sigfpe_handler); |
| 7321 | #endif |
| 7322 | |
| 7323 | z = x / y; |
| 7324 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7325 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7326 | } |
| 7327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7329 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7330 | gt_cv_int_divbyzero_sigfpe=yes |
| 7331 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7332 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7333 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7334 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7335 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7336 | fi |
| 7337 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7338 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7339 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7340 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7341 | { $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] | 7342 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7343 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7344 | *yes) value=1;; |
| 7345 | *) value=0;; |
| 7346 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7347 | |
| 7348 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7349 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7351 | |
| 7352 | |
| 7353 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7355 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7356 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7357 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7358 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7360 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7361 | |
| 7362 | #include <sys/types.h> |
| 7363 | #include <inttypes.h> |
| 7364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7365 | int |
| 7366 | main () |
| 7367 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7368 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7369 | ; |
| 7370 | return 0; |
| 7371 | } |
| 7372 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7373 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7374 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7375 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7376 | gl_cv_header_inttypes_h=no |
| 7377 | fi |
| 7378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7379 | fi |
| 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7381 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7382 | if test $gl_cv_header_inttypes_h = yes; then |
| 7383 | |
| 7384 | cat >>confdefs.h <<_ACEOF |
| 7385 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7386 | _ACEOF |
| 7387 | |
| 7388 | fi |
| 7389 | |
| 7390 | |
| 7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7392 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7393 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7394 | $as_echo_n "(cached) " >&6 |
| 7395 | else |
| 7396 | ac_cv_type_unsigned_long_long_int=yes |
| 7397 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7399 | /* end confdefs.h. */ |
| 7400 | |
| 7401 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7402 | implementations with broken preprocessors. Perhaps this can |
| 7403 | be revisited in 2012. In the meantime, code should not expect |
| 7404 | #if to work with literals wider than 32 bits. */ |
| 7405 | /* Test literals. */ |
| 7406 | long long int ll = 9223372036854775807ll; |
| 7407 | long long int nll = -9223372036854775807LL; |
| 7408 | unsigned long long int ull = 18446744073709551615ULL; |
| 7409 | /* Test constant expressions. */ |
| 7410 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7411 | ? 1 : -1)]; |
| 7412 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7413 | ? 1 : -1)]; |
| 7414 | int i = 63; |
| 7415 | int |
| 7416 | main () |
| 7417 | { |
| 7418 | /* Test availability of runtime routines for shift and division. */ |
| 7419 | long long int llmax = 9223372036854775807ll; |
| 7420 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7421 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7422 | | (llmax / ll) | (llmax % ll) |
| 7423 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7424 | | (ullmax / ull) | (ullmax % ull)); |
| 7425 | ; |
| 7426 | return 0; |
| 7427 | } |
| 7428 | |
| 7429 | _ACEOF |
| 7430 | if ac_fn_c_try_link "$LINENO"; then : |
| 7431 | |
| 7432 | else |
| 7433 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7434 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7435 | rm -f core conftest.err conftest.$ac_objext \ |
| 7436 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7437 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7438 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7440 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7441 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7442 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7443 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7444 | |
| 7445 | fi |
| 7446 | |
| 7447 | |
| 7448 | |
| 7449 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7450 | 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] | 7451 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7452 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7453 | && ac_type='unsigned long long' \ |
| 7454 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | |
| 7456 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7457 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7458 | _ACEOF |
| 7459 | |
| 7460 | else |
| 7461 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7462 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | |
| 7464 | fi |
| 7465 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7466 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7467 | for ac_header in inttypes.h |
| 7468 | do : |
| 7469 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7470 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7471 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7472 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7474 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7475 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7476 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7477 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7478 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7479 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7480 | { $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] | 7481 | $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] | 7482 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7483 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7484 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7487 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7488 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7489 | #include <inttypes.h> |
| 7490 | #ifdef PRId32 |
| 7491 | char *p = PRId32; |
| 7492 | #endif |
| 7493 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7494 | int |
| 7495 | main () |
| 7496 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7498 | ; |
| 7499 | return 0; |
| 7500 | } |
| 7501 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7502 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7503 | gt_cv_inttypes_pri_broken=no |
| 7504 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7505 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7508 | |
| 7509 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7510 | { $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] | 7511 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7512 | fi |
| 7513 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7514 | |
| 7515 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7516 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7517 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7518 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7519 | PRI_MACROS_BROKEN=1 |
| 7520 | else |
| 7521 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | fi |
| 7523 | |
| 7524 | |
| 7525 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7526 | |
| 7527 | |
| 7528 | |
| 7529 | |
| 7530 | # Check whether --enable-threads was given. |
| 7531 | if test "${enable_threads+set}" = set; then : |
| 7532 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7533 | else |
| 7534 | if test -n "$gl_use_threads_default"; then |
| 7535 | gl_use_threads="$gl_use_threads_default" |
| 7536 | else |
| 7537 | case "$host_os" in |
| 7538 | osf*) gl_use_threads=no ;; |
| 7539 | cygwin*) |
| 7540 | case `uname -r` in |
| 7541 | 1.[0-5].*) gl_use_threads=no ;; |
| 7542 | *) gl_use_threads=yes ;; |
| 7543 | esac |
| 7544 | ;; |
| 7545 | *) gl_use_threads=yes ;; |
| 7546 | esac |
| 7547 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7548 | |
| 7549 | fi |
| 7550 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7551 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7552 | # For using <pthread.h>: |
| 7553 | case "$host_os" in |
| 7554 | osf*) |
| 7555 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7556 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7557 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7558 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7559 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7560 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7561 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7562 | ;; |
| 7563 | esac |
| 7564 | # Some systems optimize for single-threaded programs by default, and |
| 7565 | # need special flags to disable these optimizations. For example, the |
| 7566 | # definition of 'errno' in <errno.h>. |
| 7567 | case "$host_os" in |
| 7568 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7569 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7570 | esac |
| 7571 | fi |
| 7572 | |
| 7573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | |
| 7575 | |
| 7576 | |
| 7577 | if test "X$prefix" = "XNONE"; then |
| 7578 | acl_final_prefix="$ac_default_prefix" |
| 7579 | else |
| 7580 | acl_final_prefix="$prefix" |
| 7581 | fi |
| 7582 | if test "X$exec_prefix" = "XNONE"; then |
| 7583 | acl_final_exec_prefix='${prefix}' |
| 7584 | else |
| 7585 | acl_final_exec_prefix="$exec_prefix" |
| 7586 | fi |
| 7587 | acl_save_prefix="$prefix" |
| 7588 | prefix="$acl_final_prefix" |
| 7589 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7590 | prefix="$acl_save_prefix" |
| 7591 | |
| 7592 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7594 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7595 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7596 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | else |
| 7598 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7599 | fi |
| 7600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | # Prepare PATH_SEPARATOR. |
| 7602 | # The user is always right. |
| 7603 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7604 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7605 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7606 | # so we have to set that as well for the test. |
| 7607 | PATH_SEPARATOR=: |
| 7608 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7609 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7610 | || PATH_SEPARATOR=';' |
| 7611 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7612 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7614 | ac_prog=ld |
| 7615 | if test "$GCC" = yes; then |
| 7616 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7618 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7619 | case $host in |
| 7620 | *-*-mingw*) |
| 7621 | # gcc leaves a trailing carriage return which upsets mingw |
| 7622 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7623 | *) |
| 7624 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7625 | esac |
| 7626 | case $ac_prog in |
| 7627 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7628 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7630 | # Canonicalize the pathname of ld |
| 7631 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7632 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7633 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7634 | done |
| 7635 | test -z "$LD" && LD="$ac_prog" |
| 7636 | ;; |
| 7637 | "") |
| 7638 | # If it fails, then pretend we aren't using GCC. |
| 7639 | ac_prog=ld |
| 7640 | ;; |
| 7641 | *) |
| 7642 | # If it is relative, then search for the first ld in PATH. |
| 7643 | with_gnu_ld=unknown |
| 7644 | ;; |
| 7645 | esac |
| 7646 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7647 | { $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] | 7648 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7650 | { $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] | 7651 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7652 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7653 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7654 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | else |
| 7656 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7657 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7659 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | test -z "$ac_dir" && ac_dir=. |
| 7661 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7662 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7663 | # 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] | 7664 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7665 | # 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] | 7666 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7668 | test "$with_gnu_ld" != no && break |
| 7669 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7671 | test "$with_gnu_ld" != yes && break |
| 7672 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7673 | esac |
| 7674 | fi |
| 7675 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7676 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7677 | else |
| 7678 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7679 | fi |
| 7680 | fi |
| 7681 | |
| 7682 | LD="$acl_cv_path_LD" |
| 7683 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7685 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7686 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7688 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7689 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7690 | 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] | 7691 | { $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] | 7692 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7693 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7694 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7695 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7696 | # 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] | 7697 | case `$LD -v 2>&1 </dev/null` in |
| 7698 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7699 | acl_cv_prog_gnu_ld=yes |
| 7700 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7701 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7702 | acl_cv_prog_gnu_ld=no |
| 7703 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7704 | esac |
| 7705 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7706 | { $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] | 7707 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7708 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7709 | |
| 7710 | |
| 7711 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7712 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7713 | { $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] | 7714 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7715 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7716 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7717 | else |
| 7718 | |
| 7719 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7720 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7721 | . ./conftest.sh |
| 7722 | rm -f ./conftest.sh |
| 7723 | acl_cv_rpath=done |
| 7724 | |
| 7725 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7726 | { $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] | 7727 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7728 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7729 | acl_libext="$acl_cv_libext" |
| 7730 | acl_shlibext="$acl_cv_shlibext" |
| 7731 | acl_libname_spec="$acl_cv_libname_spec" |
| 7732 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7733 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7734 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7735 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7736 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7737 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7738 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7739 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7740 | else |
| 7741 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7742 | fi |
| 7743 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | |
| 7745 | |
| 7746 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7747 | acl_libdirstem=lib |
| 7748 | acl_libdirstem2= |
| 7749 | case "$host_os" in |
| 7750 | solaris*) |
| 7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7752 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7753 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7754 | $as_echo_n "(cached) " >&6 |
| 7755 | else |
| 7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7757 | /* end confdefs.h. */ |
| 7758 | |
| 7759 | #ifdef _LP64 |
| 7760 | sixtyfour bits |
| 7761 | #endif |
| 7762 | |
| 7763 | _ACEOF |
| 7764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7765 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7766 | gl_cv_solaris_64bit=yes |
| 7767 | else |
| 7768 | gl_cv_solaris_64bit=no |
| 7769 | fi |
| 7770 | rm -f conftest* |
| 7771 | |
| 7772 | |
| 7773 | fi |
| 7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7775 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7776 | if test $gl_cv_solaris_64bit = yes; then |
| 7777 | acl_libdirstem=lib/64 |
| 7778 | case "$host_cpu" in |
| 7779 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7780 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7781 | esac |
| 7782 | fi |
| 7783 | ;; |
| 7784 | *) |
| 7785 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7786 | if test -n "$searchpath"; then |
| 7787 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7788 | for searchdir in $searchpath; do |
| 7789 | if test -d "$searchdir"; then |
| 7790 | case "$searchdir" in |
| 7791 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7792 | */../ | */.. ) |
| 7793 | # Better ignore directories of this form. They are misleading. |
| 7794 | ;; |
| 7795 | *) searchdir=`cd "$searchdir" && pwd` |
| 7796 | case "$searchdir" in |
| 7797 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7798 | esac ;; |
| 7799 | esac |
| 7800 | fi |
| 7801 | done |
| 7802 | IFS="$acl_save_IFS" |
| 7803 | fi |
| 7804 | ;; |
| 7805 | esac |
| 7806 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | gl_threads_api=none |
| 7811 | LIBTHREAD= |
| 7812 | LTLIBTHREAD= |
| 7813 | LIBMULTITHREAD= |
| 7814 | LTLIBMULTITHREAD= |
| 7815 | if test "$gl_use_threads" != no; then |
| 7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7817 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7818 | if ${gl_cv_have_weak+:} false; then : |
| 7819 | $as_echo_n "(cached) " >&6 |
| 7820 | else |
| 7821 | gl_cv_have_weak=no |
| 7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7823 | /* end confdefs.h. */ |
| 7824 | extern void xyzzy (); |
| 7825 | #pragma weak xyzzy |
| 7826 | int |
| 7827 | main () |
| 7828 | { |
| 7829 | xyzzy(); |
| 7830 | ; |
| 7831 | return 0; |
| 7832 | } |
| 7833 | _ACEOF |
| 7834 | if ac_fn_c_try_link "$LINENO"; then : |
| 7835 | gl_cv_have_weak=maybe |
| 7836 | fi |
| 7837 | rm -f core conftest.err conftest.$ac_objext \ |
| 7838 | conftest$ac_exeext conftest.$ac_ext |
| 7839 | if test $gl_cv_have_weak = maybe; then |
| 7840 | if test "$cross_compiling" = yes; then : |
| 7841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7842 | /* end confdefs.h. */ |
| 7843 | #ifdef __ELF__ |
| 7844 | Extensible Linking Format |
| 7845 | #endif |
| 7846 | |
| 7847 | _ACEOF |
| 7848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7849 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7850 | gl_cv_have_weak="guessing yes" |
| 7851 | else |
| 7852 | gl_cv_have_weak="guessing no" |
| 7853 | fi |
| 7854 | rm -f conftest* |
| 7855 | |
| 7856 | |
| 7857 | else |
| 7858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7859 | /* end confdefs.h. */ |
| 7860 | |
| 7861 | #include <stdio.h> |
| 7862 | #pragma weak fputs |
| 7863 | int main () |
| 7864 | { |
| 7865 | return (fputs == NULL); |
| 7866 | } |
| 7867 | _ACEOF |
| 7868 | if ac_fn_c_try_run "$LINENO"; then : |
| 7869 | gl_cv_have_weak=yes |
| 7870 | else |
| 7871 | gl_cv_have_weak=no |
| 7872 | fi |
| 7873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7874 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7875 | fi |
| 7876 | |
| 7877 | fi |
| 7878 | |
| 7879 | fi |
| 7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 7881 | $as_echo "$gl_cv_have_weak" >&6; } |
| 7882 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7883 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 7884 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 7885 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7886 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 7887 | gl_have_pthread_h=yes |
| 7888 | else |
| 7889 | gl_have_pthread_h=no |
| 7890 | fi |
| 7891 | |
| 7892 | |
| 7893 | if test "$gl_have_pthread_h" = yes; then |
| 7894 | # Other possible tests: |
| 7895 | # -lpthreads (FSU threads, PCthreads) |
| 7896 | # -lgthreads |
| 7897 | gl_have_pthread= |
| 7898 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 7899 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 7900 | # the second one only in libpthread, and lock.c needs it. |
| 7901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7902 | /* end confdefs.h. */ |
| 7903 | #include <pthread.h> |
| 7904 | int |
| 7905 | main () |
| 7906 | { |
| 7907 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 7908 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 7909 | ; |
| 7910 | return 0; |
| 7911 | } |
| 7912 | _ACEOF |
| 7913 | if ac_fn_c_try_link "$LINENO"; then : |
| 7914 | gl_have_pthread=yes |
| 7915 | fi |
| 7916 | rm -f core conftest.err conftest.$ac_objext \ |
| 7917 | conftest$ac_exeext conftest.$ac_ext |
| 7918 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 7919 | # since it is defined as a macro on OSF/1.) |
| 7920 | if test -n "$gl_have_pthread"; then |
| 7921 | # The program links fine without libpthread. But it may actually |
| 7922 | # need to link with libpthread in order to create multiple threads. |
| 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7924 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7925 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7926 | $as_echo_n "(cached) " >&6 |
| 7927 | else |
| 7928 | ac_check_lib_save_LIBS=$LIBS |
| 7929 | LIBS="-lpthread $LIBS" |
| 7930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7931 | /* end confdefs.h. */ |
| 7932 | |
| 7933 | /* Override any GCC internal prototype to avoid an error. |
| 7934 | Use char because int might match the return type of a GCC |
| 7935 | builtin and then its argument prototype would still apply. */ |
| 7936 | #ifdef __cplusplus |
| 7937 | extern "C" |
| 7938 | #endif |
| 7939 | char pthread_kill (); |
| 7940 | int |
| 7941 | main () |
| 7942 | { |
| 7943 | return pthread_kill (); |
| 7944 | ; |
| 7945 | return 0; |
| 7946 | } |
| 7947 | _ACEOF |
| 7948 | if ac_fn_c_try_link "$LINENO"; then : |
| 7949 | ac_cv_lib_pthread_pthread_kill=yes |
| 7950 | else |
| 7951 | ac_cv_lib_pthread_pthread_kill=no |
| 7952 | fi |
| 7953 | rm -f core conftest.err conftest.$ac_objext \ |
| 7954 | conftest$ac_exeext conftest.$ac_ext |
| 7955 | LIBS=$ac_check_lib_save_LIBS |
| 7956 | fi |
| 7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7958 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7959 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7960 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7961 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 7962 | # Therefore pthread_in_use() needs to actually try to create a |
| 7963 | # thread: pthread_create from libc will fail, whereas |
| 7964 | # pthread_create will actually create a thread. |
| 7965 | case "$host_os" in |
| 7966 | solaris* | hpux*) |
| 7967 | |
| 7968 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 7969 | |
| 7970 | esac |
| 7971 | |
| 7972 | fi |
| 7973 | |
| 7974 | else |
| 7975 | # Some library is needed. Try libpthread and libc_r. |
| 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7977 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7978 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7979 | $as_echo_n "(cached) " >&6 |
| 7980 | else |
| 7981 | ac_check_lib_save_LIBS=$LIBS |
| 7982 | LIBS="-lpthread $LIBS" |
| 7983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7984 | /* end confdefs.h. */ |
| 7985 | |
| 7986 | /* Override any GCC internal prototype to avoid an error. |
| 7987 | Use char because int might match the return type of a GCC |
| 7988 | builtin and then its argument prototype would still apply. */ |
| 7989 | #ifdef __cplusplus |
| 7990 | extern "C" |
| 7991 | #endif |
| 7992 | char pthread_kill (); |
| 7993 | int |
| 7994 | main () |
| 7995 | { |
| 7996 | return pthread_kill (); |
| 7997 | ; |
| 7998 | return 0; |
| 7999 | } |
| 8000 | _ACEOF |
| 8001 | if ac_fn_c_try_link "$LINENO"; then : |
| 8002 | ac_cv_lib_pthread_pthread_kill=yes |
| 8003 | else |
| 8004 | ac_cv_lib_pthread_pthread_kill=no |
| 8005 | fi |
| 8006 | rm -f core conftest.err conftest.$ac_objext \ |
| 8007 | conftest$ac_exeext conftest.$ac_ext |
| 8008 | LIBS=$ac_check_lib_save_LIBS |
| 8009 | fi |
| 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 8011 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 8012 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 8013 | gl_have_pthread=yes |
| 8014 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 8015 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 8016 | fi |
| 8017 | |
| 8018 | if test -z "$gl_have_pthread"; then |
| 8019 | # For FreeBSD 4. |
| 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 8021 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 8022 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 8023 | $as_echo_n "(cached) " >&6 |
| 8024 | else |
| 8025 | ac_check_lib_save_LIBS=$LIBS |
| 8026 | LIBS="-lc_r $LIBS" |
| 8027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8028 | /* end confdefs.h. */ |
| 8029 | |
| 8030 | /* Override any GCC internal prototype to avoid an error. |
| 8031 | Use char because int might match the return type of a GCC |
| 8032 | builtin and then its argument prototype would still apply. */ |
| 8033 | #ifdef __cplusplus |
| 8034 | extern "C" |
| 8035 | #endif |
| 8036 | char pthread_kill (); |
| 8037 | int |
| 8038 | main () |
| 8039 | { |
| 8040 | return pthread_kill (); |
| 8041 | ; |
| 8042 | return 0; |
| 8043 | } |
| 8044 | _ACEOF |
| 8045 | if ac_fn_c_try_link "$LINENO"; then : |
| 8046 | ac_cv_lib_c_r_pthread_kill=yes |
| 8047 | else |
| 8048 | ac_cv_lib_c_r_pthread_kill=no |
| 8049 | fi |
| 8050 | rm -f core conftest.err conftest.$ac_objext \ |
| 8051 | conftest$ac_exeext conftest.$ac_ext |
| 8052 | LIBS=$ac_check_lib_save_LIBS |
| 8053 | fi |
| 8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8055 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8056 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8057 | gl_have_pthread=yes |
| 8058 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8059 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8060 | fi |
| 8061 | |
| 8062 | fi |
| 8063 | fi |
| 8064 | if test -n "$gl_have_pthread"; then |
| 8065 | gl_threads_api=posix |
| 8066 | |
| 8067 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8068 | |
| 8069 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8070 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8071 | |
| 8072 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8073 | |
| 8074 | LIBTHREAD= |
| 8075 | LTLIBTHREAD= |
| 8076 | fi |
| 8077 | fi |
| 8078 | fi |
| 8079 | fi |
| 8080 | fi |
| 8081 | if test -z "$gl_have_pthread"; then |
| 8082 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8083 | gl_have_solaristhread= |
| 8084 | gl_save_LIBS="$LIBS" |
| 8085 | LIBS="$LIBS -lthread" |
| 8086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8087 | /* end confdefs.h. */ |
| 8088 | |
| 8089 | #include <thread.h> |
| 8090 | #include <synch.h> |
| 8091 | |
| 8092 | int |
| 8093 | main () |
| 8094 | { |
| 8095 | thr_self(); |
| 8096 | ; |
| 8097 | return 0; |
| 8098 | } |
| 8099 | _ACEOF |
| 8100 | if ac_fn_c_try_link "$LINENO"; then : |
| 8101 | gl_have_solaristhread=yes |
| 8102 | fi |
| 8103 | rm -f core conftest.err conftest.$ac_objext \ |
| 8104 | conftest$ac_exeext conftest.$ac_ext |
| 8105 | LIBS="$gl_save_LIBS" |
| 8106 | if test -n "$gl_have_solaristhread"; then |
| 8107 | gl_threads_api=solaris |
| 8108 | LIBTHREAD=-lthread |
| 8109 | LTLIBTHREAD=-lthread |
| 8110 | LIBMULTITHREAD="$LIBTHREAD" |
| 8111 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8112 | |
| 8113 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8114 | |
| 8115 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8116 | |
| 8117 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8118 | |
| 8119 | LIBTHREAD= |
| 8120 | LTLIBTHREAD= |
| 8121 | fi |
| 8122 | fi |
| 8123 | fi |
| 8124 | fi |
| 8125 | if test "$gl_use_threads" = pth; then |
| 8126 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8127 | |
| 8128 | |
| 8129 | |
| 8130 | |
| 8131 | |
| 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8133 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8134 | if ${ac_cv_libpth_libs+:} false; then : |
| 8135 | $as_echo_n "(cached) " >&6 |
| 8136 | else |
| 8137 | |
| 8138 | |
| 8139 | |
| 8140 | |
| 8141 | |
| 8142 | |
| 8143 | |
| 8144 | |
| 8145 | use_additional=yes |
| 8146 | |
| 8147 | acl_save_prefix="$prefix" |
| 8148 | prefix="$acl_final_prefix" |
| 8149 | acl_save_exec_prefix="$exec_prefix" |
| 8150 | exec_prefix="$acl_final_exec_prefix" |
| 8151 | |
| 8152 | eval additional_includedir=\"$includedir\" |
| 8153 | eval additional_libdir=\"$libdir\" |
| 8154 | |
| 8155 | exec_prefix="$acl_save_exec_prefix" |
| 8156 | prefix="$acl_save_prefix" |
| 8157 | |
| 8158 | |
| 8159 | # Check whether --with-libpth-prefix was given. |
| 8160 | if test "${with_libpth_prefix+set}" = set; then : |
| 8161 | withval=$with_libpth_prefix; |
| 8162 | if test "X$withval" = "Xno"; then |
| 8163 | use_additional=no |
| 8164 | else |
| 8165 | if test "X$withval" = "X"; then |
| 8166 | |
| 8167 | acl_save_prefix="$prefix" |
| 8168 | prefix="$acl_final_prefix" |
| 8169 | acl_save_exec_prefix="$exec_prefix" |
| 8170 | exec_prefix="$acl_final_exec_prefix" |
| 8171 | |
| 8172 | eval additional_includedir=\"$includedir\" |
| 8173 | eval additional_libdir=\"$libdir\" |
| 8174 | |
| 8175 | exec_prefix="$acl_save_exec_prefix" |
| 8176 | prefix="$acl_save_prefix" |
| 8177 | |
| 8178 | else |
| 8179 | additional_includedir="$withval/include" |
| 8180 | additional_libdir="$withval/$acl_libdirstem" |
| 8181 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8182 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8183 | additional_libdir="$withval/$acl_libdirstem2" |
| 8184 | fi |
| 8185 | fi |
| 8186 | fi |
| 8187 | |
| 8188 | fi |
| 8189 | |
| 8190 | LIBPTH= |
| 8191 | LTLIBPTH= |
| 8192 | INCPTH= |
| 8193 | LIBPTH_PREFIX= |
| 8194 | HAVE_LIBPTH= |
| 8195 | rpathdirs= |
| 8196 | ltrpathdirs= |
| 8197 | names_already_handled= |
| 8198 | names_next_round='pth ' |
| 8199 | while test -n "$names_next_round"; do |
| 8200 | names_this_round="$names_next_round" |
| 8201 | names_next_round= |
| 8202 | for name in $names_this_round; do |
| 8203 | already_handled= |
| 8204 | for n in $names_already_handled; do |
| 8205 | if test "$n" = "$name"; then |
| 8206 | already_handled=yes |
| 8207 | break |
| 8208 | fi |
| 8209 | done |
| 8210 | if test -z "$already_handled"; then |
| 8211 | names_already_handled="$names_already_handled $name" |
| 8212 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8213 | eval value=\"\$HAVE_LIB$uppername\" |
| 8214 | if test -n "$value"; then |
| 8215 | if test "$value" = yes; then |
| 8216 | eval value=\"\$LIB$uppername\" |
| 8217 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8218 | eval value=\"\$LTLIB$uppername\" |
| 8219 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8220 | else |
| 8221 | : |
| 8222 | fi |
| 8223 | else |
| 8224 | found_dir= |
| 8225 | found_la= |
| 8226 | found_so= |
| 8227 | found_a= |
| 8228 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8229 | if test -n "$acl_shlibext"; then |
| 8230 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8231 | else |
| 8232 | shrext= |
| 8233 | fi |
| 8234 | if test $use_additional = yes; then |
| 8235 | dir="$additional_libdir" |
| 8236 | if test -n "$acl_shlibext"; then |
| 8237 | if test -f "$dir/$libname$shrext"; then |
| 8238 | found_dir="$dir" |
| 8239 | found_so="$dir/$libname$shrext" |
| 8240 | else |
| 8241 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8242 | ver=`(cd "$dir" && \ |
| 8243 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8244 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8245 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8246 | | sed 1q ) 2>/dev/null` |
| 8247 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8248 | found_dir="$dir" |
| 8249 | found_so="$dir/$libname$shrext.$ver" |
| 8250 | fi |
| 8251 | else |
| 8252 | eval library_names=\"$acl_library_names_spec\" |
| 8253 | for f in $library_names; do |
| 8254 | if test -f "$dir/$f"; then |
| 8255 | found_dir="$dir" |
| 8256 | found_so="$dir/$f" |
| 8257 | break |
| 8258 | fi |
| 8259 | done |
| 8260 | fi |
| 8261 | fi |
| 8262 | fi |
| 8263 | if test "X$found_dir" = "X"; then |
| 8264 | if test -f "$dir/$libname.$acl_libext"; then |
| 8265 | found_dir="$dir" |
| 8266 | found_a="$dir/$libname.$acl_libext" |
| 8267 | fi |
| 8268 | fi |
| 8269 | if test "X$found_dir" != "X"; then |
| 8270 | if test -f "$dir/$libname.la"; then |
| 8271 | found_la="$dir/$libname.la" |
| 8272 | fi |
| 8273 | fi |
| 8274 | fi |
| 8275 | if test "X$found_dir" = "X"; then |
| 8276 | for x in $LDFLAGS $LTLIBPTH; do |
| 8277 | |
| 8278 | acl_save_prefix="$prefix" |
| 8279 | prefix="$acl_final_prefix" |
| 8280 | acl_save_exec_prefix="$exec_prefix" |
| 8281 | exec_prefix="$acl_final_exec_prefix" |
| 8282 | eval x=\"$x\" |
| 8283 | exec_prefix="$acl_save_exec_prefix" |
| 8284 | prefix="$acl_save_prefix" |
| 8285 | |
| 8286 | case "$x" in |
| 8287 | -L*) |
| 8288 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8289 | if test -n "$acl_shlibext"; then |
| 8290 | if test -f "$dir/$libname$shrext"; then |
| 8291 | found_dir="$dir" |
| 8292 | found_so="$dir/$libname$shrext" |
| 8293 | else |
| 8294 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8295 | ver=`(cd "$dir" && \ |
| 8296 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8297 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8298 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8299 | | sed 1q ) 2>/dev/null` |
| 8300 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8301 | found_dir="$dir" |
| 8302 | found_so="$dir/$libname$shrext.$ver" |
| 8303 | fi |
| 8304 | else |
| 8305 | eval library_names=\"$acl_library_names_spec\" |
| 8306 | for f in $library_names; do |
| 8307 | if test -f "$dir/$f"; then |
| 8308 | found_dir="$dir" |
| 8309 | found_so="$dir/$f" |
| 8310 | break |
| 8311 | fi |
| 8312 | done |
| 8313 | fi |
| 8314 | fi |
| 8315 | fi |
| 8316 | if test "X$found_dir" = "X"; then |
| 8317 | if test -f "$dir/$libname.$acl_libext"; then |
| 8318 | found_dir="$dir" |
| 8319 | found_a="$dir/$libname.$acl_libext" |
| 8320 | fi |
| 8321 | fi |
| 8322 | if test "X$found_dir" != "X"; then |
| 8323 | if test -f "$dir/$libname.la"; then |
| 8324 | found_la="$dir/$libname.la" |
| 8325 | fi |
| 8326 | fi |
| 8327 | ;; |
| 8328 | esac |
| 8329 | if test "X$found_dir" != "X"; then |
| 8330 | break |
| 8331 | fi |
| 8332 | done |
| 8333 | fi |
| 8334 | if test "X$found_dir" != "X"; then |
| 8335 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8336 | if test "X$found_so" != "X"; then |
| 8337 | if test "$enable_rpath" = no \ |
| 8338 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8339 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8340 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8341 | else |
| 8342 | haveit= |
| 8343 | for x in $ltrpathdirs; do |
| 8344 | if test "X$x" = "X$found_dir"; then |
| 8345 | haveit=yes |
| 8346 | break |
| 8347 | fi |
| 8348 | done |
| 8349 | if test -z "$haveit"; then |
| 8350 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8351 | fi |
| 8352 | if test "$acl_hardcode_direct" = yes; then |
| 8353 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8354 | else |
| 8355 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8356 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8357 | haveit= |
| 8358 | for x in $rpathdirs; do |
| 8359 | if test "X$x" = "X$found_dir"; then |
| 8360 | haveit=yes |
| 8361 | break |
| 8362 | fi |
| 8363 | done |
| 8364 | if test -z "$haveit"; then |
| 8365 | rpathdirs="$rpathdirs $found_dir" |
| 8366 | fi |
| 8367 | else |
| 8368 | haveit= |
| 8369 | for x in $LDFLAGS $LIBPTH; do |
| 8370 | |
| 8371 | acl_save_prefix="$prefix" |
| 8372 | prefix="$acl_final_prefix" |
| 8373 | acl_save_exec_prefix="$exec_prefix" |
| 8374 | exec_prefix="$acl_final_exec_prefix" |
| 8375 | eval x=\"$x\" |
| 8376 | exec_prefix="$acl_save_exec_prefix" |
| 8377 | prefix="$acl_save_prefix" |
| 8378 | |
| 8379 | if test "X$x" = "X-L$found_dir"; then |
| 8380 | haveit=yes |
| 8381 | break |
| 8382 | fi |
| 8383 | done |
| 8384 | if test -z "$haveit"; then |
| 8385 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8386 | fi |
| 8387 | if test "$acl_hardcode_minus_L" != no; then |
| 8388 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8389 | else |
| 8390 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8391 | fi |
| 8392 | fi |
| 8393 | fi |
| 8394 | fi |
| 8395 | else |
| 8396 | if test "X$found_a" != "X"; then |
| 8397 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8398 | else |
| 8399 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8400 | fi |
| 8401 | fi |
| 8402 | additional_includedir= |
| 8403 | case "$found_dir" in |
| 8404 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8405 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8406 | if test "$name" = 'pth'; then |
| 8407 | LIBPTH_PREFIX="$basedir" |
| 8408 | fi |
| 8409 | additional_includedir="$basedir/include" |
| 8410 | ;; |
| 8411 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8412 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8413 | if test "$name" = 'pth'; then |
| 8414 | LIBPTH_PREFIX="$basedir" |
| 8415 | fi |
| 8416 | additional_includedir="$basedir/include" |
| 8417 | ;; |
| 8418 | esac |
| 8419 | if test "X$additional_includedir" != "X"; then |
| 8420 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8421 | haveit= |
| 8422 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8423 | if test -n "$GCC"; then |
| 8424 | case $host_os in |
| 8425 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8426 | esac |
| 8427 | fi |
| 8428 | fi |
| 8429 | if test -z "$haveit"; then |
| 8430 | for x in $CPPFLAGS $INCPTH; do |
| 8431 | |
| 8432 | acl_save_prefix="$prefix" |
| 8433 | prefix="$acl_final_prefix" |
| 8434 | acl_save_exec_prefix="$exec_prefix" |
| 8435 | exec_prefix="$acl_final_exec_prefix" |
| 8436 | eval x=\"$x\" |
| 8437 | exec_prefix="$acl_save_exec_prefix" |
| 8438 | prefix="$acl_save_prefix" |
| 8439 | |
| 8440 | if test "X$x" = "X-I$additional_includedir"; then |
| 8441 | haveit=yes |
| 8442 | break |
| 8443 | fi |
| 8444 | done |
| 8445 | if test -z "$haveit"; then |
| 8446 | if test -d "$additional_includedir"; then |
| 8447 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8448 | fi |
| 8449 | fi |
| 8450 | fi |
| 8451 | fi |
| 8452 | fi |
| 8453 | if test -n "$found_la"; then |
| 8454 | save_libdir="$libdir" |
| 8455 | case "$found_la" in |
| 8456 | */* | *\\*) . "$found_la" ;; |
| 8457 | *) . "./$found_la" ;; |
| 8458 | esac |
| 8459 | libdir="$save_libdir" |
| 8460 | for dep in $dependency_libs; do |
| 8461 | case "$dep" in |
| 8462 | -L*) |
| 8463 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8464 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8465 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8466 | haveit= |
| 8467 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8468 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8469 | if test -n "$GCC"; then |
| 8470 | case $host_os in |
| 8471 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8472 | esac |
| 8473 | fi |
| 8474 | fi |
| 8475 | if test -z "$haveit"; then |
| 8476 | haveit= |
| 8477 | for x in $LDFLAGS $LIBPTH; do |
| 8478 | |
| 8479 | acl_save_prefix="$prefix" |
| 8480 | prefix="$acl_final_prefix" |
| 8481 | acl_save_exec_prefix="$exec_prefix" |
| 8482 | exec_prefix="$acl_final_exec_prefix" |
| 8483 | eval x=\"$x\" |
| 8484 | exec_prefix="$acl_save_exec_prefix" |
| 8485 | prefix="$acl_save_prefix" |
| 8486 | |
| 8487 | if test "X$x" = "X-L$additional_libdir"; then |
| 8488 | haveit=yes |
| 8489 | break |
| 8490 | fi |
| 8491 | done |
| 8492 | if test -z "$haveit"; then |
| 8493 | if test -d "$additional_libdir"; then |
| 8494 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8495 | fi |
| 8496 | fi |
| 8497 | haveit= |
| 8498 | for x in $LDFLAGS $LTLIBPTH; do |
| 8499 | |
| 8500 | acl_save_prefix="$prefix" |
| 8501 | prefix="$acl_final_prefix" |
| 8502 | acl_save_exec_prefix="$exec_prefix" |
| 8503 | exec_prefix="$acl_final_exec_prefix" |
| 8504 | eval x=\"$x\" |
| 8505 | exec_prefix="$acl_save_exec_prefix" |
| 8506 | prefix="$acl_save_prefix" |
| 8507 | |
| 8508 | if test "X$x" = "X-L$additional_libdir"; then |
| 8509 | haveit=yes |
| 8510 | break |
| 8511 | fi |
| 8512 | done |
| 8513 | if test -z "$haveit"; then |
| 8514 | if test -d "$additional_libdir"; then |
| 8515 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8516 | fi |
| 8517 | fi |
| 8518 | fi |
| 8519 | fi |
| 8520 | ;; |
| 8521 | -R*) |
| 8522 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8523 | if test "$enable_rpath" != no; then |
| 8524 | haveit= |
| 8525 | for x in $rpathdirs; do |
| 8526 | if test "X$x" = "X$dir"; then |
| 8527 | haveit=yes |
| 8528 | break |
| 8529 | fi |
| 8530 | done |
| 8531 | if test -z "$haveit"; then |
| 8532 | rpathdirs="$rpathdirs $dir" |
| 8533 | fi |
| 8534 | haveit= |
| 8535 | for x in $ltrpathdirs; do |
| 8536 | if test "X$x" = "X$dir"; then |
| 8537 | haveit=yes |
| 8538 | break |
| 8539 | fi |
| 8540 | done |
| 8541 | if test -z "$haveit"; then |
| 8542 | ltrpathdirs="$ltrpathdirs $dir" |
| 8543 | fi |
| 8544 | fi |
| 8545 | ;; |
| 8546 | -l*) |
| 8547 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8548 | ;; |
| 8549 | *.la) |
| 8550 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8551 | ;; |
| 8552 | *) |
| 8553 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8554 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8555 | ;; |
| 8556 | esac |
| 8557 | done |
| 8558 | fi |
| 8559 | else |
| 8560 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8561 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8562 | fi |
| 8563 | fi |
| 8564 | fi |
| 8565 | done |
| 8566 | done |
| 8567 | if test "X$rpathdirs" != "X"; then |
| 8568 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8569 | alldirs= |
| 8570 | for found_dir in $rpathdirs; do |
| 8571 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8572 | done |
| 8573 | acl_save_libdir="$libdir" |
| 8574 | libdir="$alldirs" |
| 8575 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8576 | libdir="$acl_save_libdir" |
| 8577 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8578 | else |
| 8579 | for found_dir in $rpathdirs; do |
| 8580 | acl_save_libdir="$libdir" |
| 8581 | libdir="$found_dir" |
| 8582 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8583 | libdir="$acl_save_libdir" |
| 8584 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8585 | done |
| 8586 | fi |
| 8587 | fi |
| 8588 | if test "X$ltrpathdirs" != "X"; then |
| 8589 | for found_dir in $ltrpathdirs; do |
| 8590 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8591 | done |
| 8592 | fi |
| 8593 | |
| 8594 | |
| 8595 | |
| 8596 | |
| 8597 | |
| 8598 | |
| 8599 | ac_cv_libpth_libs="$LIBPTH" |
| 8600 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8601 | ac_cv_libpth_cppflags="$INCPTH" |
| 8602 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8603 | |
| 8604 | fi |
| 8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8606 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8607 | LIBPTH="$ac_cv_libpth_libs" |
| 8608 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8609 | INCPTH="$ac_cv_libpth_cppflags" |
| 8610 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8611 | |
| 8612 | for element in $INCPTH; do |
| 8613 | haveit= |
| 8614 | for x in $CPPFLAGS; do |
| 8615 | |
| 8616 | acl_save_prefix="$prefix" |
| 8617 | prefix="$acl_final_prefix" |
| 8618 | acl_save_exec_prefix="$exec_prefix" |
| 8619 | exec_prefix="$acl_final_exec_prefix" |
| 8620 | eval x=\"$x\" |
| 8621 | exec_prefix="$acl_save_exec_prefix" |
| 8622 | prefix="$acl_save_prefix" |
| 8623 | |
| 8624 | if test "X$x" = "X$element"; then |
| 8625 | haveit=yes |
| 8626 | break |
| 8627 | fi |
| 8628 | done |
| 8629 | if test -z "$haveit"; then |
| 8630 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8631 | fi |
| 8632 | done |
| 8633 | |
| 8634 | |
| 8635 | |
| 8636 | |
| 8637 | HAVE_LIBPTH=yes |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | gl_have_pth= |
| 8642 | gl_save_LIBS="$LIBS" |
| 8643 | LIBS="$LIBS $LIBPTH" |
| 8644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8645 | /* end confdefs.h. */ |
| 8646 | #include <pth.h> |
| 8647 | int |
| 8648 | main () |
| 8649 | { |
| 8650 | pth_self(); |
| 8651 | ; |
| 8652 | return 0; |
| 8653 | } |
| 8654 | _ACEOF |
| 8655 | if ac_fn_c_try_link "$LINENO"; then : |
| 8656 | gl_have_pth=yes |
| 8657 | fi |
| 8658 | rm -f core conftest.err conftest.$ac_objext \ |
| 8659 | conftest$ac_exeext conftest.$ac_ext |
| 8660 | LIBS="$gl_save_LIBS" |
| 8661 | if test -n "$gl_have_pth"; then |
| 8662 | gl_threads_api=pth |
| 8663 | LIBTHREAD="$LIBPTH" |
| 8664 | LTLIBTHREAD="$LTLIBPTH" |
| 8665 | LIBMULTITHREAD="$LIBTHREAD" |
| 8666 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8667 | |
| 8668 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8669 | |
| 8670 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8671 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8672 | |
| 8673 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8674 | |
| 8675 | LIBTHREAD= |
| 8676 | LTLIBTHREAD= |
| 8677 | fi |
| 8678 | fi |
| 8679 | else |
| 8680 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8681 | fi |
| 8682 | fi |
| 8683 | if test -z "$gl_have_pthread"; then |
| 8684 | case "$gl_use_threads" in |
| 8685 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8686 | if { case "$host_os" in |
| 8687 | mingw*) true;; |
| 8688 | *) false;; |
| 8689 | esac |
| 8690 | }; then |
| 8691 | gl_threads_api=windows |
| 8692 | |
| 8693 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8694 | |
| 8695 | fi |
| 8696 | ;; |
| 8697 | esac |
| 8698 | fi |
| 8699 | fi |
| 8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8701 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8703 | $as_echo "$gl_threads_api" >&6; } |
| 8704 | |
| 8705 | |
| 8706 | |
| 8707 | |
| 8708 | |
| 8709 | |
| 8710 | |
| 8711 | |
| 8712 | |
| 8713 | |
| 8714 | |
| 8715 | if test "$gl_threads_api" = posix; then |
| 8716 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8717 | # pthread_rwlock_* functions. |
| 8718 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8719 | " |
| 8720 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8721 | |
| 8722 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8723 | |
| 8724 | fi |
| 8725 | |
| 8726 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8728 | /* end confdefs.h. */ |
| 8729 | |
| 8730 | #include <pthread.h> |
| 8731 | int |
| 8732 | main () |
| 8733 | { |
| 8734 | |
| 8735 | #if __FreeBSD__ == 4 |
| 8736 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8737 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8738 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8739 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8740 | #else |
| 8741 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8742 | return !x; |
| 8743 | #endif |
| 8744 | |
| 8745 | ; |
| 8746 | return 0; |
| 8747 | } |
| 8748 | _ACEOF |
| 8749 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8750 | |
| 8751 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8752 | |
| 8753 | fi |
| 8754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8755 | fi |
| 8756 | : |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | |
| 8761 | |
| 8762 | |
| 8763 | |
| 8764 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8765 | |
| 8766 | |
| 8767 | |
| 8768 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8769 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8770 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8771 | acl_save_prefix="$prefix" |
| 8772 | prefix="$acl_final_prefix" |
| 8773 | acl_save_exec_prefix="$exec_prefix" |
| 8774 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8775 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8776 | eval additional_includedir=\"$includedir\" |
| 8777 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8779 | exec_prefix="$acl_save_exec_prefix" |
| 8780 | prefix="$acl_save_prefix" |
| 8781 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8783 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8784 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8785 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8786 | if test "X$withval" = "Xno"; then |
| 8787 | use_additional=no |
| 8788 | else |
| 8789 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8790 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8791 | acl_save_prefix="$prefix" |
| 8792 | prefix="$acl_final_prefix" |
| 8793 | acl_save_exec_prefix="$exec_prefix" |
| 8794 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8796 | eval additional_includedir=\"$includedir\" |
| 8797 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8798 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8799 | exec_prefix="$acl_save_exec_prefix" |
| 8800 | prefix="$acl_save_prefix" |
| 8801 | |
| 8802 | else |
| 8803 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8804 | additional_libdir="$withval/$acl_libdirstem" |
| 8805 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8806 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8807 | additional_libdir="$withval/$acl_libdirstem2" |
| 8808 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8809 | fi |
| 8810 | fi |
| 8811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8812 | fi |
| 8813 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8814 | LIBICONV= |
| 8815 | LTLIBICONV= |
| 8816 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8817 | LIBICONV_PREFIX= |
| 8818 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8819 | rpathdirs= |
| 8820 | ltrpathdirs= |
| 8821 | names_already_handled= |
| 8822 | names_next_round='iconv ' |
| 8823 | while test -n "$names_next_round"; do |
| 8824 | names_this_round="$names_next_round" |
| 8825 | names_next_round= |
| 8826 | for name in $names_this_round; do |
| 8827 | already_handled= |
| 8828 | for n in $names_already_handled; do |
| 8829 | if test "$n" = "$name"; then |
| 8830 | already_handled=yes |
| 8831 | break |
| 8832 | fi |
| 8833 | done |
| 8834 | if test -z "$already_handled"; then |
| 8835 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8836 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8837 | eval value=\"\$HAVE_LIB$uppername\" |
| 8838 | if test -n "$value"; then |
| 8839 | if test "$value" = yes; then |
| 8840 | eval value=\"\$LIB$uppername\" |
| 8841 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8842 | eval value=\"\$LTLIB$uppername\" |
| 8843 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8844 | else |
| 8845 | : |
| 8846 | fi |
| 8847 | else |
| 8848 | found_dir= |
| 8849 | found_la= |
| 8850 | found_so= |
| 8851 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8852 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8853 | if test -n "$acl_shlibext"; then |
| 8854 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8855 | else |
| 8856 | shrext= |
| 8857 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8858 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8859 | dir="$additional_libdir" |
| 8860 | if test -n "$acl_shlibext"; then |
| 8861 | if test -f "$dir/$libname$shrext"; then |
| 8862 | found_dir="$dir" |
| 8863 | found_so="$dir/$libname$shrext" |
| 8864 | else |
| 8865 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8866 | ver=`(cd "$dir" && \ |
| 8867 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8868 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8869 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8870 | | sed 1q ) 2>/dev/null` |
| 8871 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8872 | found_dir="$dir" |
| 8873 | found_so="$dir/$libname$shrext.$ver" |
| 8874 | fi |
| 8875 | else |
| 8876 | eval library_names=\"$acl_library_names_spec\" |
| 8877 | for f in $library_names; do |
| 8878 | if test -f "$dir/$f"; then |
| 8879 | found_dir="$dir" |
| 8880 | found_so="$dir/$f" |
| 8881 | break |
| 8882 | fi |
| 8883 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8884 | fi |
| 8885 | fi |
| 8886 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8887 | if test "X$found_dir" = "X"; then |
| 8888 | if test -f "$dir/$libname.$acl_libext"; then |
| 8889 | found_dir="$dir" |
| 8890 | found_a="$dir/$libname.$acl_libext" |
| 8891 | fi |
| 8892 | fi |
| 8893 | if test "X$found_dir" != "X"; then |
| 8894 | if test -f "$dir/$libname.la"; then |
| 8895 | found_la="$dir/$libname.la" |
| 8896 | fi |
| 8897 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8898 | fi |
| 8899 | if test "X$found_dir" = "X"; then |
| 8900 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8901 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8902 | acl_save_prefix="$prefix" |
| 8903 | prefix="$acl_final_prefix" |
| 8904 | acl_save_exec_prefix="$exec_prefix" |
| 8905 | exec_prefix="$acl_final_exec_prefix" |
| 8906 | eval x=\"$x\" |
| 8907 | exec_prefix="$acl_save_exec_prefix" |
| 8908 | prefix="$acl_save_prefix" |
| 8909 | |
| 8910 | case "$x" in |
| 8911 | -L*) |
| 8912 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8913 | if test -n "$acl_shlibext"; then |
| 8914 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8915 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8916 | found_so="$dir/$libname$shrext" |
| 8917 | else |
| 8918 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8919 | ver=`(cd "$dir" && \ |
| 8920 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8921 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8922 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8923 | | sed 1q ) 2>/dev/null` |
| 8924 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8925 | found_dir="$dir" |
| 8926 | found_so="$dir/$libname$shrext.$ver" |
| 8927 | fi |
| 8928 | else |
| 8929 | eval library_names=\"$acl_library_names_spec\" |
| 8930 | for f in $library_names; do |
| 8931 | if test -f "$dir/$f"; then |
| 8932 | found_dir="$dir" |
| 8933 | found_so="$dir/$f" |
| 8934 | break |
| 8935 | fi |
| 8936 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8937 | fi |
| 8938 | fi |
| 8939 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8940 | if test "X$found_dir" = "X"; then |
| 8941 | if test -f "$dir/$libname.$acl_libext"; then |
| 8942 | found_dir="$dir" |
| 8943 | found_a="$dir/$libname.$acl_libext" |
| 8944 | fi |
| 8945 | fi |
| 8946 | if test "X$found_dir" != "X"; then |
| 8947 | if test -f "$dir/$libname.la"; then |
| 8948 | found_la="$dir/$libname.la" |
| 8949 | fi |
| 8950 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8951 | ;; |
| 8952 | esac |
| 8953 | if test "X$found_dir" != "X"; then |
| 8954 | break |
| 8955 | fi |
| 8956 | done |
| 8957 | fi |
| 8958 | if test "X$found_dir" != "X"; then |
| 8959 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8960 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8961 | if test "$enable_rpath" = no \ |
| 8962 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8963 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8964 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8965 | else |
| 8966 | haveit= |
| 8967 | for x in $ltrpathdirs; do |
| 8968 | if test "X$x" = "X$found_dir"; then |
| 8969 | haveit=yes |
| 8970 | break |
| 8971 | fi |
| 8972 | done |
| 8973 | if test -z "$haveit"; then |
| 8974 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8975 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8976 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8977 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8978 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8979 | 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] | 8980 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8981 | haveit= |
| 8982 | for x in $rpathdirs; do |
| 8983 | if test "X$x" = "X$found_dir"; then |
| 8984 | haveit=yes |
| 8985 | break |
| 8986 | fi |
| 8987 | done |
| 8988 | if test -z "$haveit"; then |
| 8989 | rpathdirs="$rpathdirs $found_dir" |
| 8990 | fi |
| 8991 | else |
| 8992 | haveit= |
| 8993 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8994 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8995 | acl_save_prefix="$prefix" |
| 8996 | prefix="$acl_final_prefix" |
| 8997 | acl_save_exec_prefix="$exec_prefix" |
| 8998 | exec_prefix="$acl_final_exec_prefix" |
| 8999 | eval x=\"$x\" |
| 9000 | exec_prefix="$acl_save_exec_prefix" |
| 9001 | prefix="$acl_save_prefix" |
| 9002 | |
| 9003 | if test "X$x" = "X-L$found_dir"; then |
| 9004 | haveit=yes |
| 9005 | break |
| 9006 | fi |
| 9007 | done |
| 9008 | if test -z "$haveit"; then |
| 9009 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9010 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9011 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9012 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9013 | else |
| 9014 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9015 | fi |
| 9016 | fi |
| 9017 | fi |
| 9018 | fi |
| 9019 | else |
| 9020 | if test "X$found_a" != "X"; then |
| 9021 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9022 | else |
| 9023 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9024 | fi |
| 9025 | fi |
| 9026 | additional_includedir= |
| 9027 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9028 | */$acl_libdirstem | */$acl_libdirstem/) |
| 9029 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 9030 | if test "$name" = 'iconv'; then |
| 9031 | LIBICONV_PREFIX="$basedir" |
| 9032 | fi |
| 9033 | additional_includedir="$basedir/include" |
| 9034 | ;; |
| 9035 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 9036 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 9037 | if test "$name" = 'iconv'; then |
| 9038 | LIBICONV_PREFIX="$basedir" |
| 9039 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9040 | additional_includedir="$basedir/include" |
| 9041 | ;; |
| 9042 | esac |
| 9043 | if test "X$additional_includedir" != "X"; then |
| 9044 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9045 | haveit= |
| 9046 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9047 | if test -n "$GCC"; then |
| 9048 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9049 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9050 | esac |
| 9051 | fi |
| 9052 | fi |
| 9053 | if test -z "$haveit"; then |
| 9054 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9056 | acl_save_prefix="$prefix" |
| 9057 | prefix="$acl_final_prefix" |
| 9058 | acl_save_exec_prefix="$exec_prefix" |
| 9059 | exec_prefix="$acl_final_exec_prefix" |
| 9060 | eval x=\"$x\" |
| 9061 | exec_prefix="$acl_save_exec_prefix" |
| 9062 | prefix="$acl_save_prefix" |
| 9063 | |
| 9064 | if test "X$x" = "X-I$additional_includedir"; then |
| 9065 | haveit=yes |
| 9066 | break |
| 9067 | fi |
| 9068 | done |
| 9069 | if test -z "$haveit"; then |
| 9070 | if test -d "$additional_includedir"; then |
| 9071 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9072 | fi |
| 9073 | fi |
| 9074 | fi |
| 9075 | fi |
| 9076 | fi |
| 9077 | if test -n "$found_la"; then |
| 9078 | save_libdir="$libdir" |
| 9079 | case "$found_la" in |
| 9080 | */* | *\\*) . "$found_la" ;; |
| 9081 | *) . "./$found_la" ;; |
| 9082 | esac |
| 9083 | libdir="$save_libdir" |
| 9084 | for dep in $dependency_libs; do |
| 9085 | case "$dep" in |
| 9086 | -L*) |
| 9087 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9088 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9089 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9090 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9091 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9092 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9093 | if test -n "$GCC"; then |
| 9094 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9095 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9096 | esac |
| 9097 | fi |
| 9098 | fi |
| 9099 | if test -z "$haveit"; then |
| 9100 | haveit= |
| 9101 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9102 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9103 | acl_save_prefix="$prefix" |
| 9104 | prefix="$acl_final_prefix" |
| 9105 | acl_save_exec_prefix="$exec_prefix" |
| 9106 | exec_prefix="$acl_final_exec_prefix" |
| 9107 | eval x=\"$x\" |
| 9108 | exec_prefix="$acl_save_exec_prefix" |
| 9109 | prefix="$acl_save_prefix" |
| 9110 | |
| 9111 | if test "X$x" = "X-L$additional_libdir"; then |
| 9112 | haveit=yes |
| 9113 | break |
| 9114 | fi |
| 9115 | done |
| 9116 | if test -z "$haveit"; then |
| 9117 | if test -d "$additional_libdir"; then |
| 9118 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9119 | fi |
| 9120 | fi |
| 9121 | haveit= |
| 9122 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9123 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9124 | acl_save_prefix="$prefix" |
| 9125 | prefix="$acl_final_prefix" |
| 9126 | acl_save_exec_prefix="$exec_prefix" |
| 9127 | exec_prefix="$acl_final_exec_prefix" |
| 9128 | eval x=\"$x\" |
| 9129 | exec_prefix="$acl_save_exec_prefix" |
| 9130 | prefix="$acl_save_prefix" |
| 9131 | |
| 9132 | if test "X$x" = "X-L$additional_libdir"; then |
| 9133 | haveit=yes |
| 9134 | break |
| 9135 | fi |
| 9136 | done |
| 9137 | if test -z "$haveit"; then |
| 9138 | if test -d "$additional_libdir"; then |
| 9139 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9140 | fi |
| 9141 | fi |
| 9142 | fi |
| 9143 | fi |
| 9144 | ;; |
| 9145 | -R*) |
| 9146 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9147 | if test "$enable_rpath" != no; then |
| 9148 | haveit= |
| 9149 | for x in $rpathdirs; do |
| 9150 | if test "X$x" = "X$dir"; then |
| 9151 | haveit=yes |
| 9152 | break |
| 9153 | fi |
| 9154 | done |
| 9155 | if test -z "$haveit"; then |
| 9156 | rpathdirs="$rpathdirs $dir" |
| 9157 | fi |
| 9158 | haveit= |
| 9159 | for x in $ltrpathdirs; do |
| 9160 | if test "X$x" = "X$dir"; then |
| 9161 | haveit=yes |
| 9162 | break |
| 9163 | fi |
| 9164 | done |
| 9165 | if test -z "$haveit"; then |
| 9166 | ltrpathdirs="$ltrpathdirs $dir" |
| 9167 | fi |
| 9168 | fi |
| 9169 | ;; |
| 9170 | -l*) |
| 9171 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9172 | ;; |
| 9173 | *.la) |
| 9174 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9175 | ;; |
| 9176 | *) |
| 9177 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9178 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9179 | ;; |
| 9180 | esac |
| 9181 | done |
| 9182 | fi |
| 9183 | else |
| 9184 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9185 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9186 | fi |
| 9187 | fi |
| 9188 | fi |
| 9189 | done |
| 9190 | done |
| 9191 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9192 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9193 | alldirs= |
| 9194 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9195 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9196 | done |
| 9197 | acl_save_libdir="$libdir" |
| 9198 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9199 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9200 | libdir="$acl_save_libdir" |
| 9201 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9202 | else |
| 9203 | for found_dir in $rpathdirs; do |
| 9204 | acl_save_libdir="$libdir" |
| 9205 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9206 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9207 | libdir="$acl_save_libdir" |
| 9208 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9209 | done |
| 9210 | fi |
| 9211 | fi |
| 9212 | if test "X$ltrpathdirs" != "X"; then |
| 9213 | for found_dir in $ltrpathdirs; do |
| 9214 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9215 | done |
| 9216 | fi |
| 9217 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9218 | |
| 9219 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9220 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9225 | |
| 9226 | |
| 9227 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9228 | |
| 9229 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9230 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9231 | for element in $INCICONV; do |
| 9232 | haveit= |
| 9233 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9234 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9235 | acl_save_prefix="$prefix" |
| 9236 | prefix="$acl_final_prefix" |
| 9237 | acl_save_exec_prefix="$exec_prefix" |
| 9238 | exec_prefix="$acl_final_exec_prefix" |
| 9239 | eval x=\"$x\" |
| 9240 | exec_prefix="$acl_save_exec_prefix" |
| 9241 | prefix="$acl_save_prefix" |
| 9242 | |
| 9243 | if test "X$x" = "X$element"; then |
| 9244 | haveit=yes |
| 9245 | break |
| 9246 | fi |
| 9247 | done |
| 9248 | if test -z "$haveit"; then |
| 9249 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9250 | fi |
| 9251 | done |
| 9252 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9253 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9255 | $as_echo_n "checking for iconv... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9256 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9257 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9258 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9260 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9261 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9263 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9264 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9265 | #include <stdlib.h> |
| 9266 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9268 | int |
| 9269 | main () |
| 9270 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9271 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9272 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9273 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9274 | ; |
| 9275 | return 0; |
| 9276 | } |
| 9277 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9278 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9279 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9280 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9281 | rm -f core conftest.err conftest.$ac_objext \ |
| 9282 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9283 | if test "$am_cv_func_iconv" != yes; then |
| 9284 | am_save_LIBS="$LIBS" |
| 9285 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9287 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9288 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9289 | #include <stdlib.h> |
| 9290 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9291 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9292 | int |
| 9293 | main () |
| 9294 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9295 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9296 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9297 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9298 | ; |
| 9299 | return 0; |
| 9300 | } |
| 9301 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9302 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9303 | am_cv_lib_iconv=yes |
| 9304 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9305 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9306 | rm -f core conftest.err conftest.$ac_objext \ |
| 9307 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9308 | LIBS="$am_save_LIBS" |
| 9309 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9310 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9311 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9312 | { $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] | 9313 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9314 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9316 | $as_echo_n "checking for working iconv... " >&6; } |
| 9317 | if ${am_cv_func_iconv_works+:} false; then : |
| 9318 | $as_echo_n "(cached) " >&6 |
| 9319 | else |
| 9320 | |
| 9321 | am_save_LIBS="$LIBS" |
| 9322 | if test $am_cv_lib_iconv = yes; then |
| 9323 | LIBS="$LIBS $LIBICONV" |
| 9324 | fi |
| 9325 | if test "$cross_compiling" = yes; then : |
| 9326 | |
| 9327 | case "$host_os" in |
| 9328 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9329 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9330 | esac |
| 9331 | |
| 9332 | else |
| 9333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9334 | /* end confdefs.h. */ |
| 9335 | |
| 9336 | #include <iconv.h> |
| 9337 | #include <string.h> |
| 9338 | int main () |
| 9339 | { |
| 9340 | int result = 0; |
| 9341 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9342 | returns. */ |
| 9343 | { |
| 9344 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9345 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9346 | { |
| 9347 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9348 | char buf[10]; |
| 9349 | const char *inptr = input; |
| 9350 | size_t inbytesleft = strlen (input); |
| 9351 | char *outptr = buf; |
| 9352 | size_t outbytesleft = sizeof (buf); |
| 9353 | size_t res = iconv (cd_utf8_to_88591, |
| 9354 | (char **) &inptr, &inbytesleft, |
| 9355 | &outptr, &outbytesleft); |
| 9356 | if (res == 0) |
| 9357 | result |= 1; |
| 9358 | iconv_close (cd_utf8_to_88591); |
| 9359 | } |
| 9360 | } |
| 9361 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9362 | successful returns. */ |
| 9363 | { |
| 9364 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9365 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9366 | { |
| 9367 | static const char input[] = "\263"; |
| 9368 | char buf[10]; |
| 9369 | const char *inptr = input; |
| 9370 | size_t inbytesleft = strlen (input); |
| 9371 | char *outptr = buf; |
| 9372 | size_t outbytesleft = sizeof (buf); |
| 9373 | size_t res = iconv (cd_ascii_to_88591, |
| 9374 | (char **) &inptr, &inbytesleft, |
| 9375 | &outptr, &outbytesleft); |
| 9376 | if (res == 0) |
| 9377 | result |= 2; |
| 9378 | iconv_close (cd_ascii_to_88591); |
| 9379 | } |
| 9380 | } |
| 9381 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9382 | { |
| 9383 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9384 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9385 | { |
| 9386 | static const char input[] = "\304"; |
| 9387 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9388 | const char *inptr = input; |
| 9389 | size_t inbytesleft = 1; |
| 9390 | char *outptr = buf; |
| 9391 | size_t outbytesleft = 1; |
| 9392 | size_t res = iconv (cd_88591_to_utf8, |
| 9393 | (char **) &inptr, &inbytesleft, |
| 9394 | &outptr, &outbytesleft); |
| 9395 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9396 | result |= 4; |
| 9397 | iconv_close (cd_88591_to_utf8); |
| 9398 | } |
| 9399 | } |
| 9400 | #if 0 /* This bug could be worked around by the caller. */ |
| 9401 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9402 | { |
| 9403 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9404 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9405 | { |
| 9406 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9407 | char buf[50]; |
| 9408 | const char *inptr = input; |
| 9409 | size_t inbytesleft = strlen (input); |
| 9410 | char *outptr = buf; |
| 9411 | size_t outbytesleft = sizeof (buf); |
| 9412 | size_t res = iconv (cd_88591_to_utf8, |
| 9413 | (char **) &inptr, &inbytesleft, |
| 9414 | &outptr, &outbytesleft); |
| 9415 | if ((int)res > 0) |
| 9416 | result |= 8; |
| 9417 | iconv_close (cd_88591_to_utf8); |
| 9418 | } |
| 9419 | } |
| 9420 | #endif |
| 9421 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9422 | provided. */ |
| 9423 | if (/* Try standardized names. */ |
| 9424 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9425 | /* Try IRIX, OSF/1 names. */ |
| 9426 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9427 | /* Try AIX names. */ |
| 9428 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9429 | /* Try HP-UX names. */ |
| 9430 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9431 | result |= 16; |
| 9432 | return result; |
| 9433 | } |
| 9434 | _ACEOF |
| 9435 | if ac_fn_c_try_run "$LINENO"; then : |
| 9436 | am_cv_func_iconv_works=yes |
| 9437 | else |
| 9438 | am_cv_func_iconv_works=no |
| 9439 | fi |
| 9440 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9441 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9442 | fi |
| 9443 | |
| 9444 | LIBS="$am_save_LIBS" |
| 9445 | |
| 9446 | fi |
| 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9448 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9449 | case "$am_cv_func_iconv_works" in |
| 9450 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9451 | *) am_func_iconv=yes ;; |
| 9452 | esac |
| 9453 | else |
| 9454 | am_func_iconv=no am_cv_lib_iconv=no |
| 9455 | fi |
| 9456 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9457 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9458 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9459 | |
| 9460 | fi |
| 9461 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9462 | { $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] | 9463 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9465 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9466 | else |
| 9467 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9468 | LIBICONV= |
| 9469 | LTLIBICONV= |
| 9470 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9471 | |
| 9472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9473 | |
| 9474 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9475 | { $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] | 9476 | $as_echo_n "checking for iconv declaration... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9477 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9478 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9479 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9480 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9482 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9483 | |
| 9484 | #include <stdlib.h> |
| 9485 | #include <iconv.h> |
| 9486 | extern |
| 9487 | #ifdef __cplusplus |
| 9488 | "C" |
| 9489 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9490 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9491 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9492 | #else |
| 9493 | size_t iconv(); |
| 9494 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9496 | int |
| 9497 | main () |
| 9498 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9500 | ; |
| 9501 | return 0; |
| 9502 | } |
| 9503 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9504 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9505 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9506 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9507 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9508 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9510 | 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] | 9511 | fi |
| 9512 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9513 | 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] | 9514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9515 | $am_cv_proto_iconv" >&5 |
| 9516 | $as_echo " |
| 9517 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9518 | |
| 9519 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9520 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9521 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9522 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9524 | fi |
| 9525 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9526 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9527 | |
| 9528 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9530 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9531 | 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] | 9532 | int |
| 9533 | main () |
| 9534 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9540 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9541 | |
| 9542 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9544 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9545 | rm -f core conftest.err conftest.$ac_objext \ |
| 9546 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9547 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9548 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9549 | do : |
| 9550 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9551 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9552 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9553 | cat >>confdefs.h <<_ACEOF |
| 9554 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9555 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9556 | |
| 9557 | fi |
| 9558 | |
| 9559 | done |
| 9560 | |
| 9561 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9562 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9563 | argz_stringify argz_next __fsetlocking |
| 9564 | do : |
| 9565 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9566 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9567 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9568 | cat >>confdefs.h <<_ACEOF |
| 9569 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9570 | _ACEOF |
| 9571 | |
| 9572 | fi |
| 9573 | done |
| 9574 | |
| 9575 | |
| 9576 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9577 | " |
| 9578 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9579 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9580 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9581 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9583 | |
| 9584 | cat >>confdefs.h <<_ACEOF |
| 9585 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9586 | _ACEOF |
| 9587 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9588 | " |
| 9589 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9590 | ac_have_decl=1 |
| 9591 | else |
| 9592 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9593 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9594 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9595 | cat >>confdefs.h <<_ACEOF |
| 9596 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9597 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9598 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9599 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9601 | |
| 9602 | for ac_prog in bison |
| 9603 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | # 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] | 9605 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9606 | { $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] | 9607 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9608 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9609 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9610 | else |
| 9611 | if test -n "$INTLBISON"; then |
| 9612 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9613 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9615 | for as_dir in $PATH |
| 9616 | do |
| 9617 | IFS=$as_save_IFS |
| 9618 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9619 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9620 | 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] | 9621 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9622 | $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] | 9623 | break 2 |
| 9624 | fi |
| 9625 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9626 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9627 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9628 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9629 | fi |
| 9630 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9631 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9632 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9634 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9635 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9637 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9638 | fi |
| 9639 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9641 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9642 | done |
| 9643 | |
| 9644 | if test -z "$INTLBISON"; then |
| 9645 | ac_verc_fail=yes |
| 9646 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9647 | { $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] | 9648 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9649 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9650 | case $ac_prog_version in |
| 9651 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9652 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9653 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9654 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9655 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9656 | { $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] | 9657 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9658 | fi |
| 9659 | if test $ac_verc_fail = yes; then |
| 9660 | INTLBISON=: |
| 9661 | fi |
| 9662 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9663 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9664 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9666 | $as_echo_n "checking for long long int... " >&6; } |
| 9667 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9668 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9669 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9670 | ac_cv_type_long_long_int=yes |
| 9671 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9672 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9673 | if test $ac_cv_type_long_long_int = yes; then |
| 9674 | if test "$cross_compiling" = yes; then : |
| 9675 | : |
| 9676 | else |
| 9677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9678 | /* end confdefs.h. */ |
| 9679 | #include <limits.h> |
| 9680 | #ifndef LLONG_MAX |
| 9681 | # define HALF \ |
| 9682 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9683 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9684 | #endif |
| 9685 | int |
| 9686 | main () |
| 9687 | { |
| 9688 | long long int n = 1; |
| 9689 | int i; |
| 9690 | for (i = 0; ; i++) |
| 9691 | { |
| 9692 | long long int m = n << i; |
| 9693 | if (m >> i != n) |
| 9694 | return 1; |
| 9695 | if (LLONG_MAX / 2 < m) |
| 9696 | break; |
| 9697 | } |
| 9698 | return 0; |
| 9699 | ; |
| 9700 | return 0; |
| 9701 | } |
| 9702 | _ACEOF |
| 9703 | if ac_fn_c_try_run "$LINENO"; then : |
| 9704 | |
| 9705 | else |
| 9706 | ac_cv_type_long_long_int=no |
| 9707 | fi |
| 9708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9709 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9710 | fi |
| 9711 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9712 | fi |
| 9713 | fi |
| 9714 | fi |
| 9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9716 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9717 | if test $ac_cv_type_long_long_int = yes; then |
| 9718 | |
| 9719 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9720 | |
| 9721 | fi |
| 9722 | |
| 9723 | |
| 9724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9725 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9726 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9727 | $as_echo_n "(cached) " >&6 |
| 9728 | else |
| 9729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9730 | /* end confdefs.h. */ |
| 9731 | #include <stddef.h> |
| 9732 | wchar_t foo = (wchar_t)'\0'; |
| 9733 | int |
| 9734 | main () |
| 9735 | { |
| 9736 | |
| 9737 | ; |
| 9738 | return 0; |
| 9739 | } |
| 9740 | _ACEOF |
| 9741 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9742 | gt_cv_c_wchar_t=yes |
| 9743 | else |
| 9744 | gt_cv_c_wchar_t=no |
| 9745 | fi |
| 9746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9747 | fi |
| 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9749 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9750 | if test $gt_cv_c_wchar_t = yes; then |
| 9751 | |
| 9752 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9753 | |
| 9754 | fi |
| 9755 | |
| 9756 | |
| 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9758 | $as_echo_n "checking for wint_t... " >&6; } |
| 9759 | if ${gt_cv_c_wint_t+:} false; then : |
| 9760 | $as_echo_n "(cached) " >&6 |
| 9761 | else |
| 9762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9763 | /* end confdefs.h. */ |
| 9764 | |
| 9765 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9766 | <wchar.h>. |
| 9767 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9768 | before <wchar.h>. */ |
| 9769 | #include <stddef.h> |
| 9770 | #include <stdio.h> |
| 9771 | #include <time.h> |
| 9772 | #include <wchar.h> |
| 9773 | wint_t foo = (wchar_t)'\0'; |
| 9774 | int |
| 9775 | main () |
| 9776 | { |
| 9777 | |
| 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
| 9782 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9783 | gt_cv_c_wint_t=yes |
| 9784 | else |
| 9785 | gt_cv_c_wint_t=no |
| 9786 | fi |
| 9787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9788 | fi |
| 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9790 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9791 | if test $gt_cv_c_wint_t = yes; then |
| 9792 | |
| 9793 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9794 | |
| 9795 | fi |
| 9796 | |
| 9797 | |
| 9798 | |
| 9799 | |
| 9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9801 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9802 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9803 | $as_echo_n "(cached) " >&6 |
| 9804 | else |
| 9805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9806 | /* end confdefs.h. */ |
| 9807 | |
| 9808 | #include <stddef.h> |
| 9809 | #include <stdlib.h> |
| 9810 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9811 | #include <stdint.h> |
| 9812 | #endif |
| 9813 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9814 | #include <inttypes.h> |
| 9815 | #endif |
| 9816 | |
| 9817 | int |
| 9818 | main () |
| 9819 | { |
| 9820 | intmax_t x = -1; |
| 9821 | return !x; |
| 9822 | ; |
| 9823 | return 0; |
| 9824 | } |
| 9825 | _ACEOF |
| 9826 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9827 | gt_cv_c_intmax_t=yes |
| 9828 | else |
| 9829 | gt_cv_c_intmax_t=no |
| 9830 | fi |
| 9831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9832 | fi |
| 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9834 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9835 | if test $gt_cv_c_intmax_t = yes; then |
| 9836 | |
| 9837 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9838 | |
| 9839 | fi |
| 9840 | |
| 9841 | |
| 9842 | |
| 9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9844 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9845 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9846 | $as_echo_n "(cached) " >&6 |
| 9847 | else |
| 9848 | |
| 9849 | if test "$cross_compiling" = yes; then : |
| 9850 | |
| 9851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9852 | /* end confdefs.h. */ |
| 9853 | |
| 9854 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9855 | notposix |
| 9856 | #endif |
| 9857 | |
| 9858 | _ACEOF |
| 9859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9860 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9861 | gt_cv_func_printf_posix="guessing no" |
| 9862 | else |
| 9863 | gt_cv_func_printf_posix="guessing yes" |
| 9864 | fi |
| 9865 | rm -f conftest* |
| 9866 | |
| 9867 | |
| 9868 | else |
| 9869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9870 | /* end confdefs.h. */ |
| 9871 | |
| 9872 | #include <stdio.h> |
| 9873 | #include <string.h> |
| 9874 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 9875 | dollar expansion (possibly an autoconf bug). */ |
| 9876 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 9877 | static char buf[100]; |
| 9878 | int main () |
| 9879 | { |
| 9880 | sprintf (buf, format, 33, 55); |
| 9881 | return (strcmp (buf, "55 33") != 0); |
| 9882 | } |
| 9883 | _ACEOF |
| 9884 | if ac_fn_c_try_run "$LINENO"; then : |
| 9885 | gt_cv_func_printf_posix=yes |
| 9886 | else |
| 9887 | gt_cv_func_printf_posix=no |
| 9888 | fi |
| 9889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9890 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9891 | fi |
| 9892 | |
| 9893 | |
| 9894 | fi |
| 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 9896 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 9897 | case $gt_cv_func_printf_posix in |
| 9898 | *yes) |
| 9899 | |
| 9900 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 9901 | |
| 9902 | ;; |
| 9903 | esac |
| 9904 | |
| 9905 | |
| 9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 9907 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 9908 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 9909 | $as_echo_n "(cached) " >&6 |
| 9910 | else |
| 9911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9912 | /* end confdefs.h. */ |
| 9913 | |
| 9914 | #include <features.h> |
| 9915 | #ifdef __GNU_LIBRARY__ |
| 9916 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 9917 | Lucky GNU user |
| 9918 | #endif |
| 9919 | #endif |
| 9920 | #ifdef __UCLIBC__ |
| 9921 | Lucky user |
| 9922 | #endif |
| 9923 | |
| 9924 | _ACEOF |
| 9925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9926 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 9927 | ac_cv_gnu_library_2_1=yes |
| 9928 | else |
| 9929 | ac_cv_gnu_library_2_1=no |
| 9930 | fi |
| 9931 | rm -f conftest* |
| 9932 | |
| 9933 | |
| 9934 | |
| 9935 | fi |
| 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 9937 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 9938 | |
| 9939 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 9940 | |
| 9941 | |
| 9942 | |
| 9943 | for ac_header in stdint.h |
| 9944 | do : |
| 9945 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 9946 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 9947 | cat >>confdefs.h <<_ACEOF |
| 9948 | #define HAVE_STDINT_H 1 |
| 9949 | _ACEOF |
| 9950 | |
| 9951 | fi |
| 9952 | |
| 9953 | done |
| 9954 | |
| 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 9956 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 9957 | if ${gl_cv_size_max+:} false; then : |
| 9958 | $as_echo_n "(cached) " >&6 |
| 9959 | else |
| 9960 | |
| 9961 | gl_cv_size_max= |
| 9962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9963 | /* end confdefs.h. */ |
| 9964 | |
| 9965 | #include <limits.h> |
| 9966 | #if HAVE_STDINT_H |
| 9967 | #include <stdint.h> |
| 9968 | #endif |
| 9969 | #ifdef SIZE_MAX |
| 9970 | Found it |
| 9971 | #endif |
| 9972 | |
| 9973 | _ACEOF |
| 9974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9975 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 9976 | gl_cv_size_max=yes |
| 9977 | fi |
| 9978 | rm -f conftest* |
| 9979 | |
| 9980 | if test -z "$gl_cv_size_max"; then |
| 9981 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 9982 | #include <limits.h>"; then : |
| 9983 | |
| 9984 | else |
| 9985 | size_t_bits_minus_1= |
| 9986 | fi |
| 9987 | |
| 9988 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 9989 | |
| 9990 | else |
| 9991 | fits_in_uint= |
| 9992 | fi |
| 9993 | |
| 9994 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 9995 | if test $fits_in_uint = 1; then |
| 9996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9997 | /* end confdefs.h. */ |
| 9998 | #include <stddef.h> |
| 9999 | extern size_t foo; |
| 10000 | extern unsigned long foo; |
| 10001 | |
| 10002 | int |
| 10003 | main () |
| 10004 | { |
| 10005 | |
| 10006 | ; |
| 10007 | return 0; |
| 10008 | } |
| 10009 | _ACEOF |
| 10010 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10011 | fits_in_uint=0 |
| 10012 | fi |
| 10013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10014 | fi |
| 10015 | if test $fits_in_uint = 1; then |
| 10016 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 10017 | else |
| 10018 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 10019 | fi |
| 10020 | else |
| 10021 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 10022 | fi |
| 10023 | fi |
| 10024 | |
| 10025 | fi |
| 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 10027 | $as_echo "$gl_cv_size_max" >&6; } |
| 10028 | if test "$gl_cv_size_max" != yes; then |
| 10029 | |
| 10030 | cat >>confdefs.h <<_ACEOF |
| 10031 | #define SIZE_MAX $gl_cv_size_max |
| 10032 | _ACEOF |
| 10033 | |
| 10034 | fi |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | for ac_header in stdint.h |
| 10040 | do : |
| 10041 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10042 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10043 | cat >>confdefs.h <<_ACEOF |
| 10044 | #define HAVE_STDINT_H 1 |
| 10045 | _ACEOF |
| 10046 | |
| 10047 | fi |
| 10048 | |
| 10049 | done |
| 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | |
| 10055 | for ac_func in $ac_func_list |
| 10056 | do : |
| 10057 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10058 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10059 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10060 | cat >>confdefs.h <<_ACEOF |
| 10061 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10062 | _ACEOF |
| 10063 | |
| 10064 | fi |
| 10065 | done |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10075 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10076 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10077 | $as_echo_n "(cached) " >&6 |
| 10078 | else |
| 10079 | if test "$cross_compiling" = yes; then : |
| 10080 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10081 | else |
| 10082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10083 | /* end confdefs.h. */ |
| 10084 | #include <sys/types.h> |
| 10085 | #include <sys/stat.h> |
| 10086 | #if HAVE_UNISTD_H |
| 10087 | # include <unistd.h> |
| 10088 | #else /* on Windows with MSVC */ |
| 10089 | # include <io.h> |
| 10090 | # include <stdlib.h> |
| 10091 | # defined sleep(n) _sleep ((n) * 1000) |
| 10092 | #endif |
| 10093 | #include <fcntl.h> |
| 10094 | #ifndef O_NOATIME |
| 10095 | #define O_NOATIME 0 |
| 10096 | #endif |
| 10097 | #ifndef O_NOFOLLOW |
| 10098 | #define O_NOFOLLOW 0 |
| 10099 | #endif |
| 10100 | static int const constants[] = |
| 10101 | { |
| 10102 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10103 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10104 | }; |
| 10105 | |
| 10106 | int |
| 10107 | main () |
| 10108 | { |
| 10109 | |
| 10110 | int result = !constants; |
| 10111 | #if HAVE_SYMLINK |
| 10112 | { |
| 10113 | static char const sym[] = "conftest.sym"; |
| 10114 | if (symlink ("/dev/null", sym) != 0) |
| 10115 | result |= 2; |
| 10116 | else |
| 10117 | { |
| 10118 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10119 | if (fd >= 0) |
| 10120 | { |
| 10121 | close (fd); |
| 10122 | result |= 4; |
| 10123 | } |
| 10124 | } |
| 10125 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10126 | result |= 2; |
| 10127 | else |
| 10128 | { |
| 10129 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10130 | if (fd >= 0) |
| 10131 | { |
| 10132 | close (fd); |
| 10133 | result |= 4; |
| 10134 | } |
| 10135 | } |
| 10136 | unlink (sym); |
| 10137 | } |
| 10138 | #endif |
| 10139 | { |
| 10140 | static char const file[] = "confdefs.h"; |
| 10141 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10142 | if (fd < 0) |
| 10143 | result |= 8; |
| 10144 | else |
| 10145 | { |
| 10146 | struct stat st0; |
| 10147 | if (fstat (fd, &st0) != 0) |
| 10148 | result |= 16; |
| 10149 | else |
| 10150 | { |
| 10151 | char c; |
| 10152 | sleep (1); |
| 10153 | if (read (fd, &c, 1) != 1) |
| 10154 | result |= 24; |
| 10155 | else |
| 10156 | { |
| 10157 | if (close (fd) != 0) |
| 10158 | result |= 32; |
| 10159 | else |
| 10160 | { |
| 10161 | struct stat st1; |
| 10162 | if (stat (file, &st1) != 0) |
| 10163 | result |= 40; |
| 10164 | else |
| 10165 | if (st0.st_atime != st1.st_atime) |
| 10166 | result |= 64; |
| 10167 | } |
| 10168 | } |
| 10169 | } |
| 10170 | } |
| 10171 | } |
| 10172 | return result; |
| 10173 | ; |
| 10174 | return 0; |
| 10175 | } |
| 10176 | _ACEOF |
| 10177 | if ac_fn_c_try_run "$LINENO"; then : |
| 10178 | gl_cv_header_working_fcntl_h=yes |
| 10179 | else |
| 10180 | case $? in #( |
| 10181 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10182 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10183 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10184 | *) gl_cv_header_working_fcntl_h='no';; |
| 10185 | esac |
| 10186 | fi |
| 10187 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10188 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10189 | fi |
| 10190 | |
| 10191 | fi |
| 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10193 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10194 | |
| 10195 | case $gl_cv_header_working_fcntl_h in #( |
| 10196 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10197 | *) ac_val=1;; |
| 10198 | esac |
| 10199 | |
| 10200 | cat >>confdefs.h <<_ACEOF |
| 10201 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10202 | _ACEOF |
| 10203 | |
| 10204 | |
| 10205 | case $gl_cv_header_working_fcntl_h in #( |
| 10206 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10207 | *) ac_val=1;; |
| 10208 | esac |
| 10209 | |
| 10210 | cat >>confdefs.h <<_ACEOF |
| 10211 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10212 | _ACEOF |
| 10213 | |
| 10214 | |
| 10215 | |
| 10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10217 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10218 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10219 | $as_echo_n "(cached) " >&6 |
| 10220 | else |
| 10221 | gt_save_LIBS="$LIBS" |
| 10222 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10224 | /* end confdefs.h. */ |
| 10225 | #include <CoreFoundation/CFPreferences.h> |
| 10226 | int |
| 10227 | main () |
| 10228 | { |
| 10229 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10230 | ; |
| 10231 | return 0; |
| 10232 | } |
| 10233 | _ACEOF |
| 10234 | if ac_fn_c_try_link "$LINENO"; then : |
| 10235 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10236 | else |
| 10237 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10238 | fi |
| 10239 | rm -f core conftest.err conftest.$ac_objext \ |
| 10240 | conftest$ac_exeext conftest.$ac_ext |
| 10241 | LIBS="$gt_save_LIBS" |
| 10242 | fi |
| 10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10244 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10245 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10246 | |
| 10247 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10248 | |
| 10249 | fi |
| 10250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10251 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10252 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10253 | $as_echo_n "(cached) " >&6 |
| 10254 | else |
| 10255 | gt_save_LIBS="$LIBS" |
| 10256 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10258 | /* end confdefs.h. */ |
| 10259 | #include <CoreFoundation/CFLocale.h> |
| 10260 | int |
| 10261 | main () |
| 10262 | { |
| 10263 | CFLocaleCopyCurrent(); |
| 10264 | ; |
| 10265 | return 0; |
| 10266 | } |
| 10267 | _ACEOF |
| 10268 | if ac_fn_c_try_link "$LINENO"; then : |
| 10269 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10270 | else |
| 10271 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10272 | fi |
| 10273 | rm -f core conftest.err conftest.$ac_objext \ |
| 10274 | conftest$ac_exeext conftest.$ac_ext |
| 10275 | LIBS="$gt_save_LIBS" |
| 10276 | fi |
| 10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10278 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10279 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10280 | |
| 10281 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10282 | |
| 10283 | fi |
| 10284 | INTL_MACOSX_LIBS= |
| 10285 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10286 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10287 | fi |
| 10288 | |
| 10289 | |
| 10290 | |
| 10291 | |
| 10292 | |
| 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
| 10297 | |
| 10298 | case "$enable_silent_rules" in |
| 10299 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10300 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10301 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10302 | esac |
| 10303 | |
| 10304 | |
| 10305 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10306 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10307 | |
| 10308 | else |
| 10309 | |
| 10310 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10311 | |
| 10312 | |
| 10313 | fi |
| 10314 | |
| 10315 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10316 | do : |
| 10317 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10318 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10319 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10320 | cat >>confdefs.h <<_ACEOF |
| 10321 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10322 | _ACEOF |
| 10323 | |
| 10324 | fi |
| 10325 | |
| 10326 | done |
| 10327 | |
| 10328 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10329 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10330 | do : |
| 10331 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10332 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10333 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10334 | cat >>confdefs.h <<_ACEOF |
| 10335 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10336 | _ACEOF |
| 10337 | |
| 10338 | fi |
| 10339 | done |
| 10340 | |
| 10341 | |
| 10342 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10343 | " |
| 10344 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10345 | ac_have_decl=1 |
| 10346 | else |
| 10347 | ac_have_decl=0 |
| 10348 | fi |
| 10349 | |
| 10350 | cat >>confdefs.h <<_ACEOF |
| 10351 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10352 | _ACEOF |
| 10353 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10354 | " |
| 10355 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10356 | ac_have_decl=1 |
| 10357 | else |
| 10358 | ac_have_decl=0 |
| 10359 | fi |
| 10360 | |
| 10361 | cat >>confdefs.h <<_ACEOF |
| 10362 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10363 | _ACEOF |
| 10364 | |
| 10365 | |
| 10366 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10367 | " |
| 10368 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10369 | ac_have_decl=1 |
| 10370 | else |
| 10371 | ac_have_decl=0 |
| 10372 | fi |
| 10373 | |
| 10374 | cat >>confdefs.h <<_ACEOF |
| 10375 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10376 | _ACEOF |
| 10377 | |
| 10378 | |
| 10379 | case $gt_cv_func_printf_posix in |
| 10380 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10381 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10382 | esac |
| 10383 | |
| 10384 | if test "$ac_cv_func_asprintf" = yes; then |
| 10385 | HAVE_ASPRINTF=1 |
| 10386 | else |
| 10387 | HAVE_ASPRINTF=0 |
| 10388 | fi |
| 10389 | |
| 10390 | if test "$ac_cv_func_snprintf" = yes; then |
| 10391 | HAVE_SNPRINTF=1 |
| 10392 | else |
| 10393 | HAVE_SNPRINTF=0 |
| 10394 | fi |
| 10395 | |
| 10396 | if test "$ac_cv_func_newlocale" = yes; then |
| 10397 | HAVE_NEWLOCALE=1 |
| 10398 | else |
| 10399 | HAVE_NEWLOCALE=0 |
| 10400 | fi |
| 10401 | |
| 10402 | if test "$ac_cv_func_wprintf" = yes; then |
| 10403 | HAVE_WPRINTF=1 |
| 10404 | else |
| 10405 | HAVE_WPRINTF=0 |
| 10406 | fi |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10411 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10412 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10413 | $as_echo_n "(cached) " >&6 |
| 10414 | else |
| 10415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10416 | /* end confdefs.h. */ |
| 10417 | #include <langinfo.h> |
| 10418 | int |
| 10419 | main () |
| 10420 | { |
| 10421 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10422 | ; |
| 10423 | return 0; |
| 10424 | } |
| 10425 | _ACEOF |
| 10426 | if ac_fn_c_try_link "$LINENO"; then : |
| 10427 | am_cv_langinfo_codeset=yes |
| 10428 | else |
| 10429 | am_cv_langinfo_codeset=no |
| 10430 | fi |
| 10431 | rm -f core conftest.err conftest.$ac_objext \ |
| 10432 | conftest$ac_exeext conftest.$ac_ext |
| 10433 | |
| 10434 | fi |
| 10435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10436 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10437 | if test $am_cv_langinfo_codeset = yes; then |
| 10438 | |
| 10439 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10440 | |
| 10441 | fi |
| 10442 | |
| 10443 | |
| 10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10445 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10446 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10447 | $as_echo_n "(cached) " >&6 |
| 10448 | else |
| 10449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10450 | /* end confdefs.h. */ |
| 10451 | #include <locale.h> |
| 10452 | int |
| 10453 | main () |
| 10454 | { |
| 10455 | return LC_MESSAGES |
| 10456 | ; |
| 10457 | return 0; |
| 10458 | } |
| 10459 | _ACEOF |
| 10460 | if ac_fn_c_try_link "$LINENO"; then : |
| 10461 | gt_cv_val_LC_MESSAGES=yes |
| 10462 | else |
| 10463 | gt_cv_val_LC_MESSAGES=no |
| 10464 | fi |
| 10465 | rm -f core conftest.err conftest.$ac_objext \ |
| 10466 | conftest$ac_exeext conftest.$ac_ext |
| 10467 | fi |
| 10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10469 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10470 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10471 | |
| 10472 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10473 | |
| 10474 | fi |
| 10475 | |
| 10476 | |
| 10477 | if test "$enable_shared" = yes; then |
| 10478 | case "$host_os" in |
| 10479 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10480 | *) is_woe32dll=no ;; |
| 10481 | esac |
| 10482 | else |
| 10483 | is_woe32dll=no |
| 10484 | fi |
| 10485 | WOE32DLL=$is_woe32dll |
| 10486 | |
| 10487 | |
| 10488 | case "$host_os" in |
| 10489 | mingw* | cygwin*) is_woe32=yes ;; |
| 10490 | *) is_woe32=no ;; |
| 10491 | esac |
| 10492 | WOE32=$is_woe32 |
| 10493 | |
| 10494 | if test $WOE32 = yes; then |
| 10495 | if test -n "$ac_tool_prefix"; then |
| 10496 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10497 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10499 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10500 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10501 | $as_echo_n "(cached) " >&6 |
| 10502 | else |
| 10503 | if test -n "$WINDRES"; then |
| 10504 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10505 | else |
| 10506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10507 | for as_dir in $PATH |
| 10508 | do |
| 10509 | IFS=$as_save_IFS |
| 10510 | test -z "$as_dir" && as_dir=. |
| 10511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10513 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10515 | break 2 |
| 10516 | fi |
| 10517 | done |
| 10518 | done |
| 10519 | IFS=$as_save_IFS |
| 10520 | |
| 10521 | fi |
| 10522 | fi |
| 10523 | WINDRES=$ac_cv_prog_WINDRES |
| 10524 | if test -n "$WINDRES"; then |
| 10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10526 | $as_echo "$WINDRES" >&6; } |
| 10527 | else |
| 10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10529 | $as_echo "no" >&6; } |
| 10530 | fi |
| 10531 | |
| 10532 | |
| 10533 | fi |
| 10534 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10535 | ac_ct_WINDRES=$WINDRES |
| 10536 | # Extract the first word of "windres", so it can be a program name with args. |
| 10537 | set dummy windres; ac_word=$2 |
| 10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10539 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10540 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10541 | $as_echo_n "(cached) " >&6 |
| 10542 | else |
| 10543 | if test -n "$ac_ct_WINDRES"; then |
| 10544 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10545 | else |
| 10546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10547 | for as_dir in $PATH |
| 10548 | do |
| 10549 | IFS=$as_save_IFS |
| 10550 | test -z "$as_dir" && as_dir=. |
| 10551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10553 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10555 | break 2 |
| 10556 | fi |
| 10557 | done |
| 10558 | done |
| 10559 | IFS=$as_save_IFS |
| 10560 | |
| 10561 | fi |
| 10562 | fi |
| 10563 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10564 | if test -n "$ac_ct_WINDRES"; then |
| 10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10566 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10567 | else |
| 10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10569 | $as_echo "no" >&6; } |
| 10570 | fi |
| 10571 | |
| 10572 | if test "x$ac_ct_WINDRES" = x; then |
| 10573 | WINDRES="" |
| 10574 | else |
| 10575 | case $cross_compiling:$ac_tool_warned in |
| 10576 | yes:) |
| 10577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10578 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10579 | ac_tool_warned=yes ;; |
| 10580 | esac |
| 10581 | WINDRES=$ac_ct_WINDRES |
| 10582 | fi |
| 10583 | else |
| 10584 | WINDRES="$ac_cv_prog_WINDRES" |
| 10585 | fi |
| 10586 | |
| 10587 | fi |
| 10588 | |
| 10589 | case "$host_os" in |
| 10590 | hpux*) LTLIBC="" ;; |
| 10591 | *) LTLIBC="-lc" ;; |
| 10592 | esac |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10621 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10622 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10623 | $as_echo_n "(cached) " >&6 |
| 10624 | else |
| 10625 | gt_save_LIBS="$LIBS" |
| 10626 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10628 | /* end confdefs.h. */ |
| 10629 | #include <CoreFoundation/CFPreferences.h> |
| 10630 | int |
| 10631 | main () |
| 10632 | { |
| 10633 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10634 | ; |
| 10635 | return 0; |
| 10636 | } |
| 10637 | _ACEOF |
| 10638 | if ac_fn_c_try_link "$LINENO"; then : |
| 10639 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10640 | else |
| 10641 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10642 | fi |
| 10643 | rm -f core conftest.err conftest.$ac_objext \ |
| 10644 | conftest$ac_exeext conftest.$ac_ext |
| 10645 | LIBS="$gt_save_LIBS" |
| 10646 | fi |
| 10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10648 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10649 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10650 | |
| 10651 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10652 | |
| 10653 | fi |
| 10654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10655 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10656 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10657 | $as_echo_n "(cached) " >&6 |
| 10658 | else |
| 10659 | gt_save_LIBS="$LIBS" |
| 10660 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10662 | /* end confdefs.h. */ |
| 10663 | #include <CoreFoundation/CFLocale.h> |
| 10664 | int |
| 10665 | main () |
| 10666 | { |
| 10667 | CFLocaleCopyCurrent(); |
| 10668 | ; |
| 10669 | return 0; |
| 10670 | } |
| 10671 | _ACEOF |
| 10672 | if ac_fn_c_try_link "$LINENO"; then : |
| 10673 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10674 | else |
| 10675 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10676 | fi |
| 10677 | rm -f core conftest.err conftest.$ac_objext \ |
| 10678 | conftest$ac_exeext conftest.$ac_ext |
| 10679 | LIBS="$gt_save_LIBS" |
| 10680 | fi |
| 10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10682 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10683 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10684 | |
| 10685 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10686 | |
| 10687 | fi |
| 10688 | INTL_MACOSX_LIBS= |
| 10689 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10690 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10691 | fi |
| 10692 | |
| 10693 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10694 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10695 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10696 | |
| 10697 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10698 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10699 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10700 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10701 | LIBINTL= |
| 10702 | LTLIBINTL= |
| 10703 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10704 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10705 | case " $gt_needs " in |
| 10706 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10707 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10708 | *) gt_api_version=1 ;; |
| 10709 | esac |
| 10710 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10711 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10712 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10713 | if test "$USE_NLS" = "yes"; then |
| 10714 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10715 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10716 | { $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] | 10717 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10719 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10720 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10721 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10722 | else |
| 10723 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10724 | fi |
| 10725 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10726 | { $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] | 10727 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10728 | |
| 10729 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10730 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10731 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10732 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10733 | if test $gt_api_version -ge 3; then |
| 10734 | gt_revision_test_code=' |
| 10735 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10736 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10737 | #endif |
| 10738 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10739 | ' |
| 10740 | else |
| 10741 | gt_revision_test_code= |
| 10742 | fi |
| 10743 | if test $gt_api_version -ge 2; then |
| 10744 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10745 | else |
| 10746 | gt_expression_test_code= |
| 10747 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10748 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10749 | { $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] | 10750 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10751 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10752 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10753 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10755 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10756 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10757 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10758 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10759 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10760 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10761 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10762 | int |
| 10763 | main () |
| 10764 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10765 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10766 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10767 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10768 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10769 | ; |
| 10770 | return 0; |
| 10771 | } |
| 10772 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10773 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10774 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10775 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10776 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10777 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10778 | rm -f core conftest.err conftest.$ac_objext \ |
| 10779 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10780 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10781 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10783 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10784 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10785 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10786 | |
| 10787 | |
| 10788 | |
| 10789 | |
| 10790 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10791 | |
| 10792 | |
| 10793 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10794 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10796 | acl_save_prefix="$prefix" |
| 10797 | prefix="$acl_final_prefix" |
| 10798 | acl_save_exec_prefix="$exec_prefix" |
| 10799 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10800 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10801 | eval additional_includedir=\"$includedir\" |
| 10802 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10803 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10804 | exec_prefix="$acl_save_exec_prefix" |
| 10805 | prefix="$acl_save_prefix" |
| 10806 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10807 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10808 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10809 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10810 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10811 | if test "X$withval" = "Xno"; then |
| 10812 | use_additional=no |
| 10813 | else |
| 10814 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10815 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10816 | acl_save_prefix="$prefix" |
| 10817 | prefix="$acl_final_prefix" |
| 10818 | acl_save_exec_prefix="$exec_prefix" |
| 10819 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10821 | eval additional_includedir=\"$includedir\" |
| 10822 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10823 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10824 | exec_prefix="$acl_save_exec_prefix" |
| 10825 | prefix="$acl_save_prefix" |
| 10826 | |
| 10827 | else |
| 10828 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10829 | additional_libdir="$withval/$acl_libdirstem" |
| 10830 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10831 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10832 | additional_libdir="$withval/$acl_libdirstem2" |
| 10833 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10834 | fi |
| 10835 | fi |
| 10836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10837 | fi |
| 10838 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10839 | LIBINTL= |
| 10840 | LTLIBINTL= |
| 10841 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10842 | LIBINTL_PREFIX= |
| 10843 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10844 | rpathdirs= |
| 10845 | ltrpathdirs= |
| 10846 | names_already_handled= |
| 10847 | names_next_round='intl ' |
| 10848 | while test -n "$names_next_round"; do |
| 10849 | names_this_round="$names_next_round" |
| 10850 | names_next_round= |
| 10851 | for name in $names_this_round; do |
| 10852 | already_handled= |
| 10853 | for n in $names_already_handled; do |
| 10854 | if test "$n" = "$name"; then |
| 10855 | already_handled=yes |
| 10856 | break |
| 10857 | fi |
| 10858 | done |
| 10859 | if test -z "$already_handled"; then |
| 10860 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10861 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10862 | eval value=\"\$HAVE_LIB$uppername\" |
| 10863 | if test -n "$value"; then |
| 10864 | if test "$value" = yes; then |
| 10865 | eval value=\"\$LIB$uppername\" |
| 10866 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10867 | eval value=\"\$LTLIB$uppername\" |
| 10868 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10869 | else |
| 10870 | : |
| 10871 | fi |
| 10872 | else |
| 10873 | found_dir= |
| 10874 | found_la= |
| 10875 | found_so= |
| 10876 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10877 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 10878 | if test -n "$acl_shlibext"; then |
| 10879 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 10880 | else |
| 10881 | shrext= |
| 10882 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10883 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10884 | dir="$additional_libdir" |
| 10885 | if test -n "$acl_shlibext"; then |
| 10886 | if test -f "$dir/$libname$shrext"; then |
| 10887 | found_dir="$dir" |
| 10888 | found_so="$dir/$libname$shrext" |
| 10889 | else |
| 10890 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10891 | ver=`(cd "$dir" && \ |
| 10892 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10893 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10894 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10895 | | sed 1q ) 2>/dev/null` |
| 10896 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10897 | found_dir="$dir" |
| 10898 | found_so="$dir/$libname$shrext.$ver" |
| 10899 | fi |
| 10900 | else |
| 10901 | eval library_names=\"$acl_library_names_spec\" |
| 10902 | for f in $library_names; do |
| 10903 | if test -f "$dir/$f"; then |
| 10904 | found_dir="$dir" |
| 10905 | found_so="$dir/$f" |
| 10906 | break |
| 10907 | fi |
| 10908 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10909 | fi |
| 10910 | fi |
| 10911 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10912 | if test "X$found_dir" = "X"; then |
| 10913 | if test -f "$dir/$libname.$acl_libext"; then |
| 10914 | found_dir="$dir" |
| 10915 | found_a="$dir/$libname.$acl_libext" |
| 10916 | fi |
| 10917 | fi |
| 10918 | if test "X$found_dir" != "X"; then |
| 10919 | if test -f "$dir/$libname.la"; then |
| 10920 | found_la="$dir/$libname.la" |
| 10921 | fi |
| 10922 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10923 | fi |
| 10924 | if test "X$found_dir" = "X"; then |
| 10925 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10927 | acl_save_prefix="$prefix" |
| 10928 | prefix="$acl_final_prefix" |
| 10929 | acl_save_exec_prefix="$exec_prefix" |
| 10930 | exec_prefix="$acl_final_exec_prefix" |
| 10931 | eval x=\"$x\" |
| 10932 | exec_prefix="$acl_save_exec_prefix" |
| 10933 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10934 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10935 | case "$x" in |
| 10936 | -L*) |
| 10937 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10938 | if test -n "$acl_shlibext"; then |
| 10939 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10940 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10941 | found_so="$dir/$libname$shrext" |
| 10942 | else |
| 10943 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10944 | ver=`(cd "$dir" && \ |
| 10945 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10946 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10947 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10948 | | sed 1q ) 2>/dev/null` |
| 10949 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10950 | found_dir="$dir" |
| 10951 | found_so="$dir/$libname$shrext.$ver" |
| 10952 | fi |
| 10953 | else |
| 10954 | eval library_names=\"$acl_library_names_spec\" |
| 10955 | for f in $library_names; do |
| 10956 | if test -f "$dir/$f"; then |
| 10957 | found_dir="$dir" |
| 10958 | found_so="$dir/$f" |
| 10959 | break |
| 10960 | fi |
| 10961 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10962 | fi |
| 10963 | fi |
| 10964 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10965 | if test "X$found_dir" = "X"; then |
| 10966 | if test -f "$dir/$libname.$acl_libext"; then |
| 10967 | found_dir="$dir" |
| 10968 | found_a="$dir/$libname.$acl_libext" |
| 10969 | fi |
| 10970 | fi |
| 10971 | if test "X$found_dir" != "X"; then |
| 10972 | if test -f "$dir/$libname.la"; then |
| 10973 | found_la="$dir/$libname.la" |
| 10974 | fi |
| 10975 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10976 | ;; |
| 10977 | esac |
| 10978 | if test "X$found_dir" != "X"; then |
| 10979 | break |
| 10980 | fi |
| 10981 | done |
| 10982 | fi |
| 10983 | if test "X$found_dir" != "X"; then |
| 10984 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10985 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10986 | if test "$enable_rpath" = no \ |
| 10987 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 10988 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10989 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10990 | else |
| 10991 | haveit= |
| 10992 | for x in $ltrpathdirs; do |
| 10993 | if test "X$x" = "X$found_dir"; then |
| 10994 | haveit=yes |
| 10995 | break |
| 10996 | fi |
| 10997 | done |
| 10998 | if test -z "$haveit"; then |
| 10999 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11000 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11001 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11002 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11003 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11004 | 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] | 11005 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11006 | haveit= |
| 11007 | for x in $rpathdirs; do |
| 11008 | if test "X$x" = "X$found_dir"; then |
| 11009 | haveit=yes |
| 11010 | break |
| 11011 | fi |
| 11012 | done |
| 11013 | if test -z "$haveit"; then |
| 11014 | rpathdirs="$rpathdirs $found_dir" |
| 11015 | fi |
| 11016 | else |
| 11017 | haveit= |
| 11018 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11019 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11020 | acl_save_prefix="$prefix" |
| 11021 | prefix="$acl_final_prefix" |
| 11022 | acl_save_exec_prefix="$exec_prefix" |
| 11023 | exec_prefix="$acl_final_exec_prefix" |
| 11024 | eval x=\"$x\" |
| 11025 | exec_prefix="$acl_save_exec_prefix" |
| 11026 | prefix="$acl_save_prefix" |
| 11027 | |
| 11028 | if test "X$x" = "X-L$found_dir"; then |
| 11029 | haveit=yes |
| 11030 | break |
| 11031 | fi |
| 11032 | done |
| 11033 | if test -z "$haveit"; then |
| 11034 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11035 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11036 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11037 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11038 | else |
| 11039 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11040 | fi |
| 11041 | fi |
| 11042 | fi |
| 11043 | fi |
| 11044 | else |
| 11045 | if test "X$found_a" != "X"; then |
| 11046 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11047 | else |
| 11048 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11049 | fi |
| 11050 | fi |
| 11051 | additional_includedir= |
| 11052 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11053 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11054 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11055 | if test "$name" = 'intl'; then |
| 11056 | LIBINTL_PREFIX="$basedir" |
| 11057 | fi |
| 11058 | additional_includedir="$basedir/include" |
| 11059 | ;; |
| 11060 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11061 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11062 | if test "$name" = 'intl'; then |
| 11063 | LIBINTL_PREFIX="$basedir" |
| 11064 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11065 | additional_includedir="$basedir/include" |
| 11066 | ;; |
| 11067 | esac |
| 11068 | if test "X$additional_includedir" != "X"; then |
| 11069 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11070 | haveit= |
| 11071 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11072 | if test -n "$GCC"; then |
| 11073 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11074 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11075 | esac |
| 11076 | fi |
| 11077 | fi |
| 11078 | if test -z "$haveit"; then |
| 11079 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11080 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11081 | acl_save_prefix="$prefix" |
| 11082 | prefix="$acl_final_prefix" |
| 11083 | acl_save_exec_prefix="$exec_prefix" |
| 11084 | exec_prefix="$acl_final_exec_prefix" |
| 11085 | eval x=\"$x\" |
| 11086 | exec_prefix="$acl_save_exec_prefix" |
| 11087 | prefix="$acl_save_prefix" |
| 11088 | |
| 11089 | if test "X$x" = "X-I$additional_includedir"; then |
| 11090 | haveit=yes |
| 11091 | break |
| 11092 | fi |
| 11093 | done |
| 11094 | if test -z "$haveit"; then |
| 11095 | if test -d "$additional_includedir"; then |
| 11096 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11097 | fi |
| 11098 | fi |
| 11099 | fi |
| 11100 | fi |
| 11101 | fi |
| 11102 | if test -n "$found_la"; then |
| 11103 | save_libdir="$libdir" |
| 11104 | case "$found_la" in |
| 11105 | */* | *\\*) . "$found_la" ;; |
| 11106 | *) . "./$found_la" ;; |
| 11107 | esac |
| 11108 | libdir="$save_libdir" |
| 11109 | for dep in $dependency_libs; do |
| 11110 | case "$dep" in |
| 11111 | -L*) |
| 11112 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11113 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11114 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11115 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11116 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11117 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11118 | if test -n "$GCC"; then |
| 11119 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11120 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11121 | esac |
| 11122 | fi |
| 11123 | fi |
| 11124 | if test -z "$haveit"; then |
| 11125 | haveit= |
| 11126 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11127 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11128 | acl_save_prefix="$prefix" |
| 11129 | prefix="$acl_final_prefix" |
| 11130 | acl_save_exec_prefix="$exec_prefix" |
| 11131 | exec_prefix="$acl_final_exec_prefix" |
| 11132 | eval x=\"$x\" |
| 11133 | exec_prefix="$acl_save_exec_prefix" |
| 11134 | prefix="$acl_save_prefix" |
| 11135 | |
| 11136 | if test "X$x" = "X-L$additional_libdir"; then |
| 11137 | haveit=yes |
| 11138 | break |
| 11139 | fi |
| 11140 | done |
| 11141 | if test -z "$haveit"; then |
| 11142 | if test -d "$additional_libdir"; then |
| 11143 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11144 | fi |
| 11145 | fi |
| 11146 | haveit= |
| 11147 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11148 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11149 | acl_save_prefix="$prefix" |
| 11150 | prefix="$acl_final_prefix" |
| 11151 | acl_save_exec_prefix="$exec_prefix" |
| 11152 | exec_prefix="$acl_final_exec_prefix" |
| 11153 | eval x=\"$x\" |
| 11154 | exec_prefix="$acl_save_exec_prefix" |
| 11155 | prefix="$acl_save_prefix" |
| 11156 | |
| 11157 | if test "X$x" = "X-L$additional_libdir"; then |
| 11158 | haveit=yes |
| 11159 | break |
| 11160 | fi |
| 11161 | done |
| 11162 | if test -z "$haveit"; then |
| 11163 | if test -d "$additional_libdir"; then |
| 11164 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11165 | fi |
| 11166 | fi |
| 11167 | fi |
| 11168 | fi |
| 11169 | ;; |
| 11170 | -R*) |
| 11171 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11172 | if test "$enable_rpath" != no; then |
| 11173 | haveit= |
| 11174 | for x in $rpathdirs; do |
| 11175 | if test "X$x" = "X$dir"; then |
| 11176 | haveit=yes |
| 11177 | break |
| 11178 | fi |
| 11179 | done |
| 11180 | if test -z "$haveit"; then |
| 11181 | rpathdirs="$rpathdirs $dir" |
| 11182 | fi |
| 11183 | haveit= |
| 11184 | for x in $ltrpathdirs; do |
| 11185 | if test "X$x" = "X$dir"; then |
| 11186 | haveit=yes |
| 11187 | break |
| 11188 | fi |
| 11189 | done |
| 11190 | if test -z "$haveit"; then |
| 11191 | ltrpathdirs="$ltrpathdirs $dir" |
| 11192 | fi |
| 11193 | fi |
| 11194 | ;; |
| 11195 | -l*) |
| 11196 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11197 | ;; |
| 11198 | *.la) |
| 11199 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11200 | ;; |
| 11201 | *) |
| 11202 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11203 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11204 | ;; |
| 11205 | esac |
| 11206 | done |
| 11207 | fi |
| 11208 | else |
| 11209 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11210 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11211 | fi |
| 11212 | fi |
| 11213 | fi |
| 11214 | done |
| 11215 | done |
| 11216 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11217 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11218 | alldirs= |
| 11219 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11220 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11221 | done |
| 11222 | acl_save_libdir="$libdir" |
| 11223 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11224 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11225 | libdir="$acl_save_libdir" |
| 11226 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11227 | else |
| 11228 | for found_dir in $rpathdirs; do |
| 11229 | acl_save_libdir="$libdir" |
| 11230 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11231 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11232 | libdir="$acl_save_libdir" |
| 11233 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11234 | done |
| 11235 | fi |
| 11236 | fi |
| 11237 | if test "X$ltrpathdirs" != "X"; then |
| 11238 | for found_dir in $ltrpathdirs; do |
| 11239 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11240 | done |
| 11241 | fi |
| 11242 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11243 | |
| 11244 | |
| 11245 | |
| 11246 | |
| 11247 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11248 | { $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] | 11249 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11250 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11251 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11252 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11253 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11254 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11255 | gt_save_LIBS="$LIBS" |
| 11256 | LIBS="$LIBS $LIBINTL" |
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 | 2b5901d | 2004-11-19 17:06:47 -0500 | [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 | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11262 | extern int _nl_msg_cat_cntr; |
| 11263 | extern |
| 11264 | #ifdef __cplusplus |
| 11265 | "C" |
| 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 | 2b5901d | 2004-11-19 17:06:47 -0500 | [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 | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11281 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11282 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11283 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11284 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11285 | rm -f core conftest.err conftest.$ac_objext \ |
| 11286 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11287 | 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] | 11288 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11290 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11291 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11292 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11293 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11294 | extern int _nl_msg_cat_cntr; |
| 11295 | extern |
| 11296 | #ifdef __cplusplus |
| 11297 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11298 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11299 | const char *_nl_expand_alias (const char *); |
| 11300 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11301 | int |
| 11302 | main () |
| 11303 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11304 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11305 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11306 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11307 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | ; |
| 11309 | return 0; |
| 11310 | } |
| 11311 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11312 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11313 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11314 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11315 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11316 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11317 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11318 | rm -f core conftest.err conftest.$ac_objext \ |
| 11319 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11320 | fi |
| 11321 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11322 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11323 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11324 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11326 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11327 | fi |
| 11328 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11329 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11330 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11331 | && test "$PACKAGE" != gettext-runtime \ |
| 11332 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11333 | gt_use_preinstalled_gnugettext=yes |
| 11334 | else |
| 11335 | LIBINTL= |
| 11336 | LTLIBINTL= |
| 11337 | INCINTL= |
| 11338 | fi |
| 11339 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11340 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11341 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11342 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11343 | fi |
| 11344 | fi |
| 11345 | |
| 11346 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11347 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11348 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11349 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11350 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11351 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11352 | fi |
| 11353 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11354 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11355 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11356 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11357 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11358 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11360 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11361 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11362 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11363 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11364 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11365 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11366 | fi |
| 11367 | fi |
| 11368 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11369 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11370 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11371 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11372 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11373 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11374 | else |
| 11375 | USE_NLS=no |
| 11376 | fi |
| 11377 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11378 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11379 | { $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] | 11380 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11382 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11383 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11384 | { $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] | 11385 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11386 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11387 | 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] | 11388 | gt_source="external libintl" |
| 11389 | else |
| 11390 | gt_source="libc" |
| 11391 | fi |
| 11392 | else |
| 11393 | gt_source="included intl directory" |
| 11394 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11396 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11397 | fi |
| 11398 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11399 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11401 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11402 | 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] | 11403 | { $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] | 11404 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11406 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11408 | for element in $INCINTL; do |
| 11409 | haveit= |
| 11410 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11411 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11412 | acl_save_prefix="$prefix" |
| 11413 | prefix="$acl_final_prefix" |
| 11414 | acl_save_exec_prefix="$exec_prefix" |
| 11415 | exec_prefix="$acl_final_exec_prefix" |
| 11416 | eval x=\"$x\" |
| 11417 | exec_prefix="$acl_save_exec_prefix" |
| 11418 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11419 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11420 | if test "X$x" = "X$element"; then |
| 11421 | haveit=yes |
| 11422 | break |
| 11423 | fi |
| 11424 | done |
| 11425 | if test -z "$haveit"; then |
| 11426 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11427 | fi |
| 11428 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11429 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11430 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11431 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11432 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11433 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11434 | |
| 11435 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11436 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11437 | |
| 11438 | fi |
| 11439 | |
| 11440 | POSUB=po |
| 11441 | fi |
| 11442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11443 | |
| 11444 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11445 | BUILD_INCLUDED_LIBINTL=yes |
| 11446 | fi |
| 11447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11448 | |
| 11449 | |
| 11450 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11451 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11452 | nls_cv_header_intl= |
| 11453 | nls_cv_header_libgt= |
| 11454 | |
| 11455 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11456 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11457 | |
| 11458 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11459 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11460 | |
| 11461 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11462 | |
| 11463 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11464 | INTLOBJS= |
| 11465 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11466 | INTLOBJS="\$(GETTOBJS)" |
| 11467 | fi |
| 11468 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11469 | |
| 11470 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11471 | |
| 11472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11473 | |
| 11474 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11475 | |
| 11476 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11477 | |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11482 | { $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] | 11483 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11484 | set x ${MAKE-make} |
| 11485 | 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] | 11486 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11487 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11488 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11489 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11490 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11491 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11492 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11493 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11494 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11495 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11496 | *@@@%%%=?*=@@@%%%*) |
| 11497 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11498 | *) |
| 11499 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11500 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11501 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11502 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11503 | 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] | 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11505 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11506 | SET_MAKE= |
| 11507 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11509 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | SET_MAKE="MAKE=${MAKE-make}" |
| 11511 | fi |
| 11512 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | { $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] | 11514 | $as_echo_n "checking for GNU make... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11515 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11516 | $as_echo_n "(cached) " >&6 |
| 11517 | else |
| 11518 | _cv_gnu_make_command='' ; |
| 11519 | for a in "$MAKE" make gmake gnumake ; do |
| 11520 | if test -z "$a" ; then continue ; fi ; |
| 11521 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11522 | _cv_gnu_make_command=$a ; |
| 11523 | break; |
| 11524 | fi |
| 11525 | done ; |
| 11526 | |
| 11527 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11528 | { $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] | 11529 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11530 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11531 | ifGNUmake='' ; |
| 11532 | ifNotGNUmake='#' ; |
| 11533 | else |
| 11534 | ifGNUmake='#' ; |
| 11535 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11537 | $as_echo "\"Not found\"" >&6; }; |
| 11538 | fi |
| 11539 | |
| 11540 | |
| 11541 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11542 | # Extract the first word of "ln", so it can be a program name with args. |
| 11543 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11544 | { $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] | 11545 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11546 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11547 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11548 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | case $LN in |
| 11550 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11551 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11552 | ;; |
| 11553 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11555 | for as_dir in $PATH |
| 11556 | do |
| 11557 | IFS=$as_save_IFS |
| 11558 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11559 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11560 | 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] | 11561 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11562 | $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] | 11563 | break 2 |
| 11564 | fi |
| 11565 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11566 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11567 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11568 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11569 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11570 | ;; |
| 11571 | esac |
| 11572 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11573 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11574 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11576 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11577 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11579 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11580 | fi |
| 11581 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11582 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11583 | { $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] | 11584 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11585 | LN_S=$as_ln_s |
| 11586 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11588 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11589 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11590 | { $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] | 11591 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11592 | fi |
| 11593 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | # Extract the first word of "mv", so it can be a program name with args. |
| 11595 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11596 | { $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] | 11597 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11598 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11599 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11600 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11601 | case $MV in |
| 11602 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11603 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11604 | ;; |
| 11605 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11607 | for as_dir in $PATH |
| 11608 | do |
| 11609 | IFS=$as_save_IFS |
| 11610 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11611 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11612 | 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] | 11613 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11614 | $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] | 11615 | break 2 |
| 11616 | fi |
| 11617 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11618 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11619 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11620 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11621 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11622 | ;; |
| 11623 | esac |
| 11624 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11625 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11626 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11628 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11629 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11631 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11632 | fi |
| 11633 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11634 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11635 | # Extract the first word of "cp", so it can be a program name with args. |
| 11636 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11637 | { $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] | 11638 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11639 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11640 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11641 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11642 | case $CP in |
| 11643 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11644 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11645 | ;; |
| 11646 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11648 | for as_dir in $PATH |
| 11649 | do |
| 11650 | IFS=$as_save_IFS |
| 11651 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11653 | 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] | 11654 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11655 | $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] | 11656 | break 2 |
| 11657 | fi |
| 11658 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11659 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11660 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11661 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11662 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11663 | ;; |
| 11664 | esac |
| 11665 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11666 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11667 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11669 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11670 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11672 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11673 | fi |
| 11674 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11675 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11676 | # Extract the first word of "rm", so it can be a program name with args. |
| 11677 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11678 | { $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] | 11679 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11680 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11681 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11682 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11683 | case $RM in |
| 11684 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11685 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11686 | ;; |
| 11687 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11689 | for as_dir in $PATH |
| 11690 | do |
| 11691 | IFS=$as_save_IFS |
| 11692 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11693 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11694 | 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] | 11695 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11696 | $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] | 11697 | break 2 |
| 11698 | fi |
| 11699 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11700 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11701 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11702 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11703 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11704 | ;; |
| 11705 | esac |
| 11706 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11708 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11710 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11711 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11713 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11714 | fi |
| 11715 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11716 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11717 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11718 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11719 | { $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] | 11720 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11721 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11722 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11723 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11724 | case $CHMOD in |
| 11725 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11726 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11727 | ;; |
| 11728 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11730 | for as_dir in $PATH |
| 11731 | do |
| 11732 | IFS=$as_save_IFS |
| 11733 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11734 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11735 | 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] | 11736 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11737 | $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] | 11738 | break 2 |
| 11739 | fi |
| 11740 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11741 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11742 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11743 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11744 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11745 | ;; |
| 11746 | esac |
| 11747 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11748 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11749 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11751 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11752 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11754 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11755 | fi |
| 11756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11757 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11758 | for ac_prog in gawk mawk nawk awk |
| 11759 | do |
| 11760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11761 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11762 | { $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] | 11763 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11764 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11765 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11766 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11767 | if test -n "$AWK"; then |
| 11768 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11769 | else |
| 11770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11771 | for as_dir in $PATH |
| 11772 | do |
| 11773 | IFS=$as_save_IFS |
| 11774 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11775 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11776 | 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] | 11777 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11778 | $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] | 11779 | break 2 |
| 11780 | fi |
| 11781 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11782 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11783 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11784 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11785 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11786 | fi |
| 11787 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11788 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11790 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11791 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11793 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11794 | fi |
| 11795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11796 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11797 | test -n "$AWK" && break |
| 11798 | done |
| 11799 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11801 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11802 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11803 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11804 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11805 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11806 | then ac_cv_path_EGREP="$GREP -E" |
| 11807 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11808 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11809 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11810 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11812 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11813 | do |
| 11814 | IFS=$as_save_IFS |
| 11815 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11816 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11817 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11818 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11819 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11820 | # 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] | 11821 | # Check for GNU $ac_path_EGREP |
| 11822 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11823 | *GNU*) |
| 11824 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11825 | *) |
| 11826 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11827 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | while : |
| 11829 | do |
| 11830 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11831 | mv "conftest.tmp" "conftest.in" |
| 11832 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11833 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11834 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11835 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11836 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11837 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11838 | # Best one so far, save it but keep looking for a better one |
| 11839 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11840 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11841 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11842 | # 10*(2^10) chars as input seems more than enough |
| 11843 | test $ac_count -gt 10 && break |
| 11844 | done |
| 11845 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11846 | esac |
| 11847 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11848 | $ac_path_EGREP_found && break 3 |
| 11849 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11850 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11851 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11852 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11853 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11854 | 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] | 11855 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11856 | else |
| 11857 | ac_cv_path_EGREP=$EGREP |
| 11858 | fi |
| 11859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11860 | fi |
| 11861 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11862 | { $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] | 11863 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11864 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11865 | |
| 11866 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11867 | # Extract the first word of "sed", so it can be a program name with args. |
| 11868 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11869 | { $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] | 11870 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11871 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11872 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11873 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11874 | case $SED in |
| 11875 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11876 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11877 | ;; |
| 11878 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11880 | for as_dir in $PATH |
| 11881 | do |
| 11882 | IFS=$as_save_IFS |
| 11883 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11884 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11885 | 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] | 11886 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11887 | $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] | 11888 | break 2 |
| 11889 | fi |
| 11890 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11891 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11892 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11893 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11894 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11895 | ;; |
| 11896 | esac |
| 11897 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11898 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11899 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11901 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11902 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11904 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11905 | fi |
| 11906 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11907 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11908 | # Extract the first word of "perl", so it can be a program name with args. |
| 11909 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11910 | { $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] | 11911 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11912 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11913 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11914 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11915 | case $PERL in |
| 11916 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11917 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11918 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11919 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11921 | for as_dir in $PATH |
| 11922 | do |
| 11923 | IFS=$as_save_IFS |
| 11924 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11925 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11926 | 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] | 11927 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11928 | $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] | 11929 | break 2 |
| 11930 | fi |
| 11931 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11932 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11933 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11934 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11935 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11936 | ;; |
| 11937 | esac |
| 11938 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11939 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11940 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11942 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11943 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11945 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11946 | fi |
| 11947 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11948 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11949 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11950 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11951 | { $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] | 11952 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11953 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11954 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11955 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11956 | case $LDCONFIG in |
| 11957 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11958 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11959 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11960 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11962 | for as_dir in $PATH |
| 11963 | do |
| 11964 | IFS=$as_save_IFS |
| 11965 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11967 | 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] | 11968 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11969 | $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] | 11970 | break 2 |
| 11971 | fi |
| 11972 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11973 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11974 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11975 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11976 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11977 | ;; |
| 11978 | esac |
| 11979 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11981 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11983 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11986 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11987 | fi |
| 11988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11989 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11990 | if test -n "$ac_tool_prefix"; then |
| 11991 | # 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] | 11992 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11993 | { $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] | 11994 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11995 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11996 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11997 | else |
| 11998 | if test -n "$AR"; then |
| 11999 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12002 | for as_dir in $PATH |
| 12003 | do |
| 12004 | IFS=$as_save_IFS |
| 12005 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12006 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12007 | 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] | 12008 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12009 | $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] | 12010 | break 2 |
| 12011 | fi |
| 12012 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12013 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12014 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12015 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12016 | fi |
| 12017 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12019 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12021 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12022 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12024 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12025 | fi |
| 12026 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12028 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12029 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12030 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12031 | # Extract the first word of "ar", so it can be a program name with args. |
| 12032 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12033 | { $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] | 12034 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12035 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12036 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12037 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12038 | if test -n "$ac_ct_AR"; then |
| 12039 | 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] | 12040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12042 | for as_dir in $PATH |
| 12043 | do |
| 12044 | IFS=$as_save_IFS |
| 12045 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12046 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12047 | 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] | 12048 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12049 | $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] | 12050 | break 2 |
| 12051 | fi |
| 12052 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12053 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12054 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12055 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12056 | fi |
| 12057 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12058 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12059 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12060 | { $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] | 12061 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12062 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12064 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12065 | fi |
| 12066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12067 | if test "x$ac_ct_AR" = x; then |
| 12068 | AR="ar" |
| 12069 | else |
| 12070 | case $cross_compiling:$ac_tool_warned in |
| 12071 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12072 | { $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] | 12073 | $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] | 12074 | ac_tool_warned=yes ;; |
| 12075 | esac |
| 12076 | AR=$ac_ct_AR |
| 12077 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12078 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12079 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12080 | fi |
| 12081 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12082 | if test -n "$ac_tool_prefix"; then |
| 12083 | # 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] | 12084 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12085 | { $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] | 12086 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12087 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12088 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12089 | else |
| 12090 | if test -n "$RANLIB"; then |
| 12091 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12094 | for as_dir in $PATH |
| 12095 | do |
| 12096 | IFS=$as_save_IFS |
| 12097 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12098 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12099 | 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] | 12100 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12101 | $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] | 12102 | break 2 |
| 12103 | fi |
| 12104 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12105 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12106 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12107 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12108 | fi |
| 12109 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12110 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12111 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12113 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12114 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12116 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12117 | fi |
| 12118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12121 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12122 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12123 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12124 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12125 | { $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] | 12126 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12127 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12128 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12129 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12130 | if test -n "$ac_ct_RANLIB"; then |
| 12131 | 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] | 12132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12134 | for as_dir in $PATH |
| 12135 | do |
| 12136 | IFS=$as_save_IFS |
| 12137 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12138 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12139 | 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] | 12140 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12141 | $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] | 12142 | break 2 |
| 12143 | fi |
| 12144 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12145 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12146 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12148 | fi |
| 12149 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12150 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12151 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12152 | { $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] | 12153 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12154 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12156 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12157 | fi |
| 12158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12159 | if test "x$ac_ct_RANLIB" = x; then |
| 12160 | RANLIB=":" |
| 12161 | else |
| 12162 | case $cross_compiling:$ac_tool_warned in |
| 12163 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12164 | { $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] | 12165 | $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] | 12166 | ac_tool_warned=yes ;; |
| 12167 | esac |
| 12168 | RANLIB=$ac_ct_RANLIB |
| 12169 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12170 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12171 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12172 | fi |
| 12173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12174 | if test -n "$ac_tool_prefix"; then |
| 12175 | # 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] | 12176 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12177 | { $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] | 12178 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12179 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12180 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12181 | else |
| 12182 | if test -n "$STRIP"; then |
| 12183 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12184 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12186 | for as_dir in $PATH |
| 12187 | do |
| 12188 | IFS=$as_save_IFS |
| 12189 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12190 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12191 | 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] | 12192 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12193 | $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] | 12194 | break 2 |
| 12195 | fi |
| 12196 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12197 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12198 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12200 | fi |
| 12201 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12202 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12203 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12205 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12206 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12208 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12209 | fi |
| 12210 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12212 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12213 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12214 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12215 | # Extract the first word of "strip", so it can be a program name with args. |
| 12216 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12217 | { $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] | 12218 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12219 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12220 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12221 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12222 | if test -n "$ac_ct_STRIP"; then |
| 12223 | 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] | 12224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12226 | for as_dir in $PATH |
| 12227 | do |
| 12228 | IFS=$as_save_IFS |
| 12229 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12230 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12231 | 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] | 12232 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12233 | $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] | 12234 | break 2 |
| 12235 | fi |
| 12236 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12237 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12238 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12240 | fi |
| 12241 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12242 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12243 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12244 | { $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] | 12245 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12246 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12248 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12249 | fi |
| 12250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12251 | if test "x$ac_ct_STRIP" = x; then |
| 12252 | STRIP=":" |
| 12253 | else |
| 12254 | case $cross_compiling:$ac_tool_warned in |
| 12255 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12256 | { $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] | 12257 | $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] | 12258 | ac_tool_warned=yes ;; |
| 12259 | esac |
| 12260 | STRIP=$ac_ct_STRIP |
| 12261 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12263 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12264 | fi |
| 12265 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12266 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12267 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12268 | { $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] | 12269 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12270 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12271 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12272 | else |
| 12273 | if test -n "$MAKEINFO"; then |
| 12274 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12275 | else |
| 12276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12277 | for as_dir in $PATH |
| 12278 | do |
| 12279 | IFS=$as_save_IFS |
| 12280 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12281 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12282 | 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] | 12283 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12284 | $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] | 12285 | break 2 |
| 12286 | fi |
| 12287 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12288 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12289 | IFS=$as_save_IFS |
| 12290 | |
| 12291 | fi |
| 12292 | fi |
| 12293 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12294 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12296 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12297 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12299 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12300 | fi |
| 12301 | |
| 12302 | |
| 12303 | if test "_$MAKEINFO" = "_"; then |
| 12304 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12305 | else |
| 12306 | case "$MAKEINFO" in |
| 12307 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12309 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12310 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12311 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12312 | ;; |
| 12313 | *) |
| 12314 | ;; |
| 12315 | esac |
| 12316 | fi |
| 12317 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12318 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12319 | # See if we need a separate native compiler. |
| 12320 | if test $cross_compiling = no; then |
| 12321 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12322 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12323 | else |
| 12324 | for ac_prog in gcc cc |
| 12325 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | # 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] | 12327 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12328 | { $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] | 12329 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12330 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12331 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12332 | else |
| 12333 | if test -n "$BUILD_CC"; then |
| 12334 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12335 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12337 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12338 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12339 | IFS=$as_save_IFS |
| 12340 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12341 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12342 | 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] | 12343 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12344 | $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] | 12345 | break 2 |
| 12346 | fi |
| 12347 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12348 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12349 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12350 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12351 | fi |
| 12352 | fi |
| 12353 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12354 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12356 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12357 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12359 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12360 | fi |
| 12361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12362 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12363 | test -n "$BUILD_CC" && break |
| 12364 | done |
| 12365 | |
| 12366 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 12367 | 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] | 12368 | do : |
| 12369 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12370 | 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] | 12371 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12372 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12373 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12374 | _ACEOF |
| 12375 | |
| 12376 | fi |
| 12377 | |
| 12378 | done |
| 12379 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12380 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12381 | do : |
| 12382 | 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] | 12383 | #if HAVE_SYS_TYPES_H |
| 12384 | #include <sys/types.h> |
| 12385 | #endif |
| 12386 | #if HAVE_SYS_SOCKET |
| 12387 | #include <sys/socket.h> |
| 12388 | #endif |
| 12389 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12390 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12391 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12392 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12393 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12394 | _ACEOF |
| 12395 | |
| 12396 | fi |
| 12397 | |
| 12398 | done |
| 12399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12401 | do : |
| 12402 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12403 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12404 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12405 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12406 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12407 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12408 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12409 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12410 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12411 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12412 | |
| 12413 | fi |
| 12414 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12415 | fi |
| 12416 | done |
| 12417 | |
| 12418 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12419 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12420 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12421 | 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] | 12422 | |
| 12423 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12424 | |
| 12425 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12426 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12427 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12428 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12429 | |
| 12430 | cat >>confdefs.h <<_ACEOF |
| 12431 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12432 | _ACEOF |
| 12433 | |
| 12434 | |
| 12435 | fi |
| 12436 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12437 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12438 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12439 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12440 | |
| 12441 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12442 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12444 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12445 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12446 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12447 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12448 | |
| 12449 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12450 | |
| 12451 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12452 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12453 | 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] | 12454 | #define _LARGEFILE64_SOURCE |
| 12455 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12456 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12457 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12458 | |
| 12459 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12460 | |
| 12461 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12462 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12463 | # The cast to long int works around a bug in the HP C Compiler |
| 12464 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12465 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12466 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12467 | { $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] | 12468 | $as_echo_n "checking size of short... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12469 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12470 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12471 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12472 | 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] | 12473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12474 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12475 | if test "$ac_cv_type_short" = yes; then |
| 12476 | { { $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] | 12477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12478 | as_fn_error 77 "cannot compute sizeof (short) |
| 12479 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12480 | else |
| 12481 | ac_cv_sizeof_short=0 |
| 12482 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12483 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12484 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12485 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12486 | { $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] | 12487 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12488 | |
| 12489 | |
| 12490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12491 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12492 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12493 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12494 | |
| 12495 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12496 | # The cast to long int works around a bug in the HP C Compiler |
| 12497 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12498 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12499 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12500 | { $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] | 12501 | $as_echo_n "checking size of int... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12502 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12503 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12504 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12505 | 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] | 12506 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12507 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12508 | if test "$ac_cv_type_int" = yes; then |
| 12509 | { { $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] | 12510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12511 | as_fn_error 77 "cannot compute sizeof (int) |
| 12512 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12513 | else |
| 12514 | ac_cv_sizeof_int=0 |
| 12515 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12517 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12518 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12519 | { $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] | 12520 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12521 | |
| 12522 | |
| 12523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12524 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12525 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12526 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12527 | |
| 12528 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12529 | # The cast to long int works around a bug in the HP C Compiler |
| 12530 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12531 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12532 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12533 | { $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] | 12534 | $as_echo_n "checking size of long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12535 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12536 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12537 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12538 | 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] | 12539 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12541 | if test "$ac_cv_type_long" = yes; then |
| 12542 | { { $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] | 12543 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12544 | as_fn_error 77 "cannot compute sizeof (long) |
| 12545 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12546 | else |
| 12547 | ac_cv_sizeof_long=0 |
| 12548 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12549 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12551 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12552 | { $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] | 12553 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12554 | |
| 12555 | |
| 12556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12557 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12558 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12560 | |
| 12561 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12562 | # The cast to long int works around a bug in the HP C Compiler |
| 12563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12565 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12566 | { $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] | 12567 | $as_echo_n "checking size of long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12568 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12569 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12570 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12571 | 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] | 12572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12573 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12574 | if test "$ac_cv_type_long_long" = yes; then |
| 12575 | { { $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] | 12576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12577 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12578 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12579 | else |
| 12580 | ac_cv_sizeof_long_long=0 |
| 12581 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12582 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12584 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12585 | { $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] | 12586 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12587 | |
| 12588 | |
| 12589 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12590 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12591 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12592 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12593 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12594 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12595 | # The cast to long int works around a bug in the HP C Compiler |
| 12596 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12597 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12598 | # This bug is HP SR number 8606223364. |
| 12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12600 | $as_echo_n "checking size of off_t... " >&6; } |
| 12601 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12602 | $as_echo_n "(cached) " >&6 |
| 12603 | else |
| 12604 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12605 | |
| 12606 | else |
| 12607 | if test "$ac_cv_type_off_t" = yes; then |
| 12608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12610 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12611 | See \`config.log' for more details" "$LINENO" 5; } |
| 12612 | else |
| 12613 | ac_cv_sizeof_off_t=0 |
| 12614 | fi |
| 12615 | fi |
| 12616 | |
| 12617 | fi |
| 12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12619 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12620 | |
| 12621 | |
| 12622 | |
| 12623 | cat >>confdefs.h <<_ACEOF |
| 12624 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12625 | _ACEOF |
| 12626 | |
| 12627 | |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame] | 12628 | # The cast to long int works around a bug in the HP C Compiler |
| 12629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12631 | # This bug is HP SR number 8606223364. |
| 12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 12633 | $as_echo_n "checking size of time_t... " >&6; } |
| 12634 | if ${ac_cv_sizeof_time_t+:} false; then : |
| 12635 | $as_echo_n "(cached) " >&6 |
| 12636 | else |
| 12637 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : |
| 12638 | |
| 12639 | else |
| 12640 | if test "$ac_cv_type_time_t" = yes; then |
| 12641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12643 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 12644 | See \`config.log' for more details" "$LINENO" 5; } |
| 12645 | else |
| 12646 | ac_cv_sizeof_time_t=0 |
| 12647 | fi |
| 12648 | fi |
| 12649 | |
| 12650 | fi |
| 12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 12652 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
| 12653 | |
| 12654 | |
| 12655 | |
| 12656 | cat >>confdefs.h <<_ACEOF |
| 12657 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 12658 | _ACEOF |
| 12659 | |
| 12660 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12661 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12662 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12663 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12664 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12665 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame] | 12666 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
| 12667 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12668 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12669 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12670 | |
| 12671 | |
| 12672 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12673 | { $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] | 12674 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12675 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12676 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12677 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12678 | ac_cv_c_bigendian=unknown |
| 12679 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12681 | /* end confdefs.h. */ |
| 12682 | #ifndef __APPLE_CC__ |
| 12683 | not a universal capable compiler |
| 12684 | #endif |
| 12685 | typedef int dummy; |
| 12686 | |
| 12687 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12688 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12689 | |
| 12690 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12691 | # there are at least two -arch flags with different values. |
| 12692 | ac_arch= |
| 12693 | ac_prev= |
| 12694 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12695 | if test -n "$ac_prev"; then |
| 12696 | case $ac_word in |
| 12697 | i?86 | x86_64 | ppc | ppc64) |
| 12698 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12699 | ac_arch=$ac_word |
| 12700 | else |
| 12701 | ac_cv_c_bigendian=universal |
| 12702 | break |
| 12703 | fi |
| 12704 | ;; |
| 12705 | esac |
| 12706 | ac_prev= |
| 12707 | elif test "x$ac_word" = "x-arch"; then |
| 12708 | ac_prev=arch |
| 12709 | fi |
| 12710 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12711 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12713 | if test $ac_cv_c_bigendian = unknown; then |
| 12714 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12716 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12717 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12718 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12720 | int |
| 12721 | main () |
| 12722 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12723 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12724 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12725 | && LITTLE_ENDIAN) |
| 12726 | bogus endian macros |
| 12727 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12728 | |
| 12729 | ; |
| 12730 | return 0; |
| 12731 | } |
| 12732 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12733 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12734 | # 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] | 12735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12736 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12737 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12738 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12739 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12740 | int |
| 12741 | main () |
| 12742 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12743 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12744 | not big endian |
| 12745 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12746 | |
| 12747 | ; |
| 12748 | return 0; |
| 12749 | } |
| 12750 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12751 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12752 | ac_cv_c_bigendian=yes |
| 12753 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12754 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12755 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12757 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12759 | fi |
| 12760 | if test $ac_cv_c_bigendian = unknown; then |
| 12761 | # 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] | 12762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12763 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12764 | #include <limits.h> |
| 12765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12766 | int |
| 12767 | main () |
| 12768 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12769 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12770 | bogus endian macros |
| 12771 | #endif |
| 12772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12773 | ; |
| 12774 | return 0; |
| 12775 | } |
| 12776 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12777 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12778 | # 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] | 12779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12780 | /* end confdefs.h. */ |
| 12781 | #include <limits.h> |
| 12782 | |
| 12783 | int |
| 12784 | main () |
| 12785 | { |
| 12786 | #ifndef _BIG_ENDIAN |
| 12787 | not big endian |
| 12788 | #endif |
| 12789 | |
| 12790 | ; |
| 12791 | return 0; |
| 12792 | } |
| 12793 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12794 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12795 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12796 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12797 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12798 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12800 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12802 | fi |
| 12803 | if test $ac_cv_c_bigendian = unknown; then |
| 12804 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12805 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12806 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12808 | /* end confdefs.h. */ |
| 12809 | short int ascii_mm[] = |
| 12810 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12811 | short int ascii_ii[] = |
| 12812 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12813 | int use_ascii (int i) { |
| 12814 | return ascii_mm[i] + ascii_ii[i]; |
| 12815 | } |
| 12816 | short int ebcdic_ii[] = |
| 12817 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12818 | short int ebcdic_mm[] = |
| 12819 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12820 | int use_ebcdic (int i) { |
| 12821 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12822 | } |
| 12823 | extern int foo; |
| 12824 | |
| 12825 | int |
| 12826 | main () |
| 12827 | { |
| 12828 | return use_ascii (foo) == use_ebcdic (foo); |
| 12829 | ; |
| 12830 | return 0; |
| 12831 | } |
| 12832 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12833 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12834 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12835 | ac_cv_c_bigendian=yes |
| 12836 | fi |
| 12837 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12838 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12839 | ac_cv_c_bigendian=no |
| 12840 | else |
| 12841 | # finding both strings is unlikely to happen, but who knows? |
| 12842 | ac_cv_c_bigendian=unknown |
| 12843 | fi |
| 12844 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12845 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12847 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12849 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12850 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12851 | int |
| 12852 | main () |
| 12853 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12854 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12855 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12856 | union |
| 12857 | { |
| 12858 | long int l; |
| 12859 | char c[sizeof (long int)]; |
| 12860 | } u; |
| 12861 | u.l = 1; |
| 12862 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12863 | |
| 12864 | ; |
| 12865 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12866 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12867 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12868 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12869 | ac_cv_c_bigendian=no |
| 12870 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12871 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12872 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12874 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12875 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12876 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12877 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12878 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12879 | { $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] | 12880 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12881 | case $ac_cv_c_bigendian in #( |
| 12882 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12883 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12884 | ;; #( |
| 12885 | no) |
| 12886 | ;; #( |
| 12887 | universal) |
| 12888 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12889 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12890 | |
| 12891 | ;; #( |
| 12892 | *) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12893 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12894 | 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] | 12895 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12896 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12897 | if test $cross_compiling = no; then |
| 12898 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12899 | else |
| 12900 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12901 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12902 | ASM_TYPES_HEADER=./asm_types.h |
| 12903 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 12904 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 12905 | > public_config.h |
| 12906 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 12907 | uniq tmp_config.$$ >> public_config.h |
| 12908 | else |
| 12909 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 12910 | fi |
| 12911 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 12912 | uniq tmp_config.$$ >> public_config.h |
| 12913 | else |
| 12914 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 12915 | fi |
| 12916 | rm -f tmp_config.$$ |
| 12917 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 12918 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12919 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12920 | do : |
| 12921 | 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] | 12922 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12923 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12924 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12925 | _ACEOF |
| 12926 | |
| 12927 | fi |
| 12928 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 12929 | done |
| 12930 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12931 | 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] | 12932 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12933 | |
| 12934 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12935 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12936 | _ACEOF |
| 12937 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12939 | fi |
| 12940 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12941 | { $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] | 12942 | $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] | 12943 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12944 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12945 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12947 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12948 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12949 | int |
| 12950 | main () |
| 12951 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12952 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | ; |
| 12954 | return 0; |
| 12955 | } |
| 12956 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12957 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12958 | e2fsprogs_cv_struct_st_flags=yes |
| 12959 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12960 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12961 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12963 | fi |
| 12964 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12965 | { $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] | 12966 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12967 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12968 | { $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] | 12969 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12970 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12971 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12972 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12974 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12975 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12976 | int |
| 12977 | main () |
| 12978 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12979 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12980 | ; |
| 12981 | return 0; |
| 12982 | } |
| 12983 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12984 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12985 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 12986 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12987 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12988 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12990 | fi |
| 12991 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12992 | { $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] | 12993 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12994 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12995 | |
| 12996 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12997 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12998 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12999 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13000 | 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] | 13001 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13002 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13003 | 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] | 13004 | |
| 13005 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13006 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13007 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13008 | |
| 13009 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13010 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13011 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13012 | { $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] | 13013 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13014 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13015 | $as_echo_n "(cached) " >&6 |
| 13016 | else |
| 13017 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13019 | /* end confdefs.h. */ |
| 13020 | |
| 13021 | /* Override any GCC internal prototype to avoid an error. |
| 13022 | Use char because int might match the return type of a GCC |
| 13023 | builtin and then its argument prototype would still apply. */ |
| 13024 | #ifdef __cplusplus |
| 13025 | extern "C" |
| 13026 | #endif |
| 13027 | char blkid_probe_all (); |
| 13028 | int |
| 13029 | main () |
| 13030 | { |
| 13031 | return blkid_probe_all (); |
| 13032 | ; |
| 13033 | return 0; |
| 13034 | } |
| 13035 | _ACEOF |
| 13036 | for ac_lib in '' blkid; do |
| 13037 | if test -z "$ac_lib"; then |
| 13038 | ac_res="none required" |
| 13039 | else |
| 13040 | ac_res=-l$ac_lib |
| 13041 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13042 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13043 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13044 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13045 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13046 | rm -f core conftest.err conftest.$ac_objext \ |
| 13047 | conftest$ac_exeext |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13048 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13049 | break |
| 13050 | fi |
| 13051 | done |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13052 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13053 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13054 | else |
| 13055 | ac_cv_search_blkid_probe_all=no |
| 13056 | fi |
| 13057 | rm conftest.$ac_ext |
| 13058 | LIBS=$ac_func_search_save_LIBS |
| 13059 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13060 | { $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] | 13061 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 13062 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13063 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13064 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13065 | |
| 13066 | fi |
| 13067 | |
| 13068 | fi |
Theodore Ts'o | 32179ce | 2016-06-07 00:14:35 -0400 | [diff] [blame] | 13069 | if test -n "$DLOPEN_LIB" ; then |
| 13070 | ac_cv_func_dlopen=yes |
| 13071 | fi |
| 13072 | for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen 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] | 13073 | do : |
| 13074 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13075 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13076 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13077 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13078 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13079 | _ACEOF |
| 13080 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13081 | fi |
| 13082 | done |
| 13083 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13084 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13085 | { $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] | 13086 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13087 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13088 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13089 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13090 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13091 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13093 | /* end confdefs.h. */ |
| 13094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13095 | /* Override any GCC internal prototype to avoid an error. |
| 13096 | Use char because int might match the return type of a GCC |
| 13097 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13098 | #ifdef __cplusplus |
| 13099 | extern "C" |
| 13100 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13101 | char socket (); |
| 13102 | int |
| 13103 | main () |
| 13104 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13105 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13106 | ; |
| 13107 | return 0; |
| 13108 | } |
| 13109 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13110 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13111 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13112 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13113 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13114 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13115 | rm -f core conftest.err conftest.$ac_objext \ |
| 13116 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13117 | LIBS=$ac_check_lib_save_LIBS |
| 13118 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13119 | { $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] | 13120 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13121 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13122 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13123 | fi |
| 13124 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13125 | |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
| 13127 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } |
| 13128 | if ${ac_cv_lib_magic_magic_file+:} false; then : |
| 13129 | $as_echo_n "(cached) " >&6 |
| 13130 | else |
| 13131 | ac_check_lib_save_LIBS=$LIBS |
| 13132 | LIBS="-lmagic $LIBS" |
| 13133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13134 | /* end confdefs.h. */ |
| 13135 | |
| 13136 | /* Override any GCC internal prototype to avoid an error. |
| 13137 | Use char because int might match the return type of a GCC |
| 13138 | builtin and then its argument prototype would still apply. */ |
| 13139 | #ifdef __cplusplus |
| 13140 | extern "C" |
| 13141 | #endif |
| 13142 | char magic_file (); |
| 13143 | int |
| 13144 | main () |
| 13145 | { |
| 13146 | return magic_file (); |
| 13147 | ; |
| 13148 | return 0; |
| 13149 | } |
| 13150 | _ACEOF |
| 13151 | if ac_fn_c_try_link "$LINENO"; then : |
| 13152 | ac_cv_lib_magic_magic_file=yes |
| 13153 | else |
| 13154 | ac_cv_lib_magic_magic_file=no |
| 13155 | fi |
| 13156 | rm -f core conftest.err conftest.$ac_objext \ |
| 13157 | conftest$ac_exeext conftest.$ac_ext |
| 13158 | LIBS=$ac_check_lib_save_LIBS |
| 13159 | fi |
| 13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
| 13161 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } |
| 13162 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : |
| 13163 | MAGIC_LIB=-lmagic |
| 13164 | for ac_header in magic.h |
| 13165 | do : |
| 13166 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
| 13167 | if test "x$ac_cv_header_magic_h" = xyes; then : |
| 13168 | cat >>confdefs.h <<_ACEOF |
| 13169 | #define HAVE_MAGIC_H 1 |
| 13170 | _ACEOF |
| 13171 | |
| 13172 | fi |
| 13173 | |
| 13174 | done |
| 13175 | |
| 13176 | fi |
| 13177 | |
Theodore Ts'o | 32179ce | 2016-06-07 00:14:35 -0400 | [diff] [blame] | 13178 | if test "$ac_cv_func_dlopen" = yes ; then |
Theodore Ts'o | d2e3c0d | 2014-09-21 01:25:58 -0400 | [diff] [blame] | 13179 | MAGIC_LIB=$DLOPEN_LIB |
| 13180 | fi |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13181 | |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 13182 | FUSE_CMT= |
| 13183 | FUSE_LIB= |
| 13184 | # Check whether --enable-fuse2fs was given. |
| 13185 | if test "${enable_fuse2fs+set}" = set; then : |
| 13186 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
| 13187 | then |
| 13188 | FUSE_CMT="#" |
| 13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
| 13190 | $as_echo "Disabling fuse2fs" >&6; } |
| 13191 | else |
| 13192 | for ac_header in pthread.h fuse.h |
| 13193 | do : |
| 13194 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13195 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13196 | #define FUSE_USE_VERSION 29 |
| 13197 | " |
| 13198 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13199 | cat >>confdefs.h <<_ACEOF |
| 13200 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13201 | _ACEOF |
| 13202 | |
| 13203 | else |
| 13204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13206 | as_fn_error $? "Cannot find fuse2fs headers. |
| 13207 | See \`config.log' for more details" "$LINENO" 5; } |
| 13208 | fi |
| 13209 | |
| 13210 | done |
| 13211 | |
| 13212 | |
| 13213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13214 | /* end confdefs.h. */ |
| 13215 | #define FUSE_USE_VERSION 29 |
| 13216 | #ifdef __linux__ |
| 13217 | #include <linux/fs.h> |
| 13218 | #include <linux/falloc.h> |
| 13219 | #include <linux/xattr.h> |
| 13220 | #endif |
| 13221 | |
| 13222 | int |
| 13223 | main () |
| 13224 | { |
| 13225 | |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
| 13229 | _ACEOF |
| 13230 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 13231 | |
| 13232 | else |
| 13233 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13234 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13235 | as_fn_error $? "Cannot find fuse2fs Linux headers. |
| 13236 | See \`config.log' for more details" "$LINENO" 5; } |
| 13237 | fi |
| 13238 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13239 | |
| 13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13241 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13242 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13243 | $as_echo_n "(cached) " >&6 |
| 13244 | else |
| 13245 | ac_check_lib_save_LIBS=$LIBS |
| 13246 | LIBS="-losxfuse $LIBS" |
| 13247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13248 | /* end confdefs.h. */ |
| 13249 | |
| 13250 | /* Override any GCC internal prototype to avoid an error. |
| 13251 | Use char because int might match the return type of a GCC |
| 13252 | builtin and then its argument prototype would still apply. */ |
| 13253 | #ifdef __cplusplus |
| 13254 | extern "C" |
| 13255 | #endif |
| 13256 | char fuse_main (); |
| 13257 | int |
| 13258 | main () |
| 13259 | { |
| 13260 | return fuse_main (); |
| 13261 | ; |
| 13262 | return 0; |
| 13263 | } |
| 13264 | _ACEOF |
| 13265 | if ac_fn_c_try_link "$LINENO"; then : |
| 13266 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13267 | else |
| 13268 | ac_cv_lib_osxfuse_fuse_main=no |
| 13269 | fi |
| 13270 | rm -f core conftest.err conftest.$ac_objext \ |
| 13271 | conftest$ac_exeext conftest.$ac_ext |
| 13272 | LIBS=$ac_check_lib_save_LIBS |
| 13273 | fi |
| 13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13275 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13276 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13277 | FUSE_LIB=-losxfuse |
| 13278 | else |
| 13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13280 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13281 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13282 | $as_echo_n "(cached) " >&6 |
| 13283 | else |
| 13284 | ac_check_lib_save_LIBS=$LIBS |
| 13285 | LIBS="-lfuse $LIBS" |
| 13286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13287 | /* end confdefs.h. */ |
| 13288 | |
| 13289 | /* Override any GCC internal prototype to avoid an error. |
| 13290 | Use char because int might match the return type of a GCC |
| 13291 | builtin and then its argument prototype would still apply. */ |
| 13292 | #ifdef __cplusplus |
| 13293 | extern "C" |
| 13294 | #endif |
| 13295 | char fuse_main (); |
| 13296 | int |
| 13297 | main () |
| 13298 | { |
| 13299 | return fuse_main (); |
| 13300 | ; |
| 13301 | return 0; |
| 13302 | } |
| 13303 | _ACEOF |
| 13304 | if ac_fn_c_try_link "$LINENO"; then : |
| 13305 | ac_cv_lib_fuse_fuse_main=yes |
| 13306 | else |
| 13307 | ac_cv_lib_fuse_fuse_main=no |
| 13308 | fi |
| 13309 | rm -f core conftest.err conftest.$ac_objext \ |
| 13310 | conftest$ac_exeext conftest.$ac_ext |
| 13311 | LIBS=$ac_check_lib_save_LIBS |
| 13312 | fi |
| 13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13314 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13315 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13316 | FUSE_LIB=-lfuse |
| 13317 | else |
| 13318 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13320 | as_fn_error $? "Cannot find fuse library. |
| 13321 | See \`config.log' for more details" "$LINENO" 5; } |
| 13322 | fi |
| 13323 | |
| 13324 | fi |
| 13325 | |
| 13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
| 13327 | $as_echo "Enabling fuse2fs" >&6; } |
| 13328 | fi |
| 13329 | |
| 13330 | else |
| 13331 | for ac_header in pthread.h fuse.h |
| 13332 | do : |
| 13333 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13334 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13335 | #define FUSE_USE_VERSION 29 |
| 13336 | #ifdef __linux__ |
| 13337 | # include <linux/fs.h> |
| 13338 | # include <linux/falloc.h> |
| 13339 | # include <linux/xattr.h> |
| 13340 | #endif |
| 13341 | " |
| 13342 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13343 | cat >>confdefs.h <<_ACEOF |
| 13344 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13345 | _ACEOF |
| 13346 | |
| 13347 | else |
| 13348 | FUSE_CMT="#" |
| 13349 | fi |
| 13350 | |
| 13351 | done |
| 13352 | |
| 13353 | if test -z "$FUSE_CMT" |
| 13354 | then |
| 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13356 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13357 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13358 | $as_echo_n "(cached) " >&6 |
| 13359 | else |
| 13360 | ac_check_lib_save_LIBS=$LIBS |
| 13361 | LIBS="-losxfuse $LIBS" |
| 13362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13363 | /* end confdefs.h. */ |
| 13364 | |
| 13365 | /* Override any GCC internal prototype to avoid an error. |
| 13366 | Use char because int might match the return type of a GCC |
| 13367 | builtin and then its argument prototype would still apply. */ |
| 13368 | #ifdef __cplusplus |
| 13369 | extern "C" |
| 13370 | #endif |
| 13371 | char fuse_main (); |
| 13372 | int |
| 13373 | main () |
| 13374 | { |
| 13375 | return fuse_main (); |
| 13376 | ; |
| 13377 | return 0; |
| 13378 | } |
| 13379 | _ACEOF |
| 13380 | if ac_fn_c_try_link "$LINENO"; then : |
| 13381 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13382 | else |
| 13383 | ac_cv_lib_osxfuse_fuse_main=no |
| 13384 | fi |
| 13385 | rm -f core conftest.err conftest.$ac_objext \ |
| 13386 | conftest$ac_exeext conftest.$ac_ext |
| 13387 | LIBS=$ac_check_lib_save_LIBS |
| 13388 | fi |
| 13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13390 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13391 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13392 | FUSE_LIB=-losxfuse |
| 13393 | else |
| 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13395 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13396 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13397 | $as_echo_n "(cached) " >&6 |
| 13398 | else |
| 13399 | ac_check_lib_save_LIBS=$LIBS |
| 13400 | LIBS="-lfuse $LIBS" |
| 13401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13402 | /* end confdefs.h. */ |
| 13403 | |
| 13404 | /* Override any GCC internal prototype to avoid an error. |
| 13405 | Use char because int might match the return type of a GCC |
| 13406 | builtin and then its argument prototype would still apply. */ |
| 13407 | #ifdef __cplusplus |
| 13408 | extern "C" |
| 13409 | #endif |
| 13410 | char fuse_main (); |
| 13411 | int |
| 13412 | main () |
| 13413 | { |
| 13414 | return fuse_main (); |
| 13415 | ; |
| 13416 | return 0; |
| 13417 | } |
| 13418 | _ACEOF |
| 13419 | if ac_fn_c_try_link "$LINENO"; then : |
| 13420 | ac_cv_lib_fuse_fuse_main=yes |
| 13421 | else |
| 13422 | ac_cv_lib_fuse_fuse_main=no |
| 13423 | fi |
| 13424 | rm -f core conftest.err conftest.$ac_objext \ |
| 13425 | conftest$ac_exeext conftest.$ac_ext |
| 13426 | LIBS=$ac_check_lib_save_LIBS |
| 13427 | fi |
| 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13429 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13430 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13431 | FUSE_LIB=-lfuse |
| 13432 | else |
| 13433 | FUSE_CMT="#" |
| 13434 | fi |
| 13435 | |
| 13436 | fi |
| 13437 | |
| 13438 | fi |
| 13439 | if test -z "$FUSE_CMT" |
| 13440 | then |
| 13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
| 13442 | $as_echo "Enabling fuse2fs by default." >&6; } |
| 13443 | fi |
| 13444 | |
| 13445 | fi |
| 13446 | |
| 13447 | |
| 13448 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13450 | $as_echo_n "checking for optreset... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13451 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13452 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13453 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13455 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13456 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13457 | |
| 13458 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13460 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13461 | ac_cv_have_optreset=yes |
| 13462 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13463 | ac_cv_have_optreset=no |
| 13464 | fi |
| 13465 | rm -f conftest* |
| 13466 | |
| 13467 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13468 | { $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] | 13469 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13470 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13471 | |
| 13472 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13473 | |
| 13474 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13475 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13476 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13477 | 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] | 13478 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13479 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13480 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13481 | { $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] | 13482 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13483 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13484 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13485 | else |
| 13486 | ac_check_lib_save_LIBS=$LIBS |
| 13487 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13489 | /* end confdefs.h. */ |
| 13490 | |
| 13491 | /* Override any GCC internal prototype to avoid an error. |
| 13492 | Use char because int might match the return type of a GCC |
| 13493 | builtin and then its argument prototype would still apply. */ |
| 13494 | #ifdef __cplusplus |
| 13495 | extern "C" |
| 13496 | #endif |
| 13497 | char sem_init (); |
| 13498 | int |
| 13499 | main () |
| 13500 | { |
| 13501 | return sem_init (); |
| 13502 | ; |
| 13503 | return 0; |
| 13504 | } |
| 13505 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13506 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13507 | ac_cv_lib_pthread_sem_init=yes |
| 13508 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13509 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13510 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13511 | rm -f core conftest.err conftest.$ac_objext \ |
| 13512 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13513 | LIBS=$ac_check_lib_save_LIBS |
| 13514 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13515 | { $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] | 13516 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13517 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13518 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13519 | |
| 13520 | SEM_INIT_LIB=-lpthread |
| 13521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13522 | { $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] | 13523 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13524 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13525 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13526 | else |
| 13527 | ac_check_lib_save_LIBS=$LIBS |
| 13528 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13530 | /* end confdefs.h. */ |
| 13531 | |
| 13532 | /* Override any GCC internal prototype to avoid an error. |
| 13533 | Use char because int might match the return type of a GCC |
| 13534 | builtin and then its argument prototype would still apply. */ |
| 13535 | #ifdef __cplusplus |
| 13536 | extern "C" |
| 13537 | #endif |
| 13538 | char sem_init (); |
| 13539 | int |
| 13540 | main () |
| 13541 | { |
| 13542 | return sem_init (); |
| 13543 | ; |
| 13544 | return 0; |
| 13545 | } |
| 13546 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13547 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13548 | ac_cv_lib_rt_sem_init=yes |
| 13549 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13550 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13551 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13552 | rm -f core conftest.err conftest.$ac_objext \ |
| 13553 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13554 | LIBS=$ac_check_lib_save_LIBS |
| 13555 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13556 | { $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] | 13557 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13558 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13559 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13560 | |
| 13561 | SEM_INIT_LIB=-lrt |
| 13562 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13563 | { $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] | 13564 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13565 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13566 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13567 | else |
| 13568 | ac_check_lib_save_LIBS=$LIBS |
| 13569 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13571 | /* end confdefs.h. */ |
| 13572 | |
| 13573 | /* Override any GCC internal prototype to avoid an error. |
| 13574 | Use char because int might match the return type of a GCC |
| 13575 | builtin and then its argument prototype would still apply. */ |
| 13576 | #ifdef __cplusplus |
| 13577 | extern "C" |
| 13578 | #endif |
| 13579 | char sem_init (); |
| 13580 | int |
| 13581 | main () |
| 13582 | { |
| 13583 | return sem_init (); |
| 13584 | ; |
| 13585 | return 0; |
| 13586 | } |
| 13587 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13588 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13589 | ac_cv_lib_posix4_sem_init=yes |
| 13590 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13591 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13592 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13593 | rm -f core conftest.err conftest.$ac_objext \ |
| 13594 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13595 | LIBS=$ac_check_lib_save_LIBS |
| 13596 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13597 | { $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] | 13598 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13599 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13600 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13601 | |
| 13602 | SEM_INIT_LIB=-lposix4 |
| 13603 | fi |
| 13604 | |
| 13605 | fi |
| 13606 | |
| 13607 | fi |
| 13608 | |
| 13609 | fi |
| 13610 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13611 | { $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] | 13612 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13613 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13614 | UNI_DIFF_OPTS=-u |
| 13615 | else |
| 13616 | UNI_DIFF_OPTS=-c |
| 13617 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13618 | { $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] | 13619 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13620 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13621 | case "$host_os" in |
| 13622 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13623 | |
| 13624 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13625 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13626 | ;; |
| 13627 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13628 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13629 | CYGWIN_CMT="#" |
| 13630 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13631 | case "$host_os" in |
| 13632 | linux*) |
| 13633 | LINUX_CMT= |
| 13634 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13635 | cygwin) |
| 13636 | CYGWIN_CMT= |
| 13637 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13638 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13639 | esac |
| 13640 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13641 | |
| 13642 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13643 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13644 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13645 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13646 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13647 | { $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] | 13648 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13649 | fi |
| 13650 | ;; |
| 13651 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13652 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13653 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13654 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13655 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13656 | { $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] | 13657 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13658 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13659 | { $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] | 13660 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13661 | mandir=/usr/share/man |
| 13662 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13663 | fi |
| 13664 | ;; |
| 13665 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13666 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13667 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13668 | root_prefix="$ac_default_prefix" |
| 13669 | else |
| 13670 | root_prefix="$prefix" |
| 13671 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13672 | root_bindir=$bindir |
| 13673 | root_sbindir=$sbindir |
| 13674 | root_libdir=$libdir |
| 13675 | root_sysconfdir=$sysconfdir |
| 13676 | else |
| 13677 | root_bindir='${root_prefix}/bin' |
| 13678 | root_sbindir='${root_prefix}/sbin' |
| 13679 | root_libdir='${root_prefix}/lib' |
| 13680 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13681 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13682 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13683 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13684 | { $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] | 13685 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13686 | fi |
| 13687 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13688 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13689 | { $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] | 13690 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13691 | fi |
| 13692 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13693 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13694 | { $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] | 13695 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13696 | fi |
| 13697 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13698 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13699 | { $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] | 13700 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13701 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13702 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13703 | |
| 13704 | |
| 13705 | |
| 13706 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13707 | |
| 13708 | # Check whether --with-multiarch was given. |
| 13709 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13710 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13711 | libdir=/usr/lib64 |
| 13712 | root_libdir=/lib64 |
| 13713 | else |
| 13714 | libdir=$libdir/$withval |
| 13715 | root_libdir=$root_libdir/$withval |
| 13716 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13717 | |
| 13718 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13720 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13721 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13722 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13723 | else |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13724 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13726 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13727 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13728 | int |
| 13729 | main () |
| 13730 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13731 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13732 | ; |
| 13733 | return 0; |
| 13734 | } |
| 13735 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13736 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13737 | ac_cv_e2fsprogs_use_static=yes |
| 13738 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13739 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13740 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13741 | rm -f core conftest.err conftest.$ac_objext \ |
| 13742 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13743 | LDFLAGS=$SAVE_LDFLAGS |
| 13744 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13745 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13746 | case "$host_os" in |
| 13747 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13748 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13749 | ;; |
| 13750 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13751 | { $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] | 13752 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13753 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13754 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13755 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13756 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13757 | case "$host_os" in |
| 13758 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13759 | { $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] | 13760 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13761 | |
| 13762 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13763 | |
| 13764 | ;; |
| 13765 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13766 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13767 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13768 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13769 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13770 | if test "$cross_compiling" = yes ; then |
| 13771 | DO_TEST_SUITE= |
| 13772 | else |
| 13773 | DO_TEST_SUITE=check |
| 13774 | fi |
| 13775 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13776 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13777 | if test -n "$CPPFLAGS" ; then |
| 13778 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13779 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13780 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13781 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13782 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13783 | if test -n "$WITH_DIET_LIBC" ; then |
| 13784 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13785 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13786 | |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 13787 | |
| 13788 | MKINSTALLDIRS= |
| 13789 | if test -n "$ac_aux_dir"; then |
| 13790 | case "$ac_aux_dir" in |
| 13791 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 13792 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 13793 | esac |
| 13794 | fi |
| 13795 | if test -z "$MKINSTALLDIRS"; then |
| 13796 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 13797 | fi |
| 13798 | |
| 13799 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13800 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13801 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13802 | BUILD_LDFLAGS="$LDFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13803 | fi |
| 13804 | |
| 13805 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13806 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
| 13807 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} |
| 13808 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 13809 | |
| 13810 | |
| 13811 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13812 | test -d lib || mkdir lib |
| 13813 | test -d include || mkdir include |
| 13814 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13815 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13816 | if test -z "$UUID_CMT" ; then |
| 13817 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ |
| 13818 | lib/uuid/uuid_types.h" |
| 13819 | fi |
| 13820 | if test -z "$BLKID_CMT" ; then |
| 13821 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ |
| 13822 | lib/blkid/blkid_types.h" |
| 13823 | fi |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13824 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13825 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13826 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13827 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | f34af41 | 2015-07-11 23:05:57 -0400 | [diff] [blame] | 13828 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13829 | 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] | 13830 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13831 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13832 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13833 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13834 | if test -d `dirname ${srcdir}/$i` ; then |
| 13835 | outlist="$outlist $i" |
| 13836 | fi |
| 13837 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13838 | ac_config_files="$ac_config_files $outlist" |
| 13839 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13840 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13841 | # This file is a shell script that caches the results of configure |
| 13842 | # 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] | 13843 | # scripts and configure runs, see configure's option --config-cache. |
| 13844 | # It is not useful on other systems. If it contains results you don't |
| 13845 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13846 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13847 | # config.status only pays attention to the cache file if you give it |
| 13848 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13849 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13850 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13851 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13852 | # following values. |
| 13853 | |
| 13854 | _ACEOF |
| 13855 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13856 | # The following way of writing the cache mishandles newlines in values, |
| 13857 | # 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] | 13858 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13859 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13860 | # 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] | 13861 | ( |
| 13862 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13863 | eval ac_val=\$$ac_var |
| 13864 | case $ac_val in #( |
| 13865 | *${as_nl}*) |
| 13866 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13867 | *_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] | 13868 | $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] | 13869 | esac |
| 13870 | case $ac_var in #( |
| 13871 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13872 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13873 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13874 | esac ;; |
| 13875 | esac |
| 13876 | done |
| 13877 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13879 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13880 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13881 | # `set' does not quote correctly, so add quotes: double-quote |
| 13882 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13883 | sed -n \ |
| 13884 | "s/'/'\\\\''/g; |
| 13885 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13886 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13887 | *) |
| 13888 | # `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] | 13889 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13890 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13891 | esac | |
| 13892 | sort |
| 13893 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13894 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13895 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13896 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13897 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13898 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13899 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13900 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13901 | :end' >>confcache |
| 13902 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13903 | if test -w "$cache_file"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13904 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13905 | { $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] | 13906 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13907 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13908 | cat confcache >"$cache_file" |
| 13909 | else |
| 13910 | case $cache_file in #( |
| 13911 | */* | ?:*) |
| 13912 | mv -f confcache "$cache_file"$$ && |
| 13913 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13914 | *) |
| 13915 | mv -f confcache "$cache_file" ;; |
| 13916 | esac |
| 13917 | fi |
| 13918 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13919 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13920 | { $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] | 13921 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13922 | fi |
| 13923 | fi |
| 13924 | rm -f confcache |
| 13925 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13926 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13927 | # Let make expand exec_prefix. |
| 13928 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13929 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13930 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13931 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13932 | ac_libobjs= |
| 13933 | ac_ltlibobjs= |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13934 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13935 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13936 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13937 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13938 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13939 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13940 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13941 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13942 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13943 | done |
| 13944 | LIBOBJS=$ac_libobjs |
| 13945 | |
| 13946 | LTLIBOBJS=$ac_ltlibobjs |
| 13947 | |
| 13948 | |
| 13949 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13950 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13951 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13952 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13953 | ac_clean_files_save=$ac_clean_files |
| 13954 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13956 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13957 | as_write_fail=0 |
| 13958 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | #! $SHELL |
| 13960 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13961 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13962 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13963 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13964 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13965 | debug=false |
| 13966 | ac_cs_recheck=false |
| 13967 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13968 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13969 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13970 | export SHELL |
| 13971 | _ASEOF |
| 13972 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13973 | ## -------------------- ## |
| 13974 | ## M4sh Initialization. ## |
| 13975 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13976 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13977 | # Be more Bourne compatible |
| 13978 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13979 | 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] | 13980 | emulate sh |
| 13981 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13982 | # 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] | 13983 | # is contrary to our usage. Disable this feature. |
| 13984 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13985 | setopt NO_GLOB_SUBST |
| 13986 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13987 | case `(set -o) 2>/dev/null` in #( |
| 13988 | *posix*) : |
| 13989 | set -o posix ;; #( |
| 13990 | *) : |
| 13991 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13992 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13993 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13994 | |
| 13995 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13996 | as_nl=' |
| 13997 | ' |
| 13998 | export as_nl |
| 13999 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14000 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14001 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14002 | 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] | 14003 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14004 | # but without wasting forks for bash or zsh. |
| 14005 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14006 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14007 | as_echo='print -r --' |
| 14008 | as_echo_n='print -rn --' |
| 14009 | 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] | 14010 | as_echo='printf %s\n' |
| 14011 | as_echo_n='printf %s' |
| 14012 | else |
| 14013 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14014 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14015 | as_echo_n='/usr/ucb/echo -n' |
| 14016 | else |
| 14017 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14018 | as_echo_n_body='eval |
| 14019 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14020 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14021 | *"$as_nl"*) |
| 14022 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14023 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14024 | esac; |
| 14025 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14026 | ' |
| 14027 | export as_echo_n_body |
| 14028 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14029 | fi |
| 14030 | export as_echo_body |
| 14031 | as_echo='sh -c $as_echo_body as_echo' |
| 14032 | fi |
| 14033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14034 | # The user is always right. |
| 14035 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14036 | PATH_SEPARATOR=: |
| 14037 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14038 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14039 | PATH_SEPARATOR=';' |
| 14040 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14041 | fi |
| 14042 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14043 | |
| 14044 | # IFS |
| 14045 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14046 | # there to prevent editors from complaining about space-tab. |
| 14047 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14048 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14049 | IFS=" "" $as_nl" |
| 14050 | |
| 14051 | # 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] | 14052 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14053 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14054 | *[\\/]* ) as_myself=$0 ;; |
| 14055 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14056 | for as_dir in $PATH |
| 14057 | do |
| 14058 | IFS=$as_save_IFS |
| 14059 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14060 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14061 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14062 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14064 | ;; |
| 14065 | esac |
| 14066 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14067 | # in which case we are not to be found in the path. |
| 14068 | if test "x$as_myself" = x; then |
| 14069 | as_myself=$0 |
| 14070 | fi |
| 14071 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14072 | $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] | 14073 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14074 | fi |
| 14075 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14076 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14077 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14078 | # suppresses any "Segmentation fault" message there. '((' could |
| 14079 | # trigger a bug in pdksh 5.2.14. |
| 14080 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14081 | do eval test x\${$as_var+set} = xset \ |
| 14082 | && ( (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] | 14083 | done |
| 14084 | PS1='$ ' |
| 14085 | PS2='> ' |
| 14086 | PS4='+ ' |
| 14087 | |
| 14088 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14089 | LC_ALL=C |
| 14090 | export LC_ALL |
| 14091 | LANGUAGE=C |
| 14092 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14093 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14094 | # CDPATH. |
| 14095 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14096 | |
| 14097 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14098 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14099 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14100 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14101 | # 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] | 14102 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14103 | as_fn_error () |
| 14104 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14105 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14106 | if test "$4"; then |
| 14107 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14108 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14109 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14110 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14111 | as_fn_exit $as_status |
| 14112 | } # as_fn_error |
| 14113 | |
| 14114 | |
| 14115 | # as_fn_set_status STATUS |
| 14116 | # ----------------------- |
| 14117 | # Set $? to STATUS, without forking. |
| 14118 | as_fn_set_status () |
| 14119 | { |
| 14120 | return $1 |
| 14121 | } # as_fn_set_status |
| 14122 | |
| 14123 | # as_fn_exit STATUS |
| 14124 | # ----------------- |
| 14125 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14126 | as_fn_exit () |
| 14127 | { |
| 14128 | set +e |
| 14129 | as_fn_set_status $1 |
| 14130 | exit $1 |
| 14131 | } # as_fn_exit |
| 14132 | |
| 14133 | # as_fn_unset VAR |
| 14134 | # --------------- |
| 14135 | # Portably unset VAR. |
| 14136 | as_fn_unset () |
| 14137 | { |
| 14138 | { eval $1=; unset $1;} |
| 14139 | } |
| 14140 | as_unset=as_fn_unset |
| 14141 | # as_fn_append VAR VALUE |
| 14142 | # ---------------------- |
| 14143 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14144 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14145 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14146 | # implementations. |
| 14147 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14148 | eval 'as_fn_append () |
| 14149 | { |
| 14150 | eval $1+=\$2 |
| 14151 | }' |
| 14152 | else |
| 14153 | as_fn_append () |
| 14154 | { |
| 14155 | eval $1=\$$1\$2 |
| 14156 | } |
| 14157 | fi # as_fn_append |
| 14158 | |
| 14159 | # as_fn_arith ARG... |
| 14160 | # ------------------ |
| 14161 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14162 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14163 | # must be portable across $(()) and expr. |
| 14164 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14165 | eval 'as_fn_arith () |
| 14166 | { |
| 14167 | as_val=$(( $* )) |
| 14168 | }' |
| 14169 | else |
| 14170 | as_fn_arith () |
| 14171 | { |
| 14172 | as_val=`expr "$@" || test $? -eq 1` |
| 14173 | } |
| 14174 | fi # as_fn_arith |
| 14175 | |
| 14176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14177 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14178 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14179 | as_expr=expr |
| 14180 | else |
| 14181 | as_expr=false |
| 14182 | fi |
| 14183 | |
| 14184 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14185 | as_basename=basename |
| 14186 | else |
| 14187 | as_basename=false |
| 14188 | fi |
| 14189 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14190 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14191 | as_dirname=dirname |
| 14192 | else |
| 14193 | as_dirname=false |
| 14194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14196 | as_me=`$as_basename -- "$0" || |
| 14197 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14198 | X"$0" : 'X\(//\)$' \| \ |
| 14199 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14200 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14201 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14202 | s//\1/ |
| 14203 | q |
| 14204 | } |
| 14205 | /^X\/\(\/\/\)$/{ |
| 14206 | s//\1/ |
| 14207 | q |
| 14208 | } |
| 14209 | /^X\/\(\/\).*/{ |
| 14210 | s//\1/ |
| 14211 | q |
| 14212 | } |
| 14213 | s/.*/./; q'` |
| 14214 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14215 | # Avoid depending upon Character Ranges. |
| 14216 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14217 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14218 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14219 | as_cr_digits='0123456789' |
| 14220 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14221 | |
| 14222 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14223 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14224 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14225 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14226 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14227 | xy) ECHO_C='\c';; |
| 14228 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14229 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14230 | esac;; |
| 14231 | *) |
| 14232 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14233 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14234 | |
| 14235 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14236 | if test -d conf$$.dir; then |
| 14237 | rm -f conf$$.dir/conf$$.file |
| 14238 | else |
| 14239 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14240 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14241 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14242 | if (echo >conf$$.file) 2>/dev/null; then |
| 14243 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14244 | as_ln_s='ln -s' |
| 14245 | # ... but there are two gotchas: |
| 14246 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14247 | # 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] | 14248 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14249 | 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] | 14250 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14251 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14252 | as_ln_s=ln |
| 14253 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14254 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14255 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14256 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14257 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14259 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14260 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14261 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14262 | |
| 14263 | # as_fn_mkdir_p |
| 14264 | # ------------- |
| 14265 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14266 | as_fn_mkdir_p () |
| 14267 | { |
| 14268 | |
| 14269 | case $as_dir in #( |
| 14270 | -*) as_dir=./$as_dir;; |
| 14271 | esac |
| 14272 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14273 | as_dirs= |
| 14274 | while :; do |
| 14275 | case $as_dir in #( |
| 14276 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14277 | *) as_qdir=$as_dir;; |
| 14278 | esac |
| 14279 | as_dirs="'$as_qdir' $as_dirs" |
| 14280 | as_dir=`$as_dirname -- "$as_dir" || |
| 14281 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14282 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14283 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14284 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14285 | $as_echo X"$as_dir" | |
| 14286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14287 | s//\1/ |
| 14288 | q |
| 14289 | } |
| 14290 | /^X\(\/\/\)[^/].*/{ |
| 14291 | s//\1/ |
| 14292 | q |
| 14293 | } |
| 14294 | /^X\(\/\/\)$/{ |
| 14295 | s//\1/ |
| 14296 | q |
| 14297 | } |
| 14298 | /^X\(\/\).*/{ |
| 14299 | s//\1/ |
| 14300 | q |
| 14301 | } |
| 14302 | s/.*/./; q'` |
| 14303 | test -d "$as_dir" && break |
| 14304 | done |
| 14305 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14306 | } || 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] | 14307 | |
| 14308 | |
| 14309 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14310 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14311 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14312 | else |
| 14313 | test -d ./-p && rmdir ./-p |
| 14314 | as_mkdir_p=false |
| 14315 | fi |
| 14316 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14317 | |
| 14318 | # as_fn_executable_p FILE |
| 14319 | # ----------------------- |
| 14320 | # Test if FILE is an executable regular file. |
| 14321 | as_fn_executable_p () |
| 14322 | { |
| 14323 | test -f "$1" && test -x "$1" |
| 14324 | } # as_fn_executable_p |
| 14325 | as_test_x='test -x' |
| 14326 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14327 | |
| 14328 | # Sed expression to map a string onto a valid CPP name. |
| 14329 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14330 | |
| 14331 | # Sed expression to map a string onto a valid variable name. |
| 14332 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14333 | |
| 14334 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14335 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14336 | ## ----------------------------------- ## |
| 14337 | ## Main body of $CONFIG_STATUS script. ## |
| 14338 | ## ----------------------------------- ## |
| 14339 | _ASEOF |
| 14340 | 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] | 14341 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14343 | # 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] | 14344 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14345 | # values after options handling. |
| 14346 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14347 | This file was extended by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14348 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14349 | |
| 14350 | CONFIG_FILES = $CONFIG_FILES |
| 14351 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14352 | CONFIG_LINKS = $CONFIG_LINKS |
| 14353 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14354 | $ $0 $@ |
| 14355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14356 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14357 | " |
| 14358 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14359 | _ACEOF |
| 14360 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14361 | case $ac_config_files in *" |
| 14362 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14363 | esac |
| 14364 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14365 | case $ac_config_headers in *" |
| 14366 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14367 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14368 | |
| 14369 | |
| 14370 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14371 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14372 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14373 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14374 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14376 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14377 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14378 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14379 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14380 | \`$as_me' instantiates files and other configuration actions |
| 14381 | from templates according to the current configuration. Unless the files |
| 14382 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14383 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14384 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14385 | |
| 14386 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14387 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14388 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14389 | -q, --quiet, --silent |
| 14390 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14391 | -d, --debug don't remove temporary files |
| 14392 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14393 | --file=FILE[:TEMPLATE] |
| 14394 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14395 | --header=FILE[:TEMPLATE] |
| 14396 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14397 | |
| 14398 | Configuration files: |
| 14399 | $config_files |
| 14400 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14401 | Configuration headers: |
| 14402 | $config_headers |
| 14403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | Configuration commands: |
| 14405 | $config_commands |
| 14406 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14407 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14408 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14409 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14411 | 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] | 14412 | ac_cs_version="\\ |
| 14413 | config.status |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14414 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14415 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14416 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14417 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | This config.status script is free software; the Free Software Foundation |
| 14419 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14420 | |
| 14421 | ac_pwd='$ac_pwd' |
| 14422 | srcdir='$srcdir' |
| 14423 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14424 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14425 | AWK='$AWK' |
| 14426 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14427 | _ACEOF |
| 14428 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14429 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14430 | # 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] | 14431 | ac_need_defaults=: |
| 14432 | while test $# != 0 |
| 14433 | do |
| 14434 | case $1 in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14435 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14436 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14437 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14438 | ac_shift=: |
| 14439 | ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14440 | --*=) |
| 14441 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14442 | ac_optarg= |
| 14443 | ac_shift=: |
| 14444 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14445 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14446 | ac_option=$1 |
| 14447 | ac_optarg=$2 |
| 14448 | ac_shift=shift |
| 14449 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14450 | esac |
| 14451 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14452 | case $ac_option in |
| 14453 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14454 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14455 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14456 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14457 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14458 | --config | --confi | --conf | --con | --co | --c ) |
| 14459 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14460 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14461 | debug=: ;; |
| 14462 | --file | --fil | --fi | --f ) |
| 14463 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14464 | case $ac_optarg in |
| 14465 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14466 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14467 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14468 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14469 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14470 | --header | --heade | --head | --hea ) |
| 14471 | $ac_shift |
| 14472 | case $ac_optarg in |
| 14473 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14474 | esac |
| 14475 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14476 | ac_need_defaults=false;; |
| 14477 | --he | --h) |
| 14478 | # Conflict between --help and --header |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14479 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14480 | Try \`$0 --help' for more information.";; |
| 14481 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14482 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14483 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14484 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14485 | ac_cs_silent=: ;; |
| 14486 | |
| 14487 | # This is an error. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14488 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14489 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14490 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14491 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14492 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14493 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14494 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14495 | shift |
| 14496 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14498 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14500 | if $ac_cs_silent; then |
| 14501 | exec 6>/dev/null |
| 14502 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14503 | fi |
| 14504 | |
| 14505 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14506 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14507 | if \$ac_cs_recheck; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14508 | 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] | 14509 | shift |
| 14510 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14511 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14512 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14513 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14514 | fi |
| 14515 | |
| 14516 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14518 | exec 5>>config.log |
| 14519 | { |
| 14520 | echo |
| 14521 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14522 | ## Running $as_me. ## |
| 14523 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14524 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14525 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14527 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14528 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14530 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14531 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14532 | # 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] | 14533 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14534 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14535 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14536 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14537 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14538 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14539 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14540 | _ACEOF |
| 14541 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14543 | |
| 14544 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14545 | for ac_config_target in $ac_config_targets |
| 14546 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14547 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14548 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14549 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14550 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14551 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14552 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14553 | esac |
| 14554 | done |
| 14555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | # If the user did not use the arguments to specify the items to instantiate, |
| 14558 | # then the envvar interface is used. Set only those that are not. |
| 14559 | # We use the long form for the default assignment because of an extremely |
| 14560 | # bizarre bug on SunOS 4.1.3. |
| 14561 | if $ac_need_defaults; then |
| 14562 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14563 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14564 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14565 | fi |
| 14566 | |
| 14567 | # 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] | 14568 | # 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] | 14569 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14570 | # Hook for its removal unless debugging. |
| 14571 | # Note that there is a small window in which the directory will not be cleaned: |
| 14572 | # 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] | 14573 | $debug || |
| 14574 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14575 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14576 | trap 'exit_status=$? |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14577 | : "${ac_tmp:=$tmp}" |
| 14578 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14579 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14580 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14581 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14582 | # Create a (secure) tmp directory for tmp files. |
| 14583 | |
| 14584 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14586 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14587 | } || |
| 14588 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14589 | tmp=./conf$$-$RANDOM |
| 14590 | (umask 077 && mkdir "$tmp") |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14591 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14592 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14593 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14594 | # Set up the scripts for CONFIG_FILES section. |
| 14595 | # No need to generate them if there are no CONFIG_FILES. |
| 14596 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14597 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14598 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14599 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14600 | ac_cs_awk_getline=: |
| 14601 | ac_cs_awk_pipe_init= |
| 14602 | ac_cs_awk_read_file=' |
| 14603 | while ((getline aline < (F[key])) > 0) |
| 14604 | print(aline) |
| 14605 | close(F[key])' |
| 14606 | ac_cs_awk_pipe_fini= |
| 14607 | else |
| 14608 | ac_cs_awk_getline=false |
| 14609 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14610 | ac_cs_awk_read_file=' |
| 14611 | print "|#_!!_#|" |
| 14612 | print "cat " F[key] " &&" |
| 14613 | '$ac_cs_awk_pipe_init |
| 14614 | # The final `:' finishes the AND list. |
| 14615 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14616 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14617 | ac_cr=`echo X | tr X '\015'` |
| 14618 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14619 | # But we know of no other shell where ac_cr would be empty at this |
| 14620 | # point, so we can use a bashism as a fallback. |
| 14621 | if test "x$ac_cr" = x; then |
| 14622 | eval ac_cr=\$\'\\r\' |
| 14623 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14624 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14625 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14626 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14627 | else |
| 14628 | ac_cs_awk_cr=$ac_cr |
| 14629 | fi |
| 14630 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14631 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14632 | _ACEOF |
| 14633 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14634 | # Create commands to substitute file output variables. |
| 14635 | { |
| 14636 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14637 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14638 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14639 | echo "_ACAWK" && |
| 14640 | echo "_ACEOF" |
| 14641 | } >conf$$files.sh && |
| 14642 | . ./conf$$files.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14643 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14644 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14645 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14646 | { |
| 14647 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14648 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14649 | echo "_ACEOF" |
| 14650 | } >conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14651 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14652 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14653 | ac_delim='%!_!# ' |
| 14654 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14655 | . ./conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14656 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14657 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14658 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14659 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14660 | break |
| 14661 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14662 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14663 | else |
| 14664 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14665 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14666 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14667 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14668 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14670 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14671 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14672 | sed -n ' |
| 14673 | h |
| 14674 | s/^/S["/; s/!.*/"]=/ |
| 14675 | p |
| 14676 | g |
| 14677 | s/^[^!]*!// |
| 14678 | :repl |
| 14679 | t repl |
| 14680 | s/'"$ac_delim"'$// |
| 14681 | t delim |
| 14682 | :nl |
| 14683 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14684 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14685 | t more1 |
| 14686 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14687 | p |
| 14688 | n |
| 14689 | b repl |
| 14690 | :more1 |
| 14691 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14692 | p |
| 14693 | g |
| 14694 | s/.\{148\}// |
| 14695 | t nl |
| 14696 | :delim |
| 14697 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14698 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14699 | t more2 |
| 14700 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14701 | p |
| 14702 | b |
| 14703 | :more2 |
| 14704 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14705 | p |
| 14706 | g |
| 14707 | s/.\{148\}// |
| 14708 | t delim |
| 14709 | ' <conf$$subs.awk | sed ' |
| 14710 | /^[^""]/{ |
| 14711 | N |
| 14712 | s/\n// |
| 14713 | } |
| 14714 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14715 | rm -f conf$$subs.awk |
| 14716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14717 | _ACAWK |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14718 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14719 | for (key in S) S_is_set[key] = 1 |
| 14720 | FS = "" |
| 14721 | \$ac_cs_awk_pipe_init |
| 14722 | } |
| 14723 | { |
| 14724 | line = $ 0 |
| 14725 | nfields = split(line, field, "@") |
| 14726 | substed = 0 |
| 14727 | len = length(field[1]) |
| 14728 | for (i = 2; i < nfields; i++) { |
| 14729 | key = field[i] |
| 14730 | keylen = length(key) |
| 14731 | if (S_is_set[key]) { |
| 14732 | value = S[key] |
| 14733 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14734 | len += length(value) + length(field[++i]) |
| 14735 | substed = 1 |
| 14736 | } else |
| 14737 | len += 1 + keylen |
| 14738 | } |
| 14739 | if (nfields == 3 && !substed) { |
| 14740 | key = field[2] |
| 14741 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14742 | \$ac_cs_awk_read_file |
| 14743 | next |
| 14744 | } |
| 14745 | } |
| 14746 | print line |
| 14747 | } |
| 14748 | \$ac_cs_awk_pipe_fini |
| 14749 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14750 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14751 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14752 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14753 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14754 | else |
| 14755 | cat |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14756 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14757 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14758 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14759 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14760 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14761 | # ${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] | 14762 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14763 | # (actually we leave an empty line to preserve line numbers). |
| 14764 | if test "x$srcdir" = x.; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14765 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14766 | h |
| 14767 | s/// |
| 14768 | s/^/:/ |
| 14769 | s/[ ]*$/:/ |
| 14770 | s/:\$(srcdir):/:/g |
| 14771 | s/:\${srcdir}:/:/g |
| 14772 | s/:@srcdir@:/:/g |
| 14773 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14774 | s/:*$// |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14775 | x |
| 14776 | s/\(=[ ]*\).*/\1/ |
| 14777 | G |
| 14778 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14779 | s/^[^=]*=[ ]*$// |
| 14780 | }' |
| 14781 | fi |
| 14782 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14783 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14784 | fi # test -n "$CONFIG_FILES" |
| 14785 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14786 | # Set up the scripts for CONFIG_HEADERS section. |
| 14787 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14788 | # This happens for instance with `./config.status Makefile'. |
| 14789 | if test -n "$CONFIG_HEADERS"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14790 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14791 | BEGIN { |
| 14792 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14793 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14794 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14795 | # here-document in config.status, that substitutes the proper values into |
| 14796 | # config.h.in to produce config.h. |
| 14797 | |
| 14798 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14799 | # handling of long lines. |
| 14800 | ac_delim='%!_!# ' |
| 14801 | for ac_last_try in false false :; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14802 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14803 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14804 | break |
| 14805 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14806 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14807 | else |
| 14808 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14809 | fi |
| 14810 | done |
| 14811 | |
| 14812 | # For the awk script, D is an array of macro values keyed by name, |
| 14813 | # likewise P contains macro parameters if any. Preserve backslash |
| 14814 | # newline sequences. |
| 14815 | |
| 14816 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14817 | sed -n ' |
| 14818 | s/.\{148\}/&'"$ac_delim"'/g |
| 14819 | t rset |
| 14820 | :rset |
| 14821 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14822 | t def |
| 14823 | d |
| 14824 | :def |
| 14825 | s/\\$// |
| 14826 | t bsnl |
| 14827 | s/["\\]/\\&/g |
| 14828 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14829 | D["\1"]=" \3"/p |
| 14830 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14831 | d |
| 14832 | :bsnl |
| 14833 | s/["\\]/\\&/g |
| 14834 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14835 | D["\1"]=" \3\\\\\\n"\\/p |
| 14836 | t cont |
| 14837 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14838 | t cont |
| 14839 | d |
| 14840 | :cont |
| 14841 | n |
| 14842 | s/.\{148\}/&'"$ac_delim"'/g |
| 14843 | t clear |
| 14844 | :clear |
| 14845 | s/\\$// |
| 14846 | t bsnlc |
| 14847 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14848 | d |
| 14849 | :bsnlc |
| 14850 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14851 | b cont |
| 14852 | ' <confdefs.h | sed ' |
| 14853 | s/'"$ac_delim"'/"\\\ |
| 14854 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14855 | |
| 14856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14857 | for (key in D) D_is_set[key] = 1 |
| 14858 | FS = "" |
| 14859 | } |
| 14860 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14861 | line = \$ 0 |
| 14862 | split(line, arg, " ") |
| 14863 | if (arg[1] == "#") { |
| 14864 | defundef = arg[2] |
| 14865 | mac1 = arg[3] |
| 14866 | } else { |
| 14867 | defundef = substr(arg[1], 2) |
| 14868 | mac1 = arg[2] |
| 14869 | } |
| 14870 | split(mac1, mac2, "(") #) |
| 14871 | macro = mac2[1] |
| 14872 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14873 | if (D_is_set[macro]) { |
| 14874 | # Preserve the white space surrounding the "#". |
| 14875 | print prefix "define", macro P[macro] D[macro] |
| 14876 | next |
| 14877 | } else { |
| 14878 | # Replace #undef with comments. This is necessary, for example, |
| 14879 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14880 | # on some systems where configure will not decide to define it. |
| 14881 | if (defundef == "undef") { |
| 14882 | print "/*", prefix defundef, macro, "*/" |
| 14883 | next |
| 14884 | } |
| 14885 | } |
| 14886 | } |
| 14887 | { print } |
| 14888 | _ACAWK |
| 14889 | _ACEOF |
| 14890 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14891 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14892 | fi # test -n "$CONFIG_HEADERS" |
| 14893 | |
| 14894 | |
| 14895 | 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] | 14896 | shift |
| 14897 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14898 | do |
| 14899 | case $ac_tag in |
| 14900 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14901 | esac |
| 14902 | case $ac_mode$ac_tag in |
| 14903 | :[FHL]*:*);; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14904 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14905 | :[FH]-) ac_tag=-:-;; |
| 14906 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14907 | esac |
| 14908 | ac_save_IFS=$IFS |
| 14909 | IFS=: |
| 14910 | set x $ac_tag |
| 14911 | IFS=$ac_save_IFS |
| 14912 | shift |
| 14913 | ac_file=$1 |
| 14914 | shift |
| 14915 | |
| 14916 | case $ac_mode in |
| 14917 | :L) ac_source=$1;; |
| 14918 | :[FH]) |
| 14919 | ac_file_inputs= |
| 14920 | for ac_f |
| 14921 | do |
| 14922 | case $ac_f in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14923 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14924 | *) # Look for the file first in the build tree, then in the source tree |
| 14925 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14926 | # because $ac_f cannot contain `:'. |
| 14927 | test -f "$ac_f" || |
| 14928 | case $ac_f in |
| 14929 | [\\/$]*) false;; |
| 14930 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14931 | esac || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14932 | 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] | 14933 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14934 | 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] | 14935 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14936 | done |
| 14937 | |
| 14938 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14939 | # use $as_me), people would be surprised to read: |
| 14940 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14941 | configure_input='Generated from '` |
| 14942 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14943 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14944 | if test x"$ac_file" != x-; then |
| 14945 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14947 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14948 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14949 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14950 | case $configure_input in #( |
| 14951 | *\&* | *\|* | *\\* ) |
| 14952 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14953 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14954 | *) ac_sed_conf_input=$configure_input;; |
| 14955 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14956 | |
| 14957 | case $ac_tag in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14958 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14959 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14960 | esac |
| 14961 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14962 | esac |
| 14963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14964 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14965 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14966 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14967 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14968 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14969 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14970 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14971 | s//\1/ |
| 14972 | q |
| 14973 | } |
| 14974 | /^X\(\/\/\)[^/].*/{ |
| 14975 | s//\1/ |
| 14976 | q |
| 14977 | } |
| 14978 | /^X\(\/\/\)$/{ |
| 14979 | s//\1/ |
| 14980 | q |
| 14981 | } |
| 14982 | /^X\(\/\).*/{ |
| 14983 | s//\1/ |
| 14984 | q |
| 14985 | } |
| 14986 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14987 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14988 | ac_builddir=. |
| 14989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14990 | case "$ac_dir" in |
| 14991 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14992 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14993 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14994 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14995 | 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] | 14996 | case $ac_top_builddir_sub in |
| 14997 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14998 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14999 | esac ;; |
| 15000 | esac |
| 15001 | ac_abs_top_builddir=$ac_pwd |
| 15002 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15003 | # for backward compatibility: |
| 15004 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15005 | |
| 15006 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15007 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15008 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15009 | ac_top_srcdir=$ac_top_builddir_sub |
| 15010 | ac_abs_top_srcdir=$ac_pwd ;; |
| 15011 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15012 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15013 | ac_top_srcdir=$srcdir |
| 15014 | ac_abs_top_srcdir=$srcdir ;; |
| 15015 | *) # Relative name. |
| 15016 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15017 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15018 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15019 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15020 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15023 | case $ac_mode in |
| 15024 | :F) |
| 15025 | # |
| 15026 | # CONFIG_FILE |
| 15027 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15028 | |
| 15029 | case $INSTALL in |
| 15030 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15031 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15032 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15033 | ac_MKDIR_P=$MKDIR_P |
| 15034 | case $MKDIR_P in |
| 15035 | [\\/$]* | ?:[\\/]* ) ;; |
| 15036 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15037 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15038 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15039 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15041 | # If the template does not know about datarootdir, expand it. |
| 15042 | # FIXME: This hack should be removed a few years after 2.60. |
| 15043 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15044 | ac_sed_dataroot=' |
| 15045 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15046 | p |
| 15047 | q |
| 15048 | } |
| 15049 | /@datadir@/p |
| 15050 | /@docdir@/p |
| 15051 | /@infodir@/p |
| 15052 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15053 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15054 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15055 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15056 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15057 | { $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] | 15058 | $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] | 15059 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15061 | ac_datarootdir_hack=' |
| 15062 | s&@datadir@&$datadir&g |
| 15063 | s&@docdir@&$docdir&g |
| 15064 | s&@infodir@&$infodir&g |
| 15065 | s&@localedir@&$localedir&g |
| 15066 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15067 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15068 | esac |
| 15069 | _ACEOF |
| 15070 | |
| 15071 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15072 | # Shell code in configure.ac might set extrasub. |
| 15073 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15075 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15076 | $extrasub |
| 15077 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15079 | :t |
| 15080 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15081 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15082 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15083 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15084 | s&@srcdir@&$ac_srcdir&;t t |
| 15085 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15086 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15087 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15088 | s&@builddir@&$ac_builddir&;t t |
| 15089 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15090 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15091 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15092 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15093 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15094 | " |
| 15095 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 15096 | if $ac_cs_awk_getline; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15097 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15098 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15099 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 15100 | fi \ |
| 15101 | >$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] | 15102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15103 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15104 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15105 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15106 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15107 | { $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] | 15108 | 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] | 15109 | $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] | 15110 | 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] | 15111 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15112 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15113 | case $ac_file in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15114 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15115 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15116 | esac \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15117 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15118 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15119 | :H) |
| 15120 | # |
| 15121 | # CONFIG_HEADER |
| 15122 | # |
| 15123 | if test x"$ac_file" != x-; then |
| 15124 | { |
| 15125 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15126 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15127 | } >"$ac_tmp/config.h" \ |
| 15128 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 15129 | 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] | 15130 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15131 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15132 | else |
| 15133 | rm -f "$ac_file" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15134 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 15135 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15136 | fi |
| 15137 | else |
| 15138 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15139 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 15140 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15141 | fi |
| 15142 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15143 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15144 | :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] | 15145 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15146 | ;; |
| 15147 | esac |
| 15148 | |
| 15149 | |
| 15150 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15151 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15152 | for ac_file in $CONFIG_FILES; do |
| 15153 | # Support "outfile[:infile[:infile...]]" |
| 15154 | case "$ac_file" in |
| 15155 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 15156 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15157 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 15158 | case "$ac_file" in */Makefile.in) |
| 15159 | # Adjust a relative srcdir. |
| 15160 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15161 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15162 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 15163 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 15164 | # In autoconf-2.50 it is called $srcdir. |
| 15165 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 15166 | case "$ac_given_srcdir" in |
| 15167 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 15168 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 15169 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 15170 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15171 | # Treat a directory as a PO directory if and only if it has a |
| 15172 | # POTFILES.in file. This allows packages to have multiple PO |
| 15173 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15174 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 15175 | rm -f "$ac_dir/POTFILES" |
| 15176 | 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] | 15177 | gt_tab=`printf '\t'` |
| 15178 | 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] | 15179 | POMAKEFILEDEPS="POTFILES.in" |
| 15180 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15181 | # on $ac_dir but don't depend on user-specified configuration |
| 15182 | # parameters. |
| 15183 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 15184 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15185 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15186 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 15187 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15188 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 15189 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15190 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15191 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 15192 | else |
| 15193 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15194 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15195 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15196 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15197 | # Compute POFILES |
| 15198 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 15199 | # Compute UPDATEPOFILES |
| 15200 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 15201 | # Compute DUMMYPOFILES |
| 15202 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 15203 | # Compute GMOFILES |
| 15204 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15205 | case "$ac_given_srcdir" in |
| 15206 | .) srcdirpre= ;; |
| 15207 | *) srcdirpre='$(srcdir)/' ;; |
| 15208 | esac |
| 15209 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15210 | UPDATEPOFILES= |
| 15211 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15212 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15213 | for lang in $ALL_LINGUAS; do |
| 15214 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15215 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 15216 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15217 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15218 | done |
| 15219 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 15220 | # environment variable. |
| 15221 | INST_LINGUAS= |
| 15222 | if test -n "$ALL_LINGUAS"; then |
| 15223 | for presentlang in $ALL_LINGUAS; do |
| 15224 | useit=no |
| 15225 | if test "%UNSET%" != "$LINGUAS"; then |
| 15226 | desiredlanguages="$LINGUAS" |
| 15227 | else |
| 15228 | desiredlanguages="$ALL_LINGUAS" |
| 15229 | fi |
| 15230 | for desiredlang in $desiredlanguages; do |
| 15231 | # Use the presentlang catalog if desiredlang is |
| 15232 | # a. equal to presentlang, or |
| 15233 | # b. a variant of presentlang (because in this case, |
| 15234 | # presentlang can be used as a fallback for messages |
| 15235 | # which are not translated in the desiredlang catalog). |
| 15236 | case "$desiredlang" in |
| 15237 | "$presentlang"*) useit=yes;; |
| 15238 | esac |
| 15239 | done |
| 15240 | if test $useit = yes; then |
| 15241 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 15242 | fi |
| 15243 | done |
| 15244 | fi |
| 15245 | CATALOGS= |
| 15246 | if test -n "$INST_LINGUAS"; then |
| 15247 | for lang in $INST_LINGUAS; do |
| 15248 | CATALOGS="$CATALOGS $lang.gmo" |
| 15249 | done |
| 15250 | fi |
| 15251 | 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] | 15252 | 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] | 15253 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 15254 | if test -f "$f"; then |
| 15255 | case "$f" in |
| 15256 | *.orig | *.bak | *~) ;; |
| 15257 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 15258 | esac |
| 15259 | fi |
| 15260 | done |
| 15261 | fi |
| 15262 | ;; |
| 15263 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15264 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15266 | esac |
| 15267 | done # for ac_tag |
| 15268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15269 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15270 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15271 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15272 | ac_clean_files=$ac_clean_files_save |
| 15273 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15274 | test $ac_write_fail = 0 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15275 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15276 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15277 | |
| 15278 | # configure is writing to config.log, and then calls config.status. |
| 15279 | # config.status does its own redirection, appending to config.log. |
| 15280 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15281 | # by configure, so config.status won't be able to write to it; its |
| 15282 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15283 | # effectively closing config.log, so it can be properly (re)opened and |
| 15284 | # appended to by config.status. When coming back to configure, we |
| 15285 | # need to make the FD available again. |
| 15286 | if test "$no_create" != yes; then |
| 15287 | ac_cs_success=: |
| 15288 | ac_config_status_args= |
| 15289 | test "$silent" = yes && |
| 15290 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15291 | exec 5>/dev/null |
| 15292 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15293 | exec 5>>config.log |
| 15294 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15295 | # would make configure fail if this is the last instruction. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15296 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15297 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15298 | 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] | 15299 | { $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] | 15300 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15301 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15302 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 15303 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |