Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | # Guess values for system-dependent variables and create Makefiles. |
michael@0 | 3 | # Generated by GNU Autoconf 2.69. |
michael@0 | 4 | # |
michael@0 | 5 | # |
michael@0 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
michael@0 | 7 | # |
michael@0 | 8 | # |
michael@0 | 9 | # This configure script is free software; the Free Software Foundation |
michael@0 | 10 | # gives unlimited permission to copy, distribute and modify it. |
michael@0 | 11 | ## -------------------- ## |
michael@0 | 12 | ## M4sh Initialization. ## |
michael@0 | 13 | ## -------------------- ## |
michael@0 | 14 | |
michael@0 | 15 | # Be more Bourne compatible |
michael@0 | 16 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 18 | emulate sh |
michael@0 | 19 | NULLCMD=: |
michael@0 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 21 | # is contrary to our usage. Disable this feature. |
michael@0 | 22 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 23 | setopt NO_GLOB_SUBST |
michael@0 | 24 | else |
michael@0 | 25 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 26 | *posix*) : |
michael@0 | 27 | set -o posix ;; #( |
michael@0 | 28 | *) : |
michael@0 | 29 | ;; |
michael@0 | 30 | esac |
michael@0 | 31 | fi |
michael@0 | 32 | |
michael@0 | 33 | |
michael@0 | 34 | as_nl=' |
michael@0 | 35 | ' |
michael@0 | 36 | export as_nl |
michael@0 | 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 42 | # but without wasting forks for bash or zsh. |
michael@0 | 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 45 | as_echo='print -r --' |
michael@0 | 46 | as_echo_n='print -rn --' |
michael@0 | 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 48 | as_echo='printf %s\n' |
michael@0 | 49 | as_echo_n='printf %s' |
michael@0 | 50 | else |
michael@0 | 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 53 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 54 | else |
michael@0 | 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 56 | as_echo_n_body='eval |
michael@0 | 57 | arg=$1; |
michael@0 | 58 | case $arg in #( |
michael@0 | 59 | *"$as_nl"*) |
michael@0 | 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 62 | esac; |
michael@0 | 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 64 | ' |
michael@0 | 65 | export as_echo_n_body |
michael@0 | 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 67 | fi |
michael@0 | 68 | export as_echo_body |
michael@0 | 69 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 70 | fi |
michael@0 | 71 | |
michael@0 | 72 | # The user is always right. |
michael@0 | 73 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 74 | PATH_SEPARATOR=: |
michael@0 | 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 77 | PATH_SEPARATOR=';' |
michael@0 | 78 | } |
michael@0 | 79 | fi |
michael@0 | 80 | |
michael@0 | 81 | |
michael@0 | 82 | # IFS |
michael@0 | 83 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 84 | # there to prevent editors from complaining about space-tab. |
michael@0 | 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 86 | # splitting by setting IFS to empty value.) |
michael@0 | 87 | IFS=" "" $as_nl" |
michael@0 | 88 | |
michael@0 | 89 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 90 | as_myself= |
michael@0 | 91 | case $0 in #(( |
michael@0 | 92 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 94 | for as_dir in $PATH |
michael@0 | 95 | do |
michael@0 | 96 | IFS=$as_save_IFS |
michael@0 | 97 | test -z "$as_dir" && as_dir=. |
michael@0 | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 99 | done |
michael@0 | 100 | IFS=$as_save_IFS |
michael@0 | 101 | |
michael@0 | 102 | ;; |
michael@0 | 103 | esac |
michael@0 | 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 105 | # in which case we are not to be found in the path. |
michael@0 | 106 | if test "x$as_myself" = x; then |
michael@0 | 107 | as_myself=$0 |
michael@0 | 108 | fi |
michael@0 | 109 | if test ! -f "$as_myself"; then |
michael@0 | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 111 | exit 1 |
michael@0 | 112 | fi |
michael@0 | 113 | |
michael@0 | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 116 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 117 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 119 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 121 | done |
michael@0 | 122 | PS1='$ ' |
michael@0 | 123 | PS2='> ' |
michael@0 | 124 | PS4='+ ' |
michael@0 | 125 | |
michael@0 | 126 | # NLS nuisances. |
michael@0 | 127 | LC_ALL=C |
michael@0 | 128 | export LC_ALL |
michael@0 | 129 | LANGUAGE=C |
michael@0 | 130 | export LANGUAGE |
michael@0 | 131 | |
michael@0 | 132 | # CDPATH. |
michael@0 | 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 134 | |
michael@0 | 135 | # Use a proper internal environment variable to ensure we don't fall |
michael@0 | 136 | # into an infinite loop, continuously re-executing ourselves. |
michael@0 | 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
michael@0 | 138 | _as_can_reexec=no; export _as_can_reexec; |
michael@0 | 139 | # We cannot yet assume a decent shell, so we have to provide a |
michael@0 | 140 | # neutralization value for shells without unset; and this also |
michael@0 | 141 | # works around shells that cannot unset nonexistent variables. |
michael@0 | 142 | # Preserve -v and -x to the replacement shell. |
michael@0 | 143 | BASH_ENV=/dev/null |
michael@0 | 144 | ENV=/dev/null |
michael@0 | 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
michael@0 | 146 | case $- in # (((( |
michael@0 | 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
michael@0 | 148 | *v* ) as_opts=-v ;; |
michael@0 | 149 | *x* ) as_opts=-x ;; |
michael@0 | 150 | * ) as_opts= ;; |
michael@0 | 151 | esac |
michael@0 | 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
michael@0 | 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
michael@0 | 154 | # out after a failed `exec'. |
michael@0 | 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
michael@0 | 156 | as_fn_exit 255 |
michael@0 | 157 | fi |
michael@0 | 158 | # We don't want this to propagate to other subprocesses. |
michael@0 | 159 | { _as_can_reexec=; unset _as_can_reexec;} |
michael@0 | 160 | if test "x$CONFIG_SHELL" = x; then |
michael@0 | 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 162 | emulate sh |
michael@0 | 163 | NULLCMD=: |
michael@0 | 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
michael@0 | 165 | # is contrary to our usage. Disable this feature. |
michael@0 | 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
michael@0 | 167 | setopt NO_GLOB_SUBST |
michael@0 | 168 | else |
michael@0 | 169 | case \`(set -o) 2>/dev/null\` in #( |
michael@0 | 170 | *posix*) : |
michael@0 | 171 | set -o posix ;; #( |
michael@0 | 172 | *) : |
michael@0 | 173 | ;; |
michael@0 | 174 | esac |
michael@0 | 175 | fi |
michael@0 | 176 | " |
michael@0 | 177 | as_required="as_fn_return () { (exit \$1); } |
michael@0 | 178 | as_fn_success () { as_fn_return 0; } |
michael@0 | 179 | as_fn_failure () { as_fn_return 1; } |
michael@0 | 180 | as_fn_ret_success () { return 0; } |
michael@0 | 181 | as_fn_ret_failure () { return 1; } |
michael@0 | 182 | |
michael@0 | 183 | exitcode=0 |
michael@0 | 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
michael@0 | 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
michael@0 | 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
michael@0 | 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
michael@0 | 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
michael@0 | 189 | |
michael@0 | 190 | else |
michael@0 | 191 | exitcode=1; echo positional parameters were not saved. |
michael@0 | 192 | fi |
michael@0 | 193 | test x\$exitcode = x0 || exit 1 |
michael@0 | 194 | test -x / || exit 1" |
michael@0 | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
michael@0 | 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
michael@0 | 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
michael@0 | 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
michael@0 | 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
michael@0 | 200 | if (eval "$as_required") 2>/dev/null; then : |
michael@0 | 201 | as_have_required=yes |
michael@0 | 202 | else |
michael@0 | 203 | as_have_required=no |
michael@0 | 204 | fi |
michael@0 | 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
michael@0 | 206 | |
michael@0 | 207 | else |
michael@0 | 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 209 | as_found=false |
michael@0 | 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
michael@0 | 211 | do |
michael@0 | 212 | IFS=$as_save_IFS |
michael@0 | 213 | test -z "$as_dir" && as_dir=. |
michael@0 | 214 | as_found=: |
michael@0 | 215 | case $as_dir in #( |
michael@0 | 216 | /*) |
michael@0 | 217 | for as_base in sh bash ksh sh5; do |
michael@0 | 218 | # Try only shells that exist, to save several forks. |
michael@0 | 219 | as_shell=$as_dir/$as_base |
michael@0 | 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
michael@0 | 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
michael@0 | 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 224 | break 2 |
michael@0 | 225 | fi |
michael@0 | 226 | fi |
michael@0 | 227 | done;; |
michael@0 | 228 | esac |
michael@0 | 229 | as_found=false |
michael@0 | 230 | done |
michael@0 | 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
michael@0 | 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
michael@0 | 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
michael@0 | 234 | fi; } |
michael@0 | 235 | IFS=$as_save_IFS |
michael@0 | 236 | |
michael@0 | 237 | |
michael@0 | 238 | if test "x$CONFIG_SHELL" != x; then : |
michael@0 | 239 | export CONFIG_SHELL |
michael@0 | 240 | # We cannot yet assume a decent shell, so we have to provide a |
michael@0 | 241 | # neutralization value for shells without unset; and this also |
michael@0 | 242 | # works around shells that cannot unset nonexistent variables. |
michael@0 | 243 | # Preserve -v and -x to the replacement shell. |
michael@0 | 244 | BASH_ENV=/dev/null |
michael@0 | 245 | ENV=/dev/null |
michael@0 | 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
michael@0 | 247 | case $- in # (((( |
michael@0 | 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
michael@0 | 249 | *v* ) as_opts=-v ;; |
michael@0 | 250 | *x* ) as_opts=-x ;; |
michael@0 | 251 | * ) as_opts= ;; |
michael@0 | 252 | esac |
michael@0 | 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
michael@0 | 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
michael@0 | 255 | # out after a failed `exec'. |
michael@0 | 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
michael@0 | 257 | exit 255 |
michael@0 | 258 | fi |
michael@0 | 259 | |
michael@0 | 260 | if test x$as_have_required = xno; then : |
michael@0 | 261 | $as_echo "$0: This script requires a shell more modern than all" |
michael@0 | 262 | $as_echo "$0: the shells that I found on your system." |
michael@0 | 263 | if test x${ZSH_VERSION+set} = xset ; then |
michael@0 | 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
michael@0 | 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
michael@0 | 266 | else |
michael@0 | 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
michael@0 | 268 | $0: including any error possibly output before this |
michael@0 | 269 | $0: message. Then install a modern shell, or manually run |
michael@0 | 270 | $0: the script under such a shell if you do have one." |
michael@0 | 271 | fi |
michael@0 | 272 | exit 1 |
michael@0 | 273 | fi |
michael@0 | 274 | fi |
michael@0 | 275 | fi |
michael@0 | 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
michael@0 | 277 | export SHELL |
michael@0 | 278 | # Unset more variables known to interfere with behavior of common tools. |
michael@0 | 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
michael@0 | 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
michael@0 | 281 | |
michael@0 | 282 | ## --------------------- ## |
michael@0 | 283 | ## M4sh Shell Functions. ## |
michael@0 | 284 | ## --------------------- ## |
michael@0 | 285 | # as_fn_unset VAR |
michael@0 | 286 | # --------------- |
michael@0 | 287 | # Portably unset VAR. |
michael@0 | 288 | as_fn_unset () |
michael@0 | 289 | { |
michael@0 | 290 | { eval $1=; unset $1;} |
michael@0 | 291 | } |
michael@0 | 292 | as_unset=as_fn_unset |
michael@0 | 293 | |
michael@0 | 294 | # as_fn_set_status STATUS |
michael@0 | 295 | # ----------------------- |
michael@0 | 296 | # Set $? to STATUS, without forking. |
michael@0 | 297 | as_fn_set_status () |
michael@0 | 298 | { |
michael@0 | 299 | return $1 |
michael@0 | 300 | } # as_fn_set_status |
michael@0 | 301 | |
michael@0 | 302 | # as_fn_exit STATUS |
michael@0 | 303 | # ----------------- |
michael@0 | 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 305 | as_fn_exit () |
michael@0 | 306 | { |
michael@0 | 307 | set +e |
michael@0 | 308 | as_fn_set_status $1 |
michael@0 | 309 | exit $1 |
michael@0 | 310 | } # as_fn_exit |
michael@0 | 311 | |
michael@0 | 312 | # as_fn_mkdir_p |
michael@0 | 313 | # ------------- |
michael@0 | 314 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 315 | as_fn_mkdir_p () |
michael@0 | 316 | { |
michael@0 | 317 | |
michael@0 | 318 | case $as_dir in #( |
michael@0 | 319 | -*) as_dir=./$as_dir;; |
michael@0 | 320 | esac |
michael@0 | 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 322 | as_dirs= |
michael@0 | 323 | while :; do |
michael@0 | 324 | case $as_dir in #( |
michael@0 | 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 326 | *) as_qdir=$as_dir;; |
michael@0 | 327 | esac |
michael@0 | 328 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 329 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 332 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 334 | $as_echo X"$as_dir" | |
michael@0 | 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 336 | s//\1/ |
michael@0 | 337 | q |
michael@0 | 338 | } |
michael@0 | 339 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 340 | s//\1/ |
michael@0 | 341 | q |
michael@0 | 342 | } |
michael@0 | 343 | /^X\(\/\/\)$/{ |
michael@0 | 344 | s//\1/ |
michael@0 | 345 | q |
michael@0 | 346 | } |
michael@0 | 347 | /^X\(\/\).*/{ |
michael@0 | 348 | s//\1/ |
michael@0 | 349 | q |
michael@0 | 350 | } |
michael@0 | 351 | s/.*/./; q'` |
michael@0 | 352 | test -d "$as_dir" && break |
michael@0 | 353 | done |
michael@0 | 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 356 | |
michael@0 | 357 | |
michael@0 | 358 | } # as_fn_mkdir_p |
michael@0 | 359 | |
michael@0 | 360 | # as_fn_executable_p FILE |
michael@0 | 361 | # ----------------------- |
michael@0 | 362 | # Test if FILE is an executable regular file. |
michael@0 | 363 | as_fn_executable_p () |
michael@0 | 364 | { |
michael@0 | 365 | test -f "$1" && test -x "$1" |
michael@0 | 366 | } # as_fn_executable_p |
michael@0 | 367 | # as_fn_append VAR VALUE |
michael@0 | 368 | # ---------------------- |
michael@0 | 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 370 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 371 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 372 | # implementations. |
michael@0 | 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 374 | eval 'as_fn_append () |
michael@0 | 375 | { |
michael@0 | 376 | eval $1+=\$2 |
michael@0 | 377 | }' |
michael@0 | 378 | else |
michael@0 | 379 | as_fn_append () |
michael@0 | 380 | { |
michael@0 | 381 | eval $1=\$$1\$2 |
michael@0 | 382 | } |
michael@0 | 383 | fi # as_fn_append |
michael@0 | 384 | |
michael@0 | 385 | # as_fn_arith ARG... |
michael@0 | 386 | # ------------------ |
michael@0 | 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 389 | # must be portable across $(()) and expr. |
michael@0 | 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 391 | eval 'as_fn_arith () |
michael@0 | 392 | { |
michael@0 | 393 | as_val=$(( $* )) |
michael@0 | 394 | }' |
michael@0 | 395 | else |
michael@0 | 396 | as_fn_arith () |
michael@0 | 397 | { |
michael@0 | 398 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 399 | } |
michael@0 | 400 | fi # as_fn_arith |
michael@0 | 401 | |
michael@0 | 402 | |
michael@0 | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 404 | # ---------------------------------------- |
michael@0 | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 407 | # script with STATUS, using 1 if that was 0. |
michael@0 | 408 | as_fn_error () |
michael@0 | 409 | { |
michael@0 | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 411 | if test "$4"; then |
michael@0 | 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 414 | fi |
michael@0 | 415 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 416 | as_fn_exit $as_status |
michael@0 | 417 | } # as_fn_error |
michael@0 | 418 | |
michael@0 | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 421 | as_expr=expr |
michael@0 | 422 | else |
michael@0 | 423 | as_expr=false |
michael@0 | 424 | fi |
michael@0 | 425 | |
michael@0 | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 427 | as_basename=basename |
michael@0 | 428 | else |
michael@0 | 429 | as_basename=false |
michael@0 | 430 | fi |
michael@0 | 431 | |
michael@0 | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 433 | as_dirname=dirname |
michael@0 | 434 | else |
michael@0 | 435 | as_dirname=false |
michael@0 | 436 | fi |
michael@0 | 437 | |
michael@0 | 438 | as_me=`$as_basename -- "$0" || |
michael@0 | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 440 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 442 | $as_echo X/"$0" | |
michael@0 | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 444 | s//\1/ |
michael@0 | 445 | q |
michael@0 | 446 | } |
michael@0 | 447 | /^X\/\(\/\/\)$/{ |
michael@0 | 448 | s//\1/ |
michael@0 | 449 | q |
michael@0 | 450 | } |
michael@0 | 451 | /^X\/\(\/\).*/{ |
michael@0 | 452 | s//\1/ |
michael@0 | 453 | q |
michael@0 | 454 | } |
michael@0 | 455 | s/.*/./; q'` |
michael@0 | 456 | |
michael@0 | 457 | # Avoid depending upon Character Ranges. |
michael@0 | 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 461 | as_cr_digits='0123456789' |
michael@0 | 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 463 | |
michael@0 | 464 | |
michael@0 | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
michael@0 | 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
michael@0 | 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
michael@0 | 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
michael@0 | 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
michael@0 | 470 | sed -n ' |
michael@0 | 471 | p |
michael@0 | 472 | /[$]LINENO/= |
michael@0 | 473 | ' <$as_myself | |
michael@0 | 474 | sed ' |
michael@0 | 475 | s/[$]LINENO.*/&-/ |
michael@0 | 476 | t lineno |
michael@0 | 477 | b |
michael@0 | 478 | :lineno |
michael@0 | 479 | N |
michael@0 | 480 | :loop |
michael@0 | 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
michael@0 | 482 | t loop |
michael@0 | 483 | s/-\n.*// |
michael@0 | 484 | ' >$as_me.lineno && |
michael@0 | 485 | chmod +x "$as_me.lineno" || |
michael@0 | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
michael@0 | 487 | |
michael@0 | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
michael@0 | 489 | # already done that, so ensure we don't try to do so again and fall |
michael@0 | 490 | # in an infinite loop. This has already happened in practice. |
michael@0 | 491 | _as_can_reexec=no; export _as_can_reexec |
michael@0 | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
michael@0 | 493 | # (the dirname of $[0] is not the place where we might find the |
michael@0 | 494 | # original and so on. Autoconf is especially sensitive to this). |
michael@0 | 495 | . "./$as_me.lineno" |
michael@0 | 496 | # Exit status is that of the last command. |
michael@0 | 497 | exit |
michael@0 | 498 | } |
michael@0 | 499 | |
michael@0 | 500 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 501 | case `echo -n x` in #((((( |
michael@0 | 502 | -n*) |
michael@0 | 503 | case `echo 'xy\c'` in |
michael@0 | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 505 | xy) ECHO_C='\c';; |
michael@0 | 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 507 | ECHO_T=' ';; |
michael@0 | 508 | esac;; |
michael@0 | 509 | *) |
michael@0 | 510 | ECHO_N='-n';; |
michael@0 | 511 | esac |
michael@0 | 512 | |
michael@0 | 513 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 514 | if test -d conf$$.dir; then |
michael@0 | 515 | rm -f conf$$.dir/conf$$.file |
michael@0 | 516 | else |
michael@0 | 517 | rm -f conf$$.dir |
michael@0 | 518 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 519 | fi |
michael@0 | 520 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 522 | as_ln_s='ln -s' |
michael@0 | 523 | # ... but there are two gotchas: |
michael@0 | 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 526 | # In both cases, we have to default to `cp -pR'. |
michael@0 | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 528 | as_ln_s='cp -pR' |
michael@0 | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 530 | as_ln_s=ln |
michael@0 | 531 | else |
michael@0 | 532 | as_ln_s='cp -pR' |
michael@0 | 533 | fi |
michael@0 | 534 | else |
michael@0 | 535 | as_ln_s='cp -pR' |
michael@0 | 536 | fi |
michael@0 | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 538 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 539 | |
michael@0 | 540 | if mkdir -p . 2>/dev/null; then |
michael@0 | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 542 | else |
michael@0 | 543 | test -d ./-p && rmdir ./-p |
michael@0 | 544 | as_mkdir_p=false |
michael@0 | 545 | fi |
michael@0 | 546 | |
michael@0 | 547 | as_test_x='test -x' |
michael@0 | 548 | as_executable_p=as_fn_executable_p |
michael@0 | 549 | |
michael@0 | 550 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 552 | |
michael@0 | 553 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 555 | |
michael@0 | 556 | |
michael@0 | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
michael@0 | 558 | exec 6>&1 |
michael@0 | 559 | |
michael@0 | 560 | # Name of the host. |
michael@0 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
michael@0 | 562 | # so uname gets run too. |
michael@0 | 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 564 | |
michael@0 | 565 | # |
michael@0 | 566 | # Initializations. |
michael@0 | 567 | # |
michael@0 | 568 | ac_default_prefix=/usr/local |
michael@0 | 569 | ac_clean_files= |
michael@0 | 570 | ac_config_libobj_dir=. |
michael@0 | 571 | LIBOBJS= |
michael@0 | 572 | cross_compiling=no |
michael@0 | 573 | subdirs= |
michael@0 | 574 | MFLAGS= |
michael@0 | 575 | MAKEFLAGS= |
michael@0 | 576 | |
michael@0 | 577 | # Identity of this package. |
michael@0 | 578 | PACKAGE_NAME= |
michael@0 | 579 | PACKAGE_TARNAME= |
michael@0 | 580 | PACKAGE_VERSION= |
michael@0 | 581 | PACKAGE_STRING= |
michael@0 | 582 | PACKAGE_BUGREPORT= |
michael@0 | 583 | PACKAGE_URL= |
michael@0 | 584 | |
michael@0 | 585 | ac_unique_file="Makefile.in" |
michael@0 | 586 | # Factoring default headers for most tests. |
michael@0 | 587 | ac_includes_default="\ |
michael@0 | 588 | #include <stdio.h> |
michael@0 | 589 | #ifdef HAVE_SYS_TYPES_H |
michael@0 | 590 | # include <sys/types.h> |
michael@0 | 591 | #endif |
michael@0 | 592 | #ifdef HAVE_SYS_STAT_H |
michael@0 | 593 | # include <sys/stat.h> |
michael@0 | 594 | #endif |
michael@0 | 595 | #ifdef STDC_HEADERS |
michael@0 | 596 | # include <stdlib.h> |
michael@0 | 597 | # include <stddef.h> |
michael@0 | 598 | #else |
michael@0 | 599 | # ifdef HAVE_STDLIB_H |
michael@0 | 600 | # include <stdlib.h> |
michael@0 | 601 | # endif |
michael@0 | 602 | #endif |
michael@0 | 603 | #ifdef HAVE_STRING_H |
michael@0 | 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
michael@0 | 605 | # include <memory.h> |
michael@0 | 606 | # endif |
michael@0 | 607 | # include <string.h> |
michael@0 | 608 | #endif |
michael@0 | 609 | #ifdef HAVE_STRINGS_H |
michael@0 | 610 | # include <strings.h> |
michael@0 | 611 | #endif |
michael@0 | 612 | #ifdef HAVE_INTTYPES_H |
michael@0 | 613 | # include <inttypes.h> |
michael@0 | 614 | #endif |
michael@0 | 615 | #ifdef HAVE_STDINT_H |
michael@0 | 616 | # include <stdint.h> |
michael@0 | 617 | #endif |
michael@0 | 618 | #ifdef HAVE_UNISTD_H |
michael@0 | 619 | # include <unistd.h> |
michael@0 | 620 | #endif" |
michael@0 | 621 | |
michael@0 | 622 | ac_subst_vars='LTLIBOBJS |
michael@0 | 623 | LIBOBJS |
michael@0 | 624 | cfgoutputs_out |
michael@0 | 625 | cfgoutputs_in |
michael@0 | 626 | cfghdrs_out |
michael@0 | 627 | cfghdrs_in |
michael@0 | 628 | enable_tls |
michael@0 | 629 | enable_lazy_lock |
michael@0 | 630 | jemalloc_version_gid |
michael@0 | 631 | jemalloc_version_nrev |
michael@0 | 632 | jemalloc_version_bugfix |
michael@0 | 633 | jemalloc_version_minor |
michael@0 | 634 | jemalloc_version_major |
michael@0 | 635 | jemalloc_version |
michael@0 | 636 | enable_xmalloc |
michael@0 | 637 | enable_valgrind |
michael@0 | 638 | enable_utrace |
michael@0 | 639 | enable_fill |
michael@0 | 640 | enable_dss |
michael@0 | 641 | enable_munmap |
michael@0 | 642 | enable_mremap |
michael@0 | 643 | enable_tcache |
michael@0 | 644 | enable_prof |
michael@0 | 645 | enable_stats |
michael@0 | 646 | enable_debug |
michael@0 | 647 | install_suffix |
michael@0 | 648 | enable_experimental |
michael@0 | 649 | AUTOCONF |
michael@0 | 650 | LD |
michael@0 | 651 | AR |
michael@0 | 652 | RANLIB |
michael@0 | 653 | INSTALL_DATA |
michael@0 | 654 | INSTALL_SCRIPT |
michael@0 | 655 | INSTALL_PROGRAM |
michael@0 | 656 | enable_autogen |
michael@0 | 657 | RPATH_EXTRA |
michael@0 | 658 | CC_MM |
michael@0 | 659 | MKLIB |
michael@0 | 660 | LDTARGET |
michael@0 | 661 | CTARGET |
michael@0 | 662 | PIC_CFLAGS |
michael@0 | 663 | SOREV |
michael@0 | 664 | EXTRA_LDFLAGS |
michael@0 | 665 | DSO_LDFLAGS |
michael@0 | 666 | libprefix |
michael@0 | 667 | exe |
michael@0 | 668 | a |
michael@0 | 669 | o |
michael@0 | 670 | importlib |
michael@0 | 671 | so |
michael@0 | 672 | LD_PRELOAD_VAR |
michael@0 | 673 | RPATH |
michael@0 | 674 | abi |
michael@0 | 675 | host_os |
michael@0 | 676 | host_vendor |
michael@0 | 677 | host_cpu |
michael@0 | 678 | host |
michael@0 | 679 | build_os |
michael@0 | 680 | build_vendor |
michael@0 | 681 | build_cpu |
michael@0 | 682 | build |
michael@0 | 683 | EGREP |
michael@0 | 684 | GREP |
michael@0 | 685 | CPP |
michael@0 | 686 | OBJEXT |
michael@0 | 687 | EXEEXT |
michael@0 | 688 | ac_ct_CC |
michael@0 | 689 | CPPFLAGS |
michael@0 | 690 | LDFLAGS |
michael@0 | 691 | CFLAGS |
michael@0 | 692 | CC |
michael@0 | 693 | XSLROOT |
michael@0 | 694 | XSLTPROC |
michael@0 | 695 | MANDIR |
michael@0 | 696 | DATADIR |
michael@0 | 697 | LIBDIR |
michael@0 | 698 | INCLUDEDIR |
michael@0 | 699 | BINDIR |
michael@0 | 700 | PREFIX |
michael@0 | 701 | abs_objroot |
michael@0 | 702 | objroot |
michael@0 | 703 | abs_srcroot |
michael@0 | 704 | srcroot |
michael@0 | 705 | rev |
michael@0 | 706 | target_alias |
michael@0 | 707 | host_alias |
michael@0 | 708 | build_alias |
michael@0 | 709 | LIBS |
michael@0 | 710 | ECHO_T |
michael@0 | 711 | ECHO_N |
michael@0 | 712 | ECHO_C |
michael@0 | 713 | DEFS |
michael@0 | 714 | mandir |
michael@0 | 715 | localedir |
michael@0 | 716 | libdir |
michael@0 | 717 | psdir |
michael@0 | 718 | pdfdir |
michael@0 | 719 | dvidir |
michael@0 | 720 | htmldir |
michael@0 | 721 | infodir |
michael@0 | 722 | docdir |
michael@0 | 723 | oldincludedir |
michael@0 | 724 | includedir |
michael@0 | 725 | localstatedir |
michael@0 | 726 | sharedstatedir |
michael@0 | 727 | sysconfdir |
michael@0 | 728 | datadir |
michael@0 | 729 | datarootdir |
michael@0 | 730 | libexecdir |
michael@0 | 731 | sbindir |
michael@0 | 732 | bindir |
michael@0 | 733 | program_transform_name |
michael@0 | 734 | prefix |
michael@0 | 735 | exec_prefix |
michael@0 | 736 | PACKAGE_URL |
michael@0 | 737 | PACKAGE_BUGREPORT |
michael@0 | 738 | PACKAGE_STRING |
michael@0 | 739 | PACKAGE_VERSION |
michael@0 | 740 | PACKAGE_TARNAME |
michael@0 | 741 | PACKAGE_NAME |
michael@0 | 742 | PATH_SEPARATOR |
michael@0 | 743 | SHELL' |
michael@0 | 744 | ac_subst_files='' |
michael@0 | 745 | ac_user_opts=' |
michael@0 | 746 | enable_option_checking |
michael@0 | 747 | with_xslroot |
michael@0 | 748 | with_rpath |
michael@0 | 749 | enable_autogen |
michael@0 | 750 | enable_experimental |
michael@0 | 751 | with_mangling |
michael@0 | 752 | with_jemalloc_prefix |
michael@0 | 753 | with_export |
michael@0 | 754 | with_private_namespace |
michael@0 | 755 | with_install_suffix |
michael@0 | 756 | enable_cc_silence |
michael@0 | 757 | enable_debug |
michael@0 | 758 | enable_stats |
michael@0 | 759 | enable_prof |
michael@0 | 760 | enable_prof_libunwind |
michael@0 | 761 | with_static_libunwind |
michael@0 | 762 | enable_prof_libgcc |
michael@0 | 763 | enable_prof_gcc |
michael@0 | 764 | enable_tcache |
michael@0 | 765 | enable_mremap |
michael@0 | 766 | enable_munmap |
michael@0 | 767 | enable_dss |
michael@0 | 768 | enable_fill |
michael@0 | 769 | enable_utrace |
michael@0 | 770 | enable_valgrind |
michael@0 | 771 | enable_xmalloc |
michael@0 | 772 | enable_lazy_lock |
michael@0 | 773 | enable_tls |
michael@0 | 774 | ' |
michael@0 | 775 | ac_precious_vars='build_alias |
michael@0 | 776 | host_alias |
michael@0 | 777 | target_alias |
michael@0 | 778 | CC |
michael@0 | 779 | CFLAGS |
michael@0 | 780 | LDFLAGS |
michael@0 | 781 | LIBS |
michael@0 | 782 | CPPFLAGS |
michael@0 | 783 | CPP' |
michael@0 | 784 | |
michael@0 | 785 | |
michael@0 | 786 | # Initialize some variables set by options. |
michael@0 | 787 | ac_init_help= |
michael@0 | 788 | ac_init_version=false |
michael@0 | 789 | ac_unrecognized_opts= |
michael@0 | 790 | ac_unrecognized_sep= |
michael@0 | 791 | # The variables have the same names as the options, with |
michael@0 | 792 | # dashes changed to underlines. |
michael@0 | 793 | cache_file=/dev/null |
michael@0 | 794 | exec_prefix=NONE |
michael@0 | 795 | no_create= |
michael@0 | 796 | no_recursion= |
michael@0 | 797 | prefix=NONE |
michael@0 | 798 | program_prefix=NONE |
michael@0 | 799 | program_suffix=NONE |
michael@0 | 800 | program_transform_name=s,x,x, |
michael@0 | 801 | silent= |
michael@0 | 802 | site= |
michael@0 | 803 | srcdir= |
michael@0 | 804 | verbose= |
michael@0 | 805 | x_includes=NONE |
michael@0 | 806 | x_libraries=NONE |
michael@0 | 807 | |
michael@0 | 808 | # Installation directory options. |
michael@0 | 809 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
michael@0 | 810 | # and all the variables that are supposed to be based on exec_prefix |
michael@0 | 811 | # by default will actually change. |
michael@0 | 812 | # Use braces instead of parens because sh, perl, etc. also accept them. |
michael@0 | 813 | # (The list follows the same order as the GNU Coding Standards.) |
michael@0 | 814 | bindir='${exec_prefix}/bin' |
michael@0 | 815 | sbindir='${exec_prefix}/sbin' |
michael@0 | 816 | libexecdir='${exec_prefix}/libexec' |
michael@0 | 817 | datarootdir='${prefix}/share' |
michael@0 | 818 | datadir='${datarootdir}' |
michael@0 | 819 | sysconfdir='${prefix}/etc' |
michael@0 | 820 | sharedstatedir='${prefix}/com' |
michael@0 | 821 | localstatedir='${prefix}/var' |
michael@0 | 822 | includedir='${prefix}/include' |
michael@0 | 823 | oldincludedir='/usr/include' |
michael@0 | 824 | docdir='${datarootdir}/doc/${PACKAGE}' |
michael@0 | 825 | infodir='${datarootdir}/info' |
michael@0 | 826 | htmldir='${docdir}' |
michael@0 | 827 | dvidir='${docdir}' |
michael@0 | 828 | pdfdir='${docdir}' |
michael@0 | 829 | psdir='${docdir}' |
michael@0 | 830 | libdir='${exec_prefix}/lib' |
michael@0 | 831 | localedir='${datarootdir}/locale' |
michael@0 | 832 | mandir='${datarootdir}/man' |
michael@0 | 833 | |
michael@0 | 834 | ac_prev= |
michael@0 | 835 | ac_dashdash= |
michael@0 | 836 | for ac_option |
michael@0 | 837 | do |
michael@0 | 838 | # If the previous option needs an argument, assign it. |
michael@0 | 839 | if test -n "$ac_prev"; then |
michael@0 | 840 | eval $ac_prev=\$ac_option |
michael@0 | 841 | ac_prev= |
michael@0 | 842 | continue |
michael@0 | 843 | fi |
michael@0 | 844 | |
michael@0 | 845 | case $ac_option in |
michael@0 | 846 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
michael@0 | 847 | *=) ac_optarg= ;; |
michael@0 | 848 | *) ac_optarg=yes ;; |
michael@0 | 849 | esac |
michael@0 | 850 | |
michael@0 | 851 | # Accept the important Cygnus configure options, so we can diagnose typos. |
michael@0 | 852 | |
michael@0 | 853 | case $ac_dashdash$ac_option in |
michael@0 | 854 | --) |
michael@0 | 855 | ac_dashdash=yes ;; |
michael@0 | 856 | |
michael@0 | 857 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
michael@0 | 858 | ac_prev=bindir ;; |
michael@0 | 859 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
michael@0 | 860 | bindir=$ac_optarg ;; |
michael@0 | 861 | |
michael@0 | 862 | -build | --build | --buil | --bui | --bu) |
michael@0 | 863 | ac_prev=build_alias ;; |
michael@0 | 864 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
michael@0 | 865 | build_alias=$ac_optarg ;; |
michael@0 | 866 | |
michael@0 | 867 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
michael@0 | 868 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
michael@0 | 869 | ac_prev=cache_file ;; |
michael@0 | 870 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
michael@0 | 871 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
michael@0 | 872 | cache_file=$ac_optarg ;; |
michael@0 | 873 | |
michael@0 | 874 | --config-cache | -C) |
michael@0 | 875 | cache_file=config.cache ;; |
michael@0 | 876 | |
michael@0 | 877 | -datadir | --datadir | --datadi | --datad) |
michael@0 | 878 | ac_prev=datadir ;; |
michael@0 | 879 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
michael@0 | 880 | datadir=$ac_optarg ;; |
michael@0 | 881 | |
michael@0 | 882 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
michael@0 | 883 | | --dataroo | --dataro | --datar) |
michael@0 | 884 | ac_prev=datarootdir ;; |
michael@0 | 885 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
michael@0 | 886 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
michael@0 | 887 | datarootdir=$ac_optarg ;; |
michael@0 | 888 | |
michael@0 | 889 | -disable-* | --disable-*) |
michael@0 | 890 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
michael@0 | 891 | # Reject names that are not valid shell variable names. |
michael@0 | 892 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 893 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 894 | ac_useropt_orig=$ac_useropt |
michael@0 | 895 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 896 | case $ac_user_opts in |
michael@0 | 897 | *" |
michael@0 | 898 | "enable_$ac_useropt" |
michael@0 | 899 | "*) ;; |
michael@0 | 900 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
michael@0 | 901 | ac_unrecognized_sep=', ';; |
michael@0 | 902 | esac |
michael@0 | 903 | eval enable_$ac_useropt=no ;; |
michael@0 | 904 | |
michael@0 | 905 | -docdir | --docdir | --docdi | --doc | --do) |
michael@0 | 906 | ac_prev=docdir ;; |
michael@0 | 907 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
michael@0 | 908 | docdir=$ac_optarg ;; |
michael@0 | 909 | |
michael@0 | 910 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
michael@0 | 911 | ac_prev=dvidir ;; |
michael@0 | 912 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
michael@0 | 913 | dvidir=$ac_optarg ;; |
michael@0 | 914 | |
michael@0 | 915 | -enable-* | --enable-*) |
michael@0 | 916 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
michael@0 | 917 | # Reject names that are not valid shell variable names. |
michael@0 | 918 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 919 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 920 | ac_useropt_orig=$ac_useropt |
michael@0 | 921 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 922 | case $ac_user_opts in |
michael@0 | 923 | *" |
michael@0 | 924 | "enable_$ac_useropt" |
michael@0 | 925 | "*) ;; |
michael@0 | 926 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
michael@0 | 927 | ac_unrecognized_sep=', ';; |
michael@0 | 928 | esac |
michael@0 | 929 | eval enable_$ac_useropt=\$ac_optarg ;; |
michael@0 | 930 | |
michael@0 | 931 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
michael@0 | 932 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
michael@0 | 933 | | --exec | --exe | --ex) |
michael@0 | 934 | ac_prev=exec_prefix ;; |
michael@0 | 935 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
michael@0 | 936 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
michael@0 | 937 | | --exec=* | --exe=* | --ex=*) |
michael@0 | 938 | exec_prefix=$ac_optarg ;; |
michael@0 | 939 | |
michael@0 | 940 | -gas | --gas | --ga | --g) |
michael@0 | 941 | # Obsolete; use --with-gas. |
michael@0 | 942 | with_gas=yes ;; |
michael@0 | 943 | |
michael@0 | 944 | -help | --help | --hel | --he | -h) |
michael@0 | 945 | ac_init_help=long ;; |
michael@0 | 946 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
michael@0 | 947 | ac_init_help=recursive ;; |
michael@0 | 948 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
michael@0 | 949 | ac_init_help=short ;; |
michael@0 | 950 | |
michael@0 | 951 | -host | --host | --hos | --ho) |
michael@0 | 952 | ac_prev=host_alias ;; |
michael@0 | 953 | -host=* | --host=* | --hos=* | --ho=*) |
michael@0 | 954 | host_alias=$ac_optarg ;; |
michael@0 | 955 | |
michael@0 | 956 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
michael@0 | 957 | ac_prev=htmldir ;; |
michael@0 | 958 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
michael@0 | 959 | | --ht=*) |
michael@0 | 960 | htmldir=$ac_optarg ;; |
michael@0 | 961 | |
michael@0 | 962 | -includedir | --includedir | --includedi | --included | --include \ |
michael@0 | 963 | | --includ | --inclu | --incl | --inc) |
michael@0 | 964 | ac_prev=includedir ;; |
michael@0 | 965 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
michael@0 | 966 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
michael@0 | 967 | includedir=$ac_optarg ;; |
michael@0 | 968 | |
michael@0 | 969 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
michael@0 | 970 | ac_prev=infodir ;; |
michael@0 | 971 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
michael@0 | 972 | infodir=$ac_optarg ;; |
michael@0 | 973 | |
michael@0 | 974 | -libdir | --libdir | --libdi | --libd) |
michael@0 | 975 | ac_prev=libdir ;; |
michael@0 | 976 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
michael@0 | 977 | libdir=$ac_optarg ;; |
michael@0 | 978 | |
michael@0 | 979 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
michael@0 | 980 | | --libexe | --libex | --libe) |
michael@0 | 981 | ac_prev=libexecdir ;; |
michael@0 | 982 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
michael@0 | 983 | | --libexe=* | --libex=* | --libe=*) |
michael@0 | 984 | libexecdir=$ac_optarg ;; |
michael@0 | 985 | |
michael@0 | 986 | -localedir | --localedir | --localedi | --localed | --locale) |
michael@0 | 987 | ac_prev=localedir ;; |
michael@0 | 988 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
michael@0 | 989 | localedir=$ac_optarg ;; |
michael@0 | 990 | |
michael@0 | 991 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
michael@0 | 992 | | --localstate | --localstat | --localsta | --localst | --locals) |
michael@0 | 993 | ac_prev=localstatedir ;; |
michael@0 | 994 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
michael@0 | 995 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
michael@0 | 996 | localstatedir=$ac_optarg ;; |
michael@0 | 997 | |
michael@0 | 998 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
michael@0 | 999 | ac_prev=mandir ;; |
michael@0 | 1000 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
michael@0 | 1001 | mandir=$ac_optarg ;; |
michael@0 | 1002 | |
michael@0 | 1003 | -nfp | --nfp | --nf) |
michael@0 | 1004 | # Obsolete; use --without-fp. |
michael@0 | 1005 | with_fp=no ;; |
michael@0 | 1006 | |
michael@0 | 1007 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
michael@0 | 1008 | | --no-cr | --no-c | -n) |
michael@0 | 1009 | no_create=yes ;; |
michael@0 | 1010 | |
michael@0 | 1011 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
michael@0 | 1012 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
michael@0 | 1013 | no_recursion=yes ;; |
michael@0 | 1014 | |
michael@0 | 1015 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
michael@0 | 1016 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
michael@0 | 1017 | | --oldin | --oldi | --old | --ol | --o) |
michael@0 | 1018 | ac_prev=oldincludedir ;; |
michael@0 | 1019 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
michael@0 | 1020 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
michael@0 | 1021 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
michael@0 | 1022 | oldincludedir=$ac_optarg ;; |
michael@0 | 1023 | |
michael@0 | 1024 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
michael@0 | 1025 | ac_prev=prefix ;; |
michael@0 | 1026 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
michael@0 | 1027 | prefix=$ac_optarg ;; |
michael@0 | 1028 | |
michael@0 | 1029 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
michael@0 | 1030 | | --program-pre | --program-pr | --program-p) |
michael@0 | 1031 | ac_prev=program_prefix ;; |
michael@0 | 1032 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
michael@0 | 1033 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
michael@0 | 1034 | program_prefix=$ac_optarg ;; |
michael@0 | 1035 | |
michael@0 | 1036 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
michael@0 | 1037 | | --program-suf | --program-su | --program-s) |
michael@0 | 1038 | ac_prev=program_suffix ;; |
michael@0 | 1039 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
michael@0 | 1040 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
michael@0 | 1041 | program_suffix=$ac_optarg ;; |
michael@0 | 1042 | |
michael@0 | 1043 | -program-transform-name | --program-transform-name \ |
michael@0 | 1044 | | --program-transform-nam | --program-transform-na \ |
michael@0 | 1045 | | --program-transform-n | --program-transform- \ |
michael@0 | 1046 | | --program-transform | --program-transfor \ |
michael@0 | 1047 | | --program-transfo | --program-transf \ |
michael@0 | 1048 | | --program-trans | --program-tran \ |
michael@0 | 1049 | | --progr-tra | --program-tr | --program-t) |
michael@0 | 1050 | ac_prev=program_transform_name ;; |
michael@0 | 1051 | -program-transform-name=* | --program-transform-name=* \ |
michael@0 | 1052 | | --program-transform-nam=* | --program-transform-na=* \ |
michael@0 | 1053 | | --program-transform-n=* | --program-transform-=* \ |
michael@0 | 1054 | | --program-transform=* | --program-transfor=* \ |
michael@0 | 1055 | | --program-transfo=* | --program-transf=* \ |
michael@0 | 1056 | | --program-trans=* | --program-tran=* \ |
michael@0 | 1057 | | --progr-tra=* | --program-tr=* | --program-t=*) |
michael@0 | 1058 | program_transform_name=$ac_optarg ;; |
michael@0 | 1059 | |
michael@0 | 1060 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
michael@0 | 1061 | ac_prev=pdfdir ;; |
michael@0 | 1062 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
michael@0 | 1063 | pdfdir=$ac_optarg ;; |
michael@0 | 1064 | |
michael@0 | 1065 | -psdir | --psdir | --psdi | --psd | --ps) |
michael@0 | 1066 | ac_prev=psdir ;; |
michael@0 | 1067 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
michael@0 | 1068 | psdir=$ac_optarg ;; |
michael@0 | 1069 | |
michael@0 | 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 1071 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 1072 | silent=yes ;; |
michael@0 | 1073 | |
michael@0 | 1074 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
michael@0 | 1075 | ac_prev=sbindir ;; |
michael@0 | 1076 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
michael@0 | 1077 | | --sbi=* | --sb=*) |
michael@0 | 1078 | sbindir=$ac_optarg ;; |
michael@0 | 1079 | |
michael@0 | 1080 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
michael@0 | 1081 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
michael@0 | 1082 | | --sharedst | --shareds | --shared | --share | --shar \ |
michael@0 | 1083 | | --sha | --sh) |
michael@0 | 1084 | ac_prev=sharedstatedir ;; |
michael@0 | 1085 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
michael@0 | 1086 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
michael@0 | 1087 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
michael@0 | 1088 | | --sha=* | --sh=*) |
michael@0 | 1089 | sharedstatedir=$ac_optarg ;; |
michael@0 | 1090 | |
michael@0 | 1091 | -site | --site | --sit) |
michael@0 | 1092 | ac_prev=site ;; |
michael@0 | 1093 | -site=* | --site=* | --sit=*) |
michael@0 | 1094 | site=$ac_optarg ;; |
michael@0 | 1095 | |
michael@0 | 1096 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
michael@0 | 1097 | ac_prev=srcdir ;; |
michael@0 | 1098 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
michael@0 | 1099 | srcdir=$ac_optarg ;; |
michael@0 | 1100 | |
michael@0 | 1101 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
michael@0 | 1102 | | --syscon | --sysco | --sysc | --sys | --sy) |
michael@0 | 1103 | ac_prev=sysconfdir ;; |
michael@0 | 1104 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
michael@0 | 1105 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
michael@0 | 1106 | sysconfdir=$ac_optarg ;; |
michael@0 | 1107 | |
michael@0 | 1108 | -target | --target | --targe | --targ | --tar | --ta | --t) |
michael@0 | 1109 | ac_prev=target_alias ;; |
michael@0 | 1110 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
michael@0 | 1111 | target_alias=$ac_optarg ;; |
michael@0 | 1112 | |
michael@0 | 1113 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
michael@0 | 1114 | verbose=yes ;; |
michael@0 | 1115 | |
michael@0 | 1116 | -version | --version | --versio | --versi | --vers | -V) |
michael@0 | 1117 | ac_init_version=: ;; |
michael@0 | 1118 | |
michael@0 | 1119 | -with-* | --with-*) |
michael@0 | 1120 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
michael@0 | 1121 | # Reject names that are not valid shell variable names. |
michael@0 | 1122 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1123 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1124 | ac_useropt_orig=$ac_useropt |
michael@0 | 1125 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1126 | case $ac_user_opts in |
michael@0 | 1127 | *" |
michael@0 | 1128 | "with_$ac_useropt" |
michael@0 | 1129 | "*) ;; |
michael@0 | 1130 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
michael@0 | 1131 | ac_unrecognized_sep=', ';; |
michael@0 | 1132 | esac |
michael@0 | 1133 | eval with_$ac_useropt=\$ac_optarg ;; |
michael@0 | 1134 | |
michael@0 | 1135 | -without-* | --without-*) |
michael@0 | 1136 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
michael@0 | 1137 | # Reject names that are not valid shell variable names. |
michael@0 | 1138 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1139 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1140 | ac_useropt_orig=$ac_useropt |
michael@0 | 1141 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1142 | case $ac_user_opts in |
michael@0 | 1143 | *" |
michael@0 | 1144 | "with_$ac_useropt" |
michael@0 | 1145 | "*) ;; |
michael@0 | 1146 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
michael@0 | 1147 | ac_unrecognized_sep=', ';; |
michael@0 | 1148 | esac |
michael@0 | 1149 | eval with_$ac_useropt=no ;; |
michael@0 | 1150 | |
michael@0 | 1151 | --x) |
michael@0 | 1152 | # Obsolete; use --with-x. |
michael@0 | 1153 | with_x=yes ;; |
michael@0 | 1154 | |
michael@0 | 1155 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
michael@0 | 1156 | | --x-incl | --x-inc | --x-in | --x-i) |
michael@0 | 1157 | ac_prev=x_includes ;; |
michael@0 | 1158 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
michael@0 | 1159 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
michael@0 | 1160 | x_includes=$ac_optarg ;; |
michael@0 | 1161 | |
michael@0 | 1162 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
michael@0 | 1163 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
michael@0 | 1164 | ac_prev=x_libraries ;; |
michael@0 | 1165 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
michael@0 | 1166 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
michael@0 | 1167 | x_libraries=$ac_optarg ;; |
michael@0 | 1168 | |
michael@0 | 1169 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
michael@0 | 1170 | Try \`$0 --help' for more information" |
michael@0 | 1171 | ;; |
michael@0 | 1172 | |
michael@0 | 1173 | *=*) |
michael@0 | 1174 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
michael@0 | 1175 | # Reject names that are not valid shell variable names. |
michael@0 | 1176 | case $ac_envvar in #( |
michael@0 | 1177 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
michael@0 | 1178 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
michael@0 | 1179 | esac |
michael@0 | 1180 | eval $ac_envvar=\$ac_optarg |
michael@0 | 1181 | export $ac_envvar ;; |
michael@0 | 1182 | |
michael@0 | 1183 | *) |
michael@0 | 1184 | # FIXME: should be removed in autoconf 3.0. |
michael@0 | 1185 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
michael@0 | 1186 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
michael@0 | 1187 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
michael@0 | 1188 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
michael@0 | 1189 | ;; |
michael@0 | 1190 | |
michael@0 | 1191 | esac |
michael@0 | 1192 | done |
michael@0 | 1193 | |
michael@0 | 1194 | if test -n "$ac_prev"; then |
michael@0 | 1195 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
michael@0 | 1196 | as_fn_error $? "missing argument to $ac_option" |
michael@0 | 1197 | fi |
michael@0 | 1198 | |
michael@0 | 1199 | if test -n "$ac_unrecognized_opts"; then |
michael@0 | 1200 | case $enable_option_checking in |
michael@0 | 1201 | no) ;; |
michael@0 | 1202 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
michael@0 | 1203 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
michael@0 | 1204 | esac |
michael@0 | 1205 | fi |
michael@0 | 1206 | |
michael@0 | 1207 | # Check all directory arguments for consistency. |
michael@0 | 1208 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
michael@0 | 1209 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
michael@0 | 1210 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
michael@0 | 1211 | libdir localedir mandir |
michael@0 | 1212 | do |
michael@0 | 1213 | eval ac_val=\$$ac_var |
michael@0 | 1214 | # Remove trailing slashes. |
michael@0 | 1215 | case $ac_val in |
michael@0 | 1216 | */ ) |
michael@0 | 1217 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
michael@0 | 1218 | eval $ac_var=\$ac_val;; |
michael@0 | 1219 | esac |
michael@0 | 1220 | # Be sure to have absolute directory names. |
michael@0 | 1221 | case $ac_val in |
michael@0 | 1222 | [\\/$]* | ?:[\\/]* ) continue;; |
michael@0 | 1223 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
michael@0 | 1224 | esac |
michael@0 | 1225 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
michael@0 | 1226 | done |
michael@0 | 1227 | |
michael@0 | 1228 | # There might be people who depend on the old broken behavior: `$host' |
michael@0 | 1229 | # used to hold the argument of --host etc. |
michael@0 | 1230 | # FIXME: To remove some day. |
michael@0 | 1231 | build=$build_alias |
michael@0 | 1232 | host=$host_alias |
michael@0 | 1233 | target=$target_alias |
michael@0 | 1234 | |
michael@0 | 1235 | # FIXME: To remove some day. |
michael@0 | 1236 | if test "x$host_alias" != x; then |
michael@0 | 1237 | if test "x$build_alias" = x; then |
michael@0 | 1238 | cross_compiling=maybe |
michael@0 | 1239 | elif test "x$build_alias" != "x$host_alias"; then |
michael@0 | 1240 | cross_compiling=yes |
michael@0 | 1241 | fi |
michael@0 | 1242 | fi |
michael@0 | 1243 | |
michael@0 | 1244 | ac_tool_prefix= |
michael@0 | 1245 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
michael@0 | 1246 | |
michael@0 | 1247 | test "$silent" = yes && exec 6>/dev/null |
michael@0 | 1248 | |
michael@0 | 1249 | |
michael@0 | 1250 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
michael@0 | 1251 | ac_ls_di=`ls -di .` && |
michael@0 | 1252 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
michael@0 | 1253 | as_fn_error $? "working directory cannot be determined" |
michael@0 | 1254 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
michael@0 | 1255 | as_fn_error $? "pwd does not report name of working directory" |
michael@0 | 1256 | |
michael@0 | 1257 | |
michael@0 | 1258 | # Find the source files, if location was not specified. |
michael@0 | 1259 | if test -z "$srcdir"; then |
michael@0 | 1260 | ac_srcdir_defaulted=yes |
michael@0 | 1261 | # Try the directory containing this script, then the parent directory. |
michael@0 | 1262 | ac_confdir=`$as_dirname -- "$as_myself" || |
michael@0 | 1263 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 1264 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
michael@0 | 1265 | X"$as_myself" : 'X\(//\)$' \| \ |
michael@0 | 1266 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 1267 | $as_echo X"$as_myself" | |
michael@0 | 1268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 1269 | s//\1/ |
michael@0 | 1270 | q |
michael@0 | 1271 | } |
michael@0 | 1272 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 1273 | s//\1/ |
michael@0 | 1274 | q |
michael@0 | 1275 | } |
michael@0 | 1276 | /^X\(\/\/\)$/{ |
michael@0 | 1277 | s//\1/ |
michael@0 | 1278 | q |
michael@0 | 1279 | } |
michael@0 | 1280 | /^X\(\/\).*/{ |
michael@0 | 1281 | s//\1/ |
michael@0 | 1282 | q |
michael@0 | 1283 | } |
michael@0 | 1284 | s/.*/./; q'` |
michael@0 | 1285 | srcdir=$ac_confdir |
michael@0 | 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1287 | srcdir=.. |
michael@0 | 1288 | fi |
michael@0 | 1289 | else |
michael@0 | 1290 | ac_srcdir_defaulted=no |
michael@0 | 1291 | fi |
michael@0 | 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1293 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
michael@0 | 1294 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
michael@0 | 1295 | fi |
michael@0 | 1296 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
michael@0 | 1297 | ac_abs_confdir=`( |
michael@0 | 1298 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
michael@0 | 1299 | pwd)` |
michael@0 | 1300 | # When building in place, set srcdir=. |
michael@0 | 1301 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
michael@0 | 1302 | srcdir=. |
michael@0 | 1303 | fi |
michael@0 | 1304 | # Remove unnecessary trailing slashes from srcdir. |
michael@0 | 1305 | # Double slashes in file names in object file debugging info |
michael@0 | 1306 | # mess up M-x gdb in Emacs. |
michael@0 | 1307 | case $srcdir in |
michael@0 | 1308 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
michael@0 | 1309 | esac |
michael@0 | 1310 | for ac_var in $ac_precious_vars; do |
michael@0 | 1311 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1312 | eval ac_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1313 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1314 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1315 | done |
michael@0 | 1316 | |
michael@0 | 1317 | # |
michael@0 | 1318 | # Report the --help message. |
michael@0 | 1319 | # |
michael@0 | 1320 | if test "$ac_init_help" = "long"; then |
michael@0 | 1321 | # Omit some internal or obsolete options to make the list less imposing. |
michael@0 | 1322 | # This message is too long to be a string in the A/UX 3.1 sh. |
michael@0 | 1323 | cat <<_ACEOF |
michael@0 | 1324 | \`configure' configures this package to adapt to many kinds of systems. |
michael@0 | 1325 | |
michael@0 | 1326 | Usage: $0 [OPTION]... [VAR=VALUE]... |
michael@0 | 1327 | |
michael@0 | 1328 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
michael@0 | 1329 | VAR=VALUE. See below for descriptions of some of the useful variables. |
michael@0 | 1330 | |
michael@0 | 1331 | Defaults for the options are specified in brackets. |
michael@0 | 1332 | |
michael@0 | 1333 | Configuration: |
michael@0 | 1334 | -h, --help display this help and exit |
michael@0 | 1335 | --help=short display options specific to this package |
michael@0 | 1336 | --help=recursive display the short help of all the included packages |
michael@0 | 1337 | -V, --version display version information and exit |
michael@0 | 1338 | -q, --quiet, --silent do not print \`checking ...' messages |
michael@0 | 1339 | --cache-file=FILE cache test results in FILE [disabled] |
michael@0 | 1340 | -C, --config-cache alias for \`--cache-file=config.cache' |
michael@0 | 1341 | -n, --no-create do not create output files |
michael@0 | 1342 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
michael@0 | 1343 | |
michael@0 | 1344 | Installation directories: |
michael@0 | 1345 | --prefix=PREFIX install architecture-independent files in PREFIX |
michael@0 | 1346 | [$ac_default_prefix] |
michael@0 | 1347 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
michael@0 | 1348 | [PREFIX] |
michael@0 | 1349 | |
michael@0 | 1350 | By default, \`make install' will install all the files in |
michael@0 | 1351 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
michael@0 | 1352 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
michael@0 | 1353 | for instance \`--prefix=\$HOME'. |
michael@0 | 1354 | |
michael@0 | 1355 | For better control, use the options below. |
michael@0 | 1356 | |
michael@0 | 1357 | Fine tuning of the installation directories: |
michael@0 | 1358 | --bindir=DIR user executables [EPREFIX/bin] |
michael@0 | 1359 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
michael@0 | 1360 | --libexecdir=DIR program executables [EPREFIX/libexec] |
michael@0 | 1361 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
michael@0 | 1362 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
michael@0 | 1363 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
michael@0 | 1364 | --libdir=DIR object code libraries [EPREFIX/lib] |
michael@0 | 1365 | --includedir=DIR C header files [PREFIX/include] |
michael@0 | 1366 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
michael@0 | 1367 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
michael@0 | 1368 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
michael@0 | 1369 | --infodir=DIR info documentation [DATAROOTDIR/info] |
michael@0 | 1370 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
michael@0 | 1371 | --mandir=DIR man documentation [DATAROOTDIR/man] |
michael@0 | 1372 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
michael@0 | 1373 | --htmldir=DIR html documentation [DOCDIR] |
michael@0 | 1374 | --dvidir=DIR dvi documentation [DOCDIR] |
michael@0 | 1375 | --pdfdir=DIR pdf documentation [DOCDIR] |
michael@0 | 1376 | --psdir=DIR ps documentation [DOCDIR] |
michael@0 | 1377 | _ACEOF |
michael@0 | 1378 | |
michael@0 | 1379 | cat <<\_ACEOF |
michael@0 | 1380 | |
michael@0 | 1381 | System types: |
michael@0 | 1382 | --build=BUILD configure for building on BUILD [guessed] |
michael@0 | 1383 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
michael@0 | 1384 | _ACEOF |
michael@0 | 1385 | fi |
michael@0 | 1386 | |
michael@0 | 1387 | if test -n "$ac_init_help"; then |
michael@0 | 1388 | |
michael@0 | 1389 | cat <<\_ACEOF |
michael@0 | 1390 | |
michael@0 | 1391 | Optional Features: |
michael@0 | 1392 | --disable-option-checking ignore unrecognized --enable/--with options |
michael@0 | 1393 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
michael@0 | 1394 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
michael@0 | 1395 | --enable-autogen Automatically regenerate configure output |
michael@0 | 1396 | --disable-experimental Disable support for the experimental API |
michael@0 | 1397 | --enable-cc-silence Silence irrelevant compiler warnings |
michael@0 | 1398 | --enable-debug Build debugging code |
michael@0 | 1399 | --disable-stats Disable statistics calculation/reporting |
michael@0 | 1400 | --enable-prof Enable allocation profiling |
michael@0 | 1401 | --enable-prof-libunwind Use libunwind for backtracing |
michael@0 | 1402 | --disable-prof-libgcc Do not use libgcc for backtracing |
michael@0 | 1403 | --disable-prof-gcc Do not use gcc intrinsics for backtracing |
michael@0 | 1404 | --disable-tcache Disable per thread caches |
michael@0 | 1405 | --enable-mremap Enable mremap(2) for huge realloc() |
michael@0 | 1406 | --disable-munmap Disable VM deallocation via munmap(2) |
michael@0 | 1407 | --enable-dss Enable allocation from DSS |
michael@0 | 1408 | --disable-fill Disable support for junk/zero filling, quarantine, |
michael@0 | 1409 | and redzones |
michael@0 | 1410 | --enable-utrace Enable utrace(2)-based tracing |
michael@0 | 1411 | --disable-valgrind Disable support for Valgrind |
michael@0 | 1412 | --enable-xmalloc Support xmalloc option |
michael@0 | 1413 | --enable-lazy-lock Enable lazy locking (only lock when multi-threaded) |
michael@0 | 1414 | --disable-tls Disable thread-local storage (__thread keyword) |
michael@0 | 1415 | |
michael@0 | 1416 | Optional Packages: |
michael@0 | 1417 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
michael@0 | 1418 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
michael@0 | 1419 | --with-xslroot=<path> XSL stylesheet root path |
michael@0 | 1420 | --with-rpath=<rpath> Colon-separated rpath (ELF systems only) |
michael@0 | 1421 | --with-mangling=<map> Mangle symbols in <map> |
michael@0 | 1422 | --with-jemalloc-prefix=<prefix> |
michael@0 | 1423 | Prefix to prepend to all public APIs |
michael@0 | 1424 | --without-export disable exporting jemalloc public APIs |
michael@0 | 1425 | --with-private-namespace=<prefix> |
michael@0 | 1426 | Prefix to prepend to all library-private APIs |
michael@0 | 1427 | --with-install-suffix=<suffix> |
michael@0 | 1428 | Suffix to append to all installed files |
michael@0 | 1429 | --with-static-libunwind=<libunwind.a> |
michael@0 | 1430 | Path to static libunwind library; use rather than |
michael@0 | 1431 | dynamically linking |
michael@0 | 1432 | |
michael@0 | 1433 | Some influential environment variables: |
michael@0 | 1434 | CC C compiler command |
michael@0 | 1435 | CFLAGS C compiler flags |
michael@0 | 1436 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
michael@0 | 1437 | nonstandard directory <lib dir> |
michael@0 | 1438 | LIBS libraries to pass to the linker, e.g. -l<library> |
michael@0 | 1439 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
michael@0 | 1440 | you have headers in a nonstandard directory <include dir> |
michael@0 | 1441 | CPP C preprocessor |
michael@0 | 1442 | |
michael@0 | 1443 | Use these variables to override the choices made by `configure' or to help |
michael@0 | 1444 | it to find libraries and programs with nonstandard names/locations. |
michael@0 | 1445 | |
michael@0 | 1446 | Report bugs to the package provider. |
michael@0 | 1447 | _ACEOF |
michael@0 | 1448 | ac_status=$? |
michael@0 | 1449 | fi |
michael@0 | 1450 | |
michael@0 | 1451 | if test "$ac_init_help" = "recursive"; then |
michael@0 | 1452 | # If there are subdirs, report their specific --help. |
michael@0 | 1453 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
michael@0 | 1454 | test -d "$ac_dir" || |
michael@0 | 1455 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
michael@0 | 1456 | continue |
michael@0 | 1457 | ac_builddir=. |
michael@0 | 1458 | |
michael@0 | 1459 | case "$ac_dir" in |
michael@0 | 1460 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1461 | *) |
michael@0 | 1462 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 1463 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 1464 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 1465 | case $ac_top_builddir_sub in |
michael@0 | 1466 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1467 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 1468 | esac ;; |
michael@0 | 1469 | esac |
michael@0 | 1470 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 1471 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 1472 | # for backward compatibility: |
michael@0 | 1473 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 1474 | |
michael@0 | 1475 | case $srcdir in |
michael@0 | 1476 | .) # We are building in place. |
michael@0 | 1477 | ac_srcdir=. |
michael@0 | 1478 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 1479 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 1480 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 1481 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 1482 | ac_top_srcdir=$srcdir |
michael@0 | 1483 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 1484 | *) # Relative name. |
michael@0 | 1485 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 1486 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 1487 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 1488 | esac |
michael@0 | 1489 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 1490 | |
michael@0 | 1491 | cd "$ac_dir" || { ac_status=$?; continue; } |
michael@0 | 1492 | # Check for guested configure. |
michael@0 | 1493 | if test -f "$ac_srcdir/configure.gnu"; then |
michael@0 | 1494 | echo && |
michael@0 | 1495 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
michael@0 | 1496 | elif test -f "$ac_srcdir/configure"; then |
michael@0 | 1497 | echo && |
michael@0 | 1498 | $SHELL "$ac_srcdir/configure" --help=recursive |
michael@0 | 1499 | else |
michael@0 | 1500 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
michael@0 | 1501 | fi || ac_status=$? |
michael@0 | 1502 | cd "$ac_pwd" || { ac_status=$?; break; } |
michael@0 | 1503 | done |
michael@0 | 1504 | fi |
michael@0 | 1505 | |
michael@0 | 1506 | test -n "$ac_init_help" && exit $ac_status |
michael@0 | 1507 | if $ac_init_version; then |
michael@0 | 1508 | cat <<\_ACEOF |
michael@0 | 1509 | configure |
michael@0 | 1510 | generated by GNU Autoconf 2.69 |
michael@0 | 1511 | |
michael@0 | 1512 | Copyright (C) 2012 Free Software Foundation, Inc. |
michael@0 | 1513 | This configure script is free software; the Free Software Foundation |
michael@0 | 1514 | gives unlimited permission to copy, distribute and modify it. |
michael@0 | 1515 | _ACEOF |
michael@0 | 1516 | exit |
michael@0 | 1517 | fi |
michael@0 | 1518 | |
michael@0 | 1519 | ## ------------------------ ## |
michael@0 | 1520 | ## Autoconf initialization. ## |
michael@0 | 1521 | ## ------------------------ ## |
michael@0 | 1522 | |
michael@0 | 1523 | # ac_fn_c_try_compile LINENO |
michael@0 | 1524 | # -------------------------- |
michael@0 | 1525 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1526 | ac_fn_c_try_compile () |
michael@0 | 1527 | { |
michael@0 | 1528 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1529 | rm -f conftest.$ac_objext |
michael@0 | 1530 | if { { ac_try="$ac_compile" |
michael@0 | 1531 | case "(($ac_try" in |
michael@0 | 1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1533 | *) ac_try_echo=$ac_try;; |
michael@0 | 1534 | esac |
michael@0 | 1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1536 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1537 | (eval "$ac_compile") 2>conftest.err |
michael@0 | 1538 | ac_status=$? |
michael@0 | 1539 | if test -s conftest.err; then |
michael@0 | 1540 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1541 | cat conftest.er1 >&5 |
michael@0 | 1542 | mv -f conftest.er1 conftest.err |
michael@0 | 1543 | fi |
michael@0 | 1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1545 | test $ac_status = 0; } && { |
michael@0 | 1546 | test -z "$ac_c_werror_flag" || |
michael@0 | 1547 | test ! -s conftest.err |
michael@0 | 1548 | } && test -s conftest.$ac_objext; then : |
michael@0 | 1549 | ac_retval=0 |
michael@0 | 1550 | else |
michael@0 | 1551 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1552 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1553 | |
michael@0 | 1554 | ac_retval=1 |
michael@0 | 1555 | fi |
michael@0 | 1556 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1557 | as_fn_set_status $ac_retval |
michael@0 | 1558 | |
michael@0 | 1559 | } # ac_fn_c_try_compile |
michael@0 | 1560 | |
michael@0 | 1561 | # ac_fn_c_try_cpp LINENO |
michael@0 | 1562 | # ---------------------- |
michael@0 | 1563 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1564 | ac_fn_c_try_cpp () |
michael@0 | 1565 | { |
michael@0 | 1566 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1567 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
michael@0 | 1568 | case "(($ac_try" in |
michael@0 | 1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1570 | *) ac_try_echo=$ac_try;; |
michael@0 | 1571 | esac |
michael@0 | 1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1573 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
michael@0 | 1575 | ac_status=$? |
michael@0 | 1576 | if test -s conftest.err; then |
michael@0 | 1577 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1578 | cat conftest.er1 >&5 |
michael@0 | 1579 | mv -f conftest.er1 conftest.err |
michael@0 | 1580 | fi |
michael@0 | 1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1582 | test $ac_status = 0; } > conftest.i && { |
michael@0 | 1583 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
michael@0 | 1584 | test ! -s conftest.err |
michael@0 | 1585 | }; then : |
michael@0 | 1586 | ac_retval=0 |
michael@0 | 1587 | else |
michael@0 | 1588 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1589 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1590 | |
michael@0 | 1591 | ac_retval=1 |
michael@0 | 1592 | fi |
michael@0 | 1593 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1594 | as_fn_set_status $ac_retval |
michael@0 | 1595 | |
michael@0 | 1596 | } # ac_fn_c_try_cpp |
michael@0 | 1597 | |
michael@0 | 1598 | # ac_fn_c_try_run LINENO |
michael@0 | 1599 | # ---------------------- |
michael@0 | 1600 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
michael@0 | 1601 | # that executables *can* be run. |
michael@0 | 1602 | ac_fn_c_try_run () |
michael@0 | 1603 | { |
michael@0 | 1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1605 | if { { ac_try="$ac_link" |
michael@0 | 1606 | case "(($ac_try" in |
michael@0 | 1607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1608 | *) ac_try_echo=$ac_try;; |
michael@0 | 1609 | esac |
michael@0 | 1610 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1611 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1612 | (eval "$ac_link") 2>&5 |
michael@0 | 1613 | ac_status=$? |
michael@0 | 1614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1615 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
michael@0 | 1616 | { { case "(($ac_try" in |
michael@0 | 1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1618 | *) ac_try_echo=$ac_try;; |
michael@0 | 1619 | esac |
michael@0 | 1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1621 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1622 | (eval "$ac_try") 2>&5 |
michael@0 | 1623 | ac_status=$? |
michael@0 | 1624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1625 | test $ac_status = 0; }; }; then : |
michael@0 | 1626 | ac_retval=0 |
michael@0 | 1627 | else |
michael@0 | 1628 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
michael@0 | 1629 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1630 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1631 | |
michael@0 | 1632 | ac_retval=$ac_status |
michael@0 | 1633 | fi |
michael@0 | 1634 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1635 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1636 | as_fn_set_status $ac_retval |
michael@0 | 1637 | |
michael@0 | 1638 | } # ac_fn_c_try_run |
michael@0 | 1639 | |
michael@0 | 1640 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
michael@0 | 1641 | # -------------------------------------------- |
michael@0 | 1642 | # Tries to find the compile-time value of EXPR in a program that includes |
michael@0 | 1643 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
michael@0 | 1644 | # computed |
michael@0 | 1645 | ac_fn_c_compute_int () |
michael@0 | 1646 | { |
michael@0 | 1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1648 | if test "$cross_compiling" = yes; then |
michael@0 | 1649 | # Depending upon the size, compute the lo and hi bounds. |
michael@0 | 1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1651 | /* end confdefs.h. */ |
michael@0 | 1652 | $4 |
michael@0 | 1653 | int |
michael@0 | 1654 | main () |
michael@0 | 1655 | { |
michael@0 | 1656 | static int test_array [1 - 2 * !(($2) >= 0)]; |
michael@0 | 1657 | test_array [0] = 0; |
michael@0 | 1658 | return test_array [0]; |
michael@0 | 1659 | |
michael@0 | 1660 | ; |
michael@0 | 1661 | return 0; |
michael@0 | 1662 | } |
michael@0 | 1663 | _ACEOF |
michael@0 | 1664 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1665 | ac_lo=0 ac_mid=0 |
michael@0 | 1666 | while :; do |
michael@0 | 1667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1668 | /* end confdefs.h. */ |
michael@0 | 1669 | $4 |
michael@0 | 1670 | int |
michael@0 | 1671 | main () |
michael@0 | 1672 | { |
michael@0 | 1673 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
michael@0 | 1674 | test_array [0] = 0; |
michael@0 | 1675 | return test_array [0]; |
michael@0 | 1676 | |
michael@0 | 1677 | ; |
michael@0 | 1678 | return 0; |
michael@0 | 1679 | } |
michael@0 | 1680 | _ACEOF |
michael@0 | 1681 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1682 | ac_hi=$ac_mid; break |
michael@0 | 1683 | else |
michael@0 | 1684 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
michael@0 | 1685 | if test $ac_lo -le $ac_mid; then |
michael@0 | 1686 | ac_lo= ac_hi= |
michael@0 | 1687 | break |
michael@0 | 1688 | fi |
michael@0 | 1689 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
michael@0 | 1690 | fi |
michael@0 | 1691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1692 | done |
michael@0 | 1693 | else |
michael@0 | 1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1695 | /* end confdefs.h. */ |
michael@0 | 1696 | $4 |
michael@0 | 1697 | int |
michael@0 | 1698 | main () |
michael@0 | 1699 | { |
michael@0 | 1700 | static int test_array [1 - 2 * !(($2) < 0)]; |
michael@0 | 1701 | test_array [0] = 0; |
michael@0 | 1702 | return test_array [0]; |
michael@0 | 1703 | |
michael@0 | 1704 | ; |
michael@0 | 1705 | return 0; |
michael@0 | 1706 | } |
michael@0 | 1707 | _ACEOF |
michael@0 | 1708 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1709 | ac_hi=-1 ac_mid=-1 |
michael@0 | 1710 | while :; do |
michael@0 | 1711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1712 | /* end confdefs.h. */ |
michael@0 | 1713 | $4 |
michael@0 | 1714 | int |
michael@0 | 1715 | main () |
michael@0 | 1716 | { |
michael@0 | 1717 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
michael@0 | 1718 | test_array [0] = 0; |
michael@0 | 1719 | return test_array [0]; |
michael@0 | 1720 | |
michael@0 | 1721 | ; |
michael@0 | 1722 | return 0; |
michael@0 | 1723 | } |
michael@0 | 1724 | _ACEOF |
michael@0 | 1725 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1726 | ac_lo=$ac_mid; break |
michael@0 | 1727 | else |
michael@0 | 1728 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
michael@0 | 1729 | if test $ac_mid -le $ac_hi; then |
michael@0 | 1730 | ac_lo= ac_hi= |
michael@0 | 1731 | break |
michael@0 | 1732 | fi |
michael@0 | 1733 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
michael@0 | 1734 | fi |
michael@0 | 1735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1736 | done |
michael@0 | 1737 | else |
michael@0 | 1738 | ac_lo= ac_hi= |
michael@0 | 1739 | fi |
michael@0 | 1740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1741 | fi |
michael@0 | 1742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1743 | # Binary search between lo and hi bounds. |
michael@0 | 1744 | while test "x$ac_lo" != "x$ac_hi"; do |
michael@0 | 1745 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
michael@0 | 1746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1747 | /* end confdefs.h. */ |
michael@0 | 1748 | $4 |
michael@0 | 1749 | int |
michael@0 | 1750 | main () |
michael@0 | 1751 | { |
michael@0 | 1752 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
michael@0 | 1753 | test_array [0] = 0; |
michael@0 | 1754 | return test_array [0]; |
michael@0 | 1755 | |
michael@0 | 1756 | ; |
michael@0 | 1757 | return 0; |
michael@0 | 1758 | } |
michael@0 | 1759 | _ACEOF |
michael@0 | 1760 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1761 | ac_hi=$ac_mid |
michael@0 | 1762 | else |
michael@0 | 1763 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
michael@0 | 1764 | fi |
michael@0 | 1765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1766 | done |
michael@0 | 1767 | case $ac_lo in #(( |
michael@0 | 1768 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
michael@0 | 1769 | '') ac_retval=1 ;; |
michael@0 | 1770 | esac |
michael@0 | 1771 | else |
michael@0 | 1772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1773 | /* end confdefs.h. */ |
michael@0 | 1774 | $4 |
michael@0 | 1775 | static long int longval () { return $2; } |
michael@0 | 1776 | static unsigned long int ulongval () { return $2; } |
michael@0 | 1777 | #include <stdio.h> |
michael@0 | 1778 | #include <stdlib.h> |
michael@0 | 1779 | int |
michael@0 | 1780 | main () |
michael@0 | 1781 | { |
michael@0 | 1782 | |
michael@0 | 1783 | FILE *f = fopen ("conftest.val", "w"); |
michael@0 | 1784 | if (! f) |
michael@0 | 1785 | return 1; |
michael@0 | 1786 | if (($2) < 0) |
michael@0 | 1787 | { |
michael@0 | 1788 | long int i = longval (); |
michael@0 | 1789 | if (i != ($2)) |
michael@0 | 1790 | return 1; |
michael@0 | 1791 | fprintf (f, "%ld", i); |
michael@0 | 1792 | } |
michael@0 | 1793 | else |
michael@0 | 1794 | { |
michael@0 | 1795 | unsigned long int i = ulongval (); |
michael@0 | 1796 | if (i != ($2)) |
michael@0 | 1797 | return 1; |
michael@0 | 1798 | fprintf (f, "%lu", i); |
michael@0 | 1799 | } |
michael@0 | 1800 | /* Do not output a trailing newline, as this causes \r\n confusion |
michael@0 | 1801 | on some platforms. */ |
michael@0 | 1802 | return ferror (f) || fclose (f) != 0; |
michael@0 | 1803 | |
michael@0 | 1804 | ; |
michael@0 | 1805 | return 0; |
michael@0 | 1806 | } |
michael@0 | 1807 | _ACEOF |
michael@0 | 1808 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 1809 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
michael@0 | 1810 | else |
michael@0 | 1811 | ac_retval=1 |
michael@0 | 1812 | fi |
michael@0 | 1813 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 1814 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 1815 | rm -f conftest.val |
michael@0 | 1816 | |
michael@0 | 1817 | fi |
michael@0 | 1818 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1819 | as_fn_set_status $ac_retval |
michael@0 | 1820 | |
michael@0 | 1821 | } # ac_fn_c_compute_int |
michael@0 | 1822 | |
michael@0 | 1823 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
michael@0 | 1824 | # ------------------------------------------------------- |
michael@0 | 1825 | # Tests whether HEADER exists and can be compiled using the include files in |
michael@0 | 1826 | # INCLUDES, setting the cache variable VAR accordingly. |
michael@0 | 1827 | ac_fn_c_check_header_compile () |
michael@0 | 1828 | { |
michael@0 | 1829 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1831 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1832 | if eval \${$3+:} false; then : |
michael@0 | 1833 | $as_echo_n "(cached) " >&6 |
michael@0 | 1834 | else |
michael@0 | 1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1836 | /* end confdefs.h. */ |
michael@0 | 1837 | $4 |
michael@0 | 1838 | #include <$2> |
michael@0 | 1839 | _ACEOF |
michael@0 | 1840 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1841 | eval "$3=yes" |
michael@0 | 1842 | else |
michael@0 | 1843 | eval "$3=no" |
michael@0 | 1844 | fi |
michael@0 | 1845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1846 | fi |
michael@0 | 1847 | eval ac_res=\$$3 |
michael@0 | 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1849 | $as_echo "$ac_res" >&6; } |
michael@0 | 1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1851 | |
michael@0 | 1852 | } # ac_fn_c_check_header_compile |
michael@0 | 1853 | |
michael@0 | 1854 | # ac_fn_c_try_link LINENO |
michael@0 | 1855 | # ----------------------- |
michael@0 | 1856 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1857 | ac_fn_c_try_link () |
michael@0 | 1858 | { |
michael@0 | 1859 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1860 | rm -f conftest.$ac_objext conftest$ac_exeext |
michael@0 | 1861 | if { { ac_try="$ac_link" |
michael@0 | 1862 | case "(($ac_try" in |
michael@0 | 1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1864 | *) ac_try_echo=$ac_try;; |
michael@0 | 1865 | esac |
michael@0 | 1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1867 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1868 | (eval "$ac_link") 2>conftest.err |
michael@0 | 1869 | ac_status=$? |
michael@0 | 1870 | if test -s conftest.err; then |
michael@0 | 1871 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1872 | cat conftest.er1 >&5 |
michael@0 | 1873 | mv -f conftest.er1 conftest.err |
michael@0 | 1874 | fi |
michael@0 | 1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1876 | test $ac_status = 0; } && { |
michael@0 | 1877 | test -z "$ac_c_werror_flag" || |
michael@0 | 1878 | test ! -s conftest.err |
michael@0 | 1879 | } && test -s conftest$ac_exeext && { |
michael@0 | 1880 | test "$cross_compiling" = yes || |
michael@0 | 1881 | test -x conftest$ac_exeext |
michael@0 | 1882 | }; then : |
michael@0 | 1883 | ac_retval=0 |
michael@0 | 1884 | else |
michael@0 | 1885 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1886 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1887 | |
michael@0 | 1888 | ac_retval=1 |
michael@0 | 1889 | fi |
michael@0 | 1890 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
michael@0 | 1891 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
michael@0 | 1892 | # interfere with the next link command; also delete a directory that is |
michael@0 | 1893 | # left behind by Apple's compiler. We do this before executing the actions. |
michael@0 | 1894 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1895 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1896 | as_fn_set_status $ac_retval |
michael@0 | 1897 | |
michael@0 | 1898 | } # ac_fn_c_try_link |
michael@0 | 1899 | |
michael@0 | 1900 | # ac_fn_c_check_func LINENO FUNC VAR |
michael@0 | 1901 | # ---------------------------------- |
michael@0 | 1902 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
michael@0 | 1903 | ac_fn_c_check_func () |
michael@0 | 1904 | { |
michael@0 | 1905 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1907 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1908 | if eval \${$3+:} false; then : |
michael@0 | 1909 | $as_echo_n "(cached) " >&6 |
michael@0 | 1910 | else |
michael@0 | 1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1912 | /* end confdefs.h. */ |
michael@0 | 1913 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
michael@0 | 1914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
michael@0 | 1915 | #define $2 innocuous_$2 |
michael@0 | 1916 | |
michael@0 | 1917 | /* System header to define __stub macros and hopefully few prototypes, |
michael@0 | 1918 | which can conflict with char $2 (); below. |
michael@0 | 1919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 1920 | <limits.h> exists even on freestanding compilers. */ |
michael@0 | 1921 | |
michael@0 | 1922 | #ifdef __STDC__ |
michael@0 | 1923 | # include <limits.h> |
michael@0 | 1924 | #else |
michael@0 | 1925 | # include <assert.h> |
michael@0 | 1926 | #endif |
michael@0 | 1927 | |
michael@0 | 1928 | #undef $2 |
michael@0 | 1929 | |
michael@0 | 1930 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 1931 | Use char because int might match the return type of a GCC |
michael@0 | 1932 | builtin and then its argument prototype would still apply. */ |
michael@0 | 1933 | #ifdef __cplusplus |
michael@0 | 1934 | extern "C" |
michael@0 | 1935 | #endif |
michael@0 | 1936 | char $2 (); |
michael@0 | 1937 | /* The GNU C library defines this for functions which it implements |
michael@0 | 1938 | to always fail with ENOSYS. Some functions are actually named |
michael@0 | 1939 | something starting with __ and the normal name is an alias. */ |
michael@0 | 1940 | #if defined __stub_$2 || defined __stub___$2 |
michael@0 | 1941 | choke me |
michael@0 | 1942 | #endif |
michael@0 | 1943 | |
michael@0 | 1944 | int |
michael@0 | 1945 | main () |
michael@0 | 1946 | { |
michael@0 | 1947 | return $2 (); |
michael@0 | 1948 | ; |
michael@0 | 1949 | return 0; |
michael@0 | 1950 | } |
michael@0 | 1951 | _ACEOF |
michael@0 | 1952 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 1953 | eval "$3=yes" |
michael@0 | 1954 | else |
michael@0 | 1955 | eval "$3=no" |
michael@0 | 1956 | fi |
michael@0 | 1957 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 1958 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 1959 | fi |
michael@0 | 1960 | eval ac_res=\$$3 |
michael@0 | 1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1962 | $as_echo "$ac_res" >&6; } |
michael@0 | 1963 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1964 | |
michael@0 | 1965 | } # ac_fn_c_check_func |
michael@0 | 1966 | |
michael@0 | 1967 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
michael@0 | 1968 | # ------------------------------------------------------- |
michael@0 | 1969 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
michael@0 | 1970 | # the include files in INCLUDES and setting the cache variable VAR |
michael@0 | 1971 | # accordingly. |
michael@0 | 1972 | ac_fn_c_check_header_mongrel () |
michael@0 | 1973 | { |
michael@0 | 1974 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1975 | if eval \${$3+:} false; then : |
michael@0 | 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1977 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1978 | if eval \${$3+:} false; then : |
michael@0 | 1979 | $as_echo_n "(cached) " >&6 |
michael@0 | 1980 | fi |
michael@0 | 1981 | eval ac_res=\$$3 |
michael@0 | 1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1983 | $as_echo "$ac_res" >&6; } |
michael@0 | 1984 | else |
michael@0 | 1985 | # Is the header compilable? |
michael@0 | 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
michael@0 | 1987 | $as_echo_n "checking $2 usability... " >&6; } |
michael@0 | 1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1989 | /* end confdefs.h. */ |
michael@0 | 1990 | $4 |
michael@0 | 1991 | #include <$2> |
michael@0 | 1992 | _ACEOF |
michael@0 | 1993 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1994 | ac_header_compiler=yes |
michael@0 | 1995 | else |
michael@0 | 1996 | ac_header_compiler=no |
michael@0 | 1997 | fi |
michael@0 | 1998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
michael@0 | 2000 | $as_echo "$ac_header_compiler" >&6; } |
michael@0 | 2001 | |
michael@0 | 2002 | # Is the header present? |
michael@0 | 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
michael@0 | 2004 | $as_echo_n "checking $2 presence... " >&6; } |
michael@0 | 2005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2006 | /* end confdefs.h. */ |
michael@0 | 2007 | #include <$2> |
michael@0 | 2008 | _ACEOF |
michael@0 | 2009 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 2010 | ac_header_preproc=yes |
michael@0 | 2011 | else |
michael@0 | 2012 | ac_header_preproc=no |
michael@0 | 2013 | fi |
michael@0 | 2014 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
michael@0 | 2016 | $as_echo "$ac_header_preproc" >&6; } |
michael@0 | 2017 | |
michael@0 | 2018 | # So? What about this header? |
michael@0 | 2019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
michael@0 | 2020 | yes:no: ) |
michael@0 | 2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
michael@0 | 2022 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
michael@0 | 2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 2024 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 2025 | ;; |
michael@0 | 2026 | no:yes:* ) |
michael@0 | 2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
michael@0 | 2028 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
michael@0 | 2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
michael@0 | 2030 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
michael@0 | 2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
michael@0 | 2032 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
michael@0 | 2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
michael@0 | 2034 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
michael@0 | 2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 2036 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 2037 | ;; |
michael@0 | 2038 | esac |
michael@0 | 2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 2040 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 2041 | if eval \${$3+:} false; then : |
michael@0 | 2042 | $as_echo_n "(cached) " >&6 |
michael@0 | 2043 | else |
michael@0 | 2044 | eval "$3=\$ac_header_compiler" |
michael@0 | 2045 | fi |
michael@0 | 2046 | eval ac_res=\$$3 |
michael@0 | 2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 2048 | $as_echo "$ac_res" >&6; } |
michael@0 | 2049 | fi |
michael@0 | 2050 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 2051 | |
michael@0 | 2052 | } # ac_fn_c_check_header_mongrel |
michael@0 | 2053 | |
michael@0 | 2054 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
michael@0 | 2055 | # ------------------------------------------- |
michael@0 | 2056 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
michael@0 | 2057 | # variable VAR accordingly. |
michael@0 | 2058 | ac_fn_c_check_type () |
michael@0 | 2059 | { |
michael@0 | 2060 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 2062 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 2063 | if eval \${$3+:} false; then : |
michael@0 | 2064 | $as_echo_n "(cached) " >&6 |
michael@0 | 2065 | else |
michael@0 | 2066 | eval "$3=no" |
michael@0 | 2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2068 | /* end confdefs.h. */ |
michael@0 | 2069 | $4 |
michael@0 | 2070 | int |
michael@0 | 2071 | main () |
michael@0 | 2072 | { |
michael@0 | 2073 | if (sizeof ($2)) |
michael@0 | 2074 | return 0; |
michael@0 | 2075 | ; |
michael@0 | 2076 | return 0; |
michael@0 | 2077 | } |
michael@0 | 2078 | _ACEOF |
michael@0 | 2079 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2081 | /* end confdefs.h. */ |
michael@0 | 2082 | $4 |
michael@0 | 2083 | int |
michael@0 | 2084 | main () |
michael@0 | 2085 | { |
michael@0 | 2086 | if (sizeof (($2))) |
michael@0 | 2087 | return 0; |
michael@0 | 2088 | ; |
michael@0 | 2089 | return 0; |
michael@0 | 2090 | } |
michael@0 | 2091 | _ACEOF |
michael@0 | 2092 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 2093 | |
michael@0 | 2094 | else |
michael@0 | 2095 | eval "$3=yes" |
michael@0 | 2096 | fi |
michael@0 | 2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 2098 | fi |
michael@0 | 2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 2100 | fi |
michael@0 | 2101 | eval ac_res=\$$3 |
michael@0 | 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 2103 | $as_echo "$ac_res" >&6; } |
michael@0 | 2104 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 2105 | |
michael@0 | 2106 | } # ac_fn_c_check_type |
michael@0 | 2107 | cat >config.log <<_ACEOF |
michael@0 | 2108 | This file contains any messages produced by compilers while |
michael@0 | 2109 | running configure, to aid debugging if configure makes a mistake. |
michael@0 | 2110 | |
michael@0 | 2111 | It was created by $as_me, which was |
michael@0 | 2112 | generated by GNU Autoconf 2.69. Invocation command line was |
michael@0 | 2113 | |
michael@0 | 2114 | $ $0 $@ |
michael@0 | 2115 | |
michael@0 | 2116 | _ACEOF |
michael@0 | 2117 | exec 5>>config.log |
michael@0 | 2118 | { |
michael@0 | 2119 | cat <<_ASUNAME |
michael@0 | 2120 | ## --------- ## |
michael@0 | 2121 | ## Platform. ## |
michael@0 | 2122 | ## --------- ## |
michael@0 | 2123 | |
michael@0 | 2124 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 2125 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
michael@0 | 2126 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
michael@0 | 2127 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
michael@0 | 2128 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
michael@0 | 2129 | |
michael@0 | 2130 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
michael@0 | 2131 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
michael@0 | 2132 | |
michael@0 | 2133 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
michael@0 | 2134 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
michael@0 | 2135 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
michael@0 | 2136 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
michael@0 | 2137 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
michael@0 | 2138 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
michael@0 | 2139 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
michael@0 | 2140 | |
michael@0 | 2141 | _ASUNAME |
michael@0 | 2142 | |
michael@0 | 2143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2144 | for as_dir in $PATH |
michael@0 | 2145 | do |
michael@0 | 2146 | IFS=$as_save_IFS |
michael@0 | 2147 | test -z "$as_dir" && as_dir=. |
michael@0 | 2148 | $as_echo "PATH: $as_dir" |
michael@0 | 2149 | done |
michael@0 | 2150 | IFS=$as_save_IFS |
michael@0 | 2151 | |
michael@0 | 2152 | } >&5 |
michael@0 | 2153 | |
michael@0 | 2154 | cat >&5 <<_ACEOF |
michael@0 | 2155 | |
michael@0 | 2156 | |
michael@0 | 2157 | ## ----------- ## |
michael@0 | 2158 | ## Core tests. ## |
michael@0 | 2159 | ## ----------- ## |
michael@0 | 2160 | |
michael@0 | 2161 | _ACEOF |
michael@0 | 2162 | |
michael@0 | 2163 | |
michael@0 | 2164 | # Keep a trace of the command line. |
michael@0 | 2165 | # Strip out --no-create and --no-recursion so they do not pile up. |
michael@0 | 2166 | # Strip out --silent because we don't want to record it for future runs. |
michael@0 | 2167 | # Also quote any args containing shell meta-characters. |
michael@0 | 2168 | # Make two passes to allow for proper duplicate-argument suppression. |
michael@0 | 2169 | ac_configure_args= |
michael@0 | 2170 | ac_configure_args0= |
michael@0 | 2171 | ac_configure_args1= |
michael@0 | 2172 | ac_must_keep_next=false |
michael@0 | 2173 | for ac_pass in 1 2 |
michael@0 | 2174 | do |
michael@0 | 2175 | for ac_arg |
michael@0 | 2176 | do |
michael@0 | 2177 | case $ac_arg in |
michael@0 | 2178 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
michael@0 | 2179 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 2180 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 2181 | continue ;; |
michael@0 | 2182 | *\'*) |
michael@0 | 2183 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2184 | esac |
michael@0 | 2185 | case $ac_pass in |
michael@0 | 2186 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
michael@0 | 2187 | 2) |
michael@0 | 2188 | as_fn_append ac_configure_args1 " '$ac_arg'" |
michael@0 | 2189 | if test $ac_must_keep_next = true; then |
michael@0 | 2190 | ac_must_keep_next=false # Got value, back to normal. |
michael@0 | 2191 | else |
michael@0 | 2192 | case $ac_arg in |
michael@0 | 2193 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
michael@0 | 2194 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
michael@0 | 2195 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
michael@0 | 2196 | | -with-* | --with-* | -without-* | --without-* | --x) |
michael@0 | 2197 | case "$ac_configure_args0 " in |
michael@0 | 2198 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
michael@0 | 2199 | esac |
michael@0 | 2200 | ;; |
michael@0 | 2201 | -* ) ac_must_keep_next=true ;; |
michael@0 | 2202 | esac |
michael@0 | 2203 | fi |
michael@0 | 2204 | as_fn_append ac_configure_args " '$ac_arg'" |
michael@0 | 2205 | ;; |
michael@0 | 2206 | esac |
michael@0 | 2207 | done |
michael@0 | 2208 | done |
michael@0 | 2209 | { ac_configure_args0=; unset ac_configure_args0;} |
michael@0 | 2210 | { ac_configure_args1=; unset ac_configure_args1;} |
michael@0 | 2211 | |
michael@0 | 2212 | # When interrupted or exit'd, cleanup temporary files, and complete |
michael@0 | 2213 | # config.log. We remove comments because anyway the quotes in there |
michael@0 | 2214 | # would cause problems or look ugly. |
michael@0 | 2215 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
michael@0 | 2216 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
michael@0 | 2217 | trap 'exit_status=$? |
michael@0 | 2218 | # Save into config.log some information that might help in debugging. |
michael@0 | 2219 | { |
michael@0 | 2220 | echo |
michael@0 | 2221 | |
michael@0 | 2222 | $as_echo "## ---------------- ## |
michael@0 | 2223 | ## Cache variables. ## |
michael@0 | 2224 | ## ---------------- ##" |
michael@0 | 2225 | echo |
michael@0 | 2226 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 2227 | ( |
michael@0 | 2228 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
michael@0 | 2229 | eval ac_val=\$$ac_var |
michael@0 | 2230 | case $ac_val in #( |
michael@0 | 2231 | *${as_nl}*) |
michael@0 | 2232 | case $ac_var in #( |
michael@0 | 2233 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 2234 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 2235 | esac |
michael@0 | 2236 | case $ac_var in #( |
michael@0 | 2237 | _ | IFS | as_nl) ;; #( |
michael@0 | 2238 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 2239 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 2240 | esac ;; |
michael@0 | 2241 | esac |
michael@0 | 2242 | done |
michael@0 | 2243 | (set) 2>&1 | |
michael@0 | 2244 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
michael@0 | 2245 | *${as_nl}ac_space=\ *) |
michael@0 | 2246 | sed -n \ |
michael@0 | 2247 | "s/'\''/'\''\\\\'\'''\''/g; |
michael@0 | 2248 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
michael@0 | 2249 | ;; #( |
michael@0 | 2250 | *) |
michael@0 | 2251 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 2252 | ;; |
michael@0 | 2253 | esac | |
michael@0 | 2254 | sort |
michael@0 | 2255 | ) |
michael@0 | 2256 | echo |
michael@0 | 2257 | |
michael@0 | 2258 | $as_echo "## ----------------- ## |
michael@0 | 2259 | ## Output variables. ## |
michael@0 | 2260 | ## ----------------- ##" |
michael@0 | 2261 | echo |
michael@0 | 2262 | for ac_var in $ac_subst_vars |
michael@0 | 2263 | do |
michael@0 | 2264 | eval ac_val=\$$ac_var |
michael@0 | 2265 | case $ac_val in |
michael@0 | 2266 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2267 | esac |
michael@0 | 2268 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2269 | done | sort |
michael@0 | 2270 | echo |
michael@0 | 2271 | |
michael@0 | 2272 | if test -n "$ac_subst_files"; then |
michael@0 | 2273 | $as_echo "## ------------------- ## |
michael@0 | 2274 | ## File substitutions. ## |
michael@0 | 2275 | ## ------------------- ##" |
michael@0 | 2276 | echo |
michael@0 | 2277 | for ac_var in $ac_subst_files |
michael@0 | 2278 | do |
michael@0 | 2279 | eval ac_val=\$$ac_var |
michael@0 | 2280 | case $ac_val in |
michael@0 | 2281 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2282 | esac |
michael@0 | 2283 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2284 | done | sort |
michael@0 | 2285 | echo |
michael@0 | 2286 | fi |
michael@0 | 2287 | |
michael@0 | 2288 | if test -s confdefs.h; then |
michael@0 | 2289 | $as_echo "## ----------- ## |
michael@0 | 2290 | ## confdefs.h. ## |
michael@0 | 2291 | ## ----------- ##" |
michael@0 | 2292 | echo |
michael@0 | 2293 | cat confdefs.h |
michael@0 | 2294 | echo |
michael@0 | 2295 | fi |
michael@0 | 2296 | test "$ac_signal" != 0 && |
michael@0 | 2297 | $as_echo "$as_me: caught signal $ac_signal" |
michael@0 | 2298 | $as_echo "$as_me: exit $exit_status" |
michael@0 | 2299 | } >&5 |
michael@0 | 2300 | rm -f core *.core core.conftest.* && |
michael@0 | 2301 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
michael@0 | 2302 | exit $exit_status |
michael@0 | 2303 | ' 0 |
michael@0 | 2304 | for ac_signal in 1 2 13 15; do |
michael@0 | 2305 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
michael@0 | 2306 | done |
michael@0 | 2307 | ac_signal=0 |
michael@0 | 2308 | |
michael@0 | 2309 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
michael@0 | 2310 | rm -f -r conftest* confdefs.h |
michael@0 | 2311 | |
michael@0 | 2312 | $as_echo "/* confdefs.h */" > confdefs.h |
michael@0 | 2313 | |
michael@0 | 2314 | # Predefined preprocessor variables. |
michael@0 | 2315 | |
michael@0 | 2316 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2317 | #define PACKAGE_NAME "$PACKAGE_NAME" |
michael@0 | 2318 | _ACEOF |
michael@0 | 2319 | |
michael@0 | 2320 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2321 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
michael@0 | 2322 | _ACEOF |
michael@0 | 2323 | |
michael@0 | 2324 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2325 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
michael@0 | 2326 | _ACEOF |
michael@0 | 2327 | |
michael@0 | 2328 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2329 | #define PACKAGE_STRING "$PACKAGE_STRING" |
michael@0 | 2330 | _ACEOF |
michael@0 | 2331 | |
michael@0 | 2332 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2333 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
michael@0 | 2334 | _ACEOF |
michael@0 | 2335 | |
michael@0 | 2336 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2337 | #define PACKAGE_URL "$PACKAGE_URL" |
michael@0 | 2338 | _ACEOF |
michael@0 | 2339 | |
michael@0 | 2340 | |
michael@0 | 2341 | # Let the site file select an alternate cache file if it wants to. |
michael@0 | 2342 | # Prefer an explicitly selected file to automatically selected ones. |
michael@0 | 2343 | ac_site_file1=NONE |
michael@0 | 2344 | ac_site_file2=NONE |
michael@0 | 2345 | if test -n "$CONFIG_SITE"; then |
michael@0 | 2346 | # We do not want a PATH search for config.site. |
michael@0 | 2347 | case $CONFIG_SITE in #(( |
michael@0 | 2348 | -*) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2349 | */*) ac_site_file1=$CONFIG_SITE;; |
michael@0 | 2350 | *) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2351 | esac |
michael@0 | 2352 | elif test "x$prefix" != xNONE; then |
michael@0 | 2353 | ac_site_file1=$prefix/share/config.site |
michael@0 | 2354 | ac_site_file2=$prefix/etc/config.site |
michael@0 | 2355 | else |
michael@0 | 2356 | ac_site_file1=$ac_default_prefix/share/config.site |
michael@0 | 2357 | ac_site_file2=$ac_default_prefix/etc/config.site |
michael@0 | 2358 | fi |
michael@0 | 2359 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
michael@0 | 2360 | do |
michael@0 | 2361 | test "x$ac_site_file" = xNONE && continue |
michael@0 | 2362 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
michael@0 | 2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
michael@0 | 2364 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
michael@0 | 2365 | sed 's/^/| /' "$ac_site_file" >&5 |
michael@0 | 2366 | . "$ac_site_file" \ |
michael@0 | 2367 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2369 | as_fn_error $? "failed to load site script $ac_site_file |
michael@0 | 2370 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2371 | fi |
michael@0 | 2372 | done |
michael@0 | 2373 | |
michael@0 | 2374 | if test -r "$cache_file"; then |
michael@0 | 2375 | # Some versions of bash will fail to source /dev/null (special files |
michael@0 | 2376 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
michael@0 | 2377 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
michael@0 | 2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
michael@0 | 2379 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
michael@0 | 2380 | case $cache_file in |
michael@0 | 2381 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
michael@0 | 2382 | *) . "./$cache_file";; |
michael@0 | 2383 | esac |
michael@0 | 2384 | fi |
michael@0 | 2385 | else |
michael@0 | 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
michael@0 | 2387 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
michael@0 | 2388 | >$cache_file |
michael@0 | 2389 | fi |
michael@0 | 2390 | |
michael@0 | 2391 | # Check that the precious variables saved in the cache have kept the same |
michael@0 | 2392 | # value. |
michael@0 | 2393 | ac_cache_corrupted=false |
michael@0 | 2394 | for ac_var in $ac_precious_vars; do |
michael@0 | 2395 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
michael@0 | 2396 | eval ac_new_set=\$ac_env_${ac_var}_set |
michael@0 | 2397 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
michael@0 | 2398 | eval ac_new_val=\$ac_env_${ac_var}_value |
michael@0 | 2399 | case $ac_old_set,$ac_new_set in |
michael@0 | 2400 | set,) |
michael@0 | 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
michael@0 | 2402 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
michael@0 | 2403 | ac_cache_corrupted=: ;; |
michael@0 | 2404 | ,set) |
michael@0 | 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
michael@0 | 2406 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
michael@0 | 2407 | ac_cache_corrupted=: ;; |
michael@0 | 2408 | ,);; |
michael@0 | 2409 | *) |
michael@0 | 2410 | if test "x$ac_old_val" != "x$ac_new_val"; then |
michael@0 | 2411 | # differences in whitespace do not lead to failure. |
michael@0 | 2412 | ac_old_val_w=`echo x $ac_old_val` |
michael@0 | 2413 | ac_new_val_w=`echo x $ac_new_val` |
michael@0 | 2414 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
michael@0 | 2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
michael@0 | 2416 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
michael@0 | 2417 | ac_cache_corrupted=: |
michael@0 | 2418 | else |
michael@0 | 2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
michael@0 | 2420 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
michael@0 | 2421 | eval $ac_var=\$ac_old_val |
michael@0 | 2422 | fi |
michael@0 | 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
michael@0 | 2424 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
michael@0 | 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
michael@0 | 2426 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
michael@0 | 2427 | fi;; |
michael@0 | 2428 | esac |
michael@0 | 2429 | # Pass precious variables to config.status. |
michael@0 | 2430 | if test "$ac_new_set" = set; then |
michael@0 | 2431 | case $ac_new_val in |
michael@0 | 2432 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2433 | *) ac_arg=$ac_var=$ac_new_val ;; |
michael@0 | 2434 | esac |
michael@0 | 2435 | case " $ac_configure_args " in |
michael@0 | 2436 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
michael@0 | 2437 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
michael@0 | 2438 | esac |
michael@0 | 2439 | fi |
michael@0 | 2440 | done |
michael@0 | 2441 | if $ac_cache_corrupted; then |
michael@0 | 2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2443 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
michael@0 | 2445 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
michael@0 | 2446 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
michael@0 | 2447 | fi |
michael@0 | 2448 | ## -------------------- ## |
michael@0 | 2449 | ## Main body of script. ## |
michael@0 | 2450 | ## -------------------- ## |
michael@0 | 2451 | |
michael@0 | 2452 | ac_ext=c |
michael@0 | 2453 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 2454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 2455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 2456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 2457 | |
michael@0 | 2458 | |
michael@0 | 2459 | |
michael@0 | 2460 | |
michael@0 | 2461 | |
michael@0 | 2462 | |
michael@0 | 2463 | |
michael@0 | 2464 | |
michael@0 | 2465 | |
michael@0 | 2466 | rev=1 |
michael@0 | 2467 | |
michael@0 | 2468 | |
michael@0 | 2469 | srcroot=$srcdir |
michael@0 | 2470 | if test "x${srcroot}" = "x." ; then |
michael@0 | 2471 | srcroot="" |
michael@0 | 2472 | else |
michael@0 | 2473 | srcroot="${srcroot}/" |
michael@0 | 2474 | fi |
michael@0 | 2475 | |
michael@0 | 2476 | abs_srcroot="`cd \"${srcdir}\"; pwd`/" |
michael@0 | 2477 | |
michael@0 | 2478 | |
michael@0 | 2479 | objroot="" |
michael@0 | 2480 | |
michael@0 | 2481 | abs_objroot="`pwd`/" |
michael@0 | 2482 | |
michael@0 | 2483 | |
michael@0 | 2484 | if test "x$prefix" = "xNONE" ; then |
michael@0 | 2485 | prefix="/usr/local" |
michael@0 | 2486 | fi |
michael@0 | 2487 | if test "x$exec_prefix" = "xNONE" ; then |
michael@0 | 2488 | exec_prefix=$prefix |
michael@0 | 2489 | fi |
michael@0 | 2490 | PREFIX=$prefix |
michael@0 | 2491 | |
michael@0 | 2492 | BINDIR=`eval echo $bindir` |
michael@0 | 2493 | BINDIR=`eval echo $BINDIR` |
michael@0 | 2494 | |
michael@0 | 2495 | INCLUDEDIR=`eval echo $includedir` |
michael@0 | 2496 | INCLUDEDIR=`eval echo $INCLUDEDIR` |
michael@0 | 2497 | |
michael@0 | 2498 | LIBDIR=`eval echo $libdir` |
michael@0 | 2499 | LIBDIR=`eval echo $LIBDIR` |
michael@0 | 2500 | |
michael@0 | 2501 | DATADIR=`eval echo $datadir` |
michael@0 | 2502 | DATADIR=`eval echo $DATADIR` |
michael@0 | 2503 | |
michael@0 | 2504 | MANDIR=`eval echo $mandir` |
michael@0 | 2505 | MANDIR=`eval echo $MANDIR` |
michael@0 | 2506 | |
michael@0 | 2507 | |
michael@0 | 2508 | # Extract the first word of "xsltproc", so it can be a program name with args. |
michael@0 | 2509 | set dummy xsltproc; ac_word=$2 |
michael@0 | 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2511 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2512 | if ${ac_cv_path_XSLTPROC+:} false; then : |
michael@0 | 2513 | $as_echo_n "(cached) " >&6 |
michael@0 | 2514 | else |
michael@0 | 2515 | case $XSLTPROC in |
michael@0 | 2516 | [\\/]* | ?:[\\/]*) |
michael@0 | 2517 | ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. |
michael@0 | 2518 | ;; |
michael@0 | 2519 | *) |
michael@0 | 2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2521 | for as_dir in $PATH |
michael@0 | 2522 | do |
michael@0 | 2523 | IFS=$as_save_IFS |
michael@0 | 2524 | test -z "$as_dir" && as_dir=. |
michael@0 | 2525 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2527 | ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 2528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2529 | break 2 |
michael@0 | 2530 | fi |
michael@0 | 2531 | done |
michael@0 | 2532 | done |
michael@0 | 2533 | IFS=$as_save_IFS |
michael@0 | 2534 | |
michael@0 | 2535 | ;; |
michael@0 | 2536 | esac |
michael@0 | 2537 | fi |
michael@0 | 2538 | XSLTPROC=$ac_cv_path_XSLTPROC |
michael@0 | 2539 | if test -n "$XSLTPROC"; then |
michael@0 | 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 |
michael@0 | 2541 | $as_echo "$XSLTPROC" >&6; } |
michael@0 | 2542 | else |
michael@0 | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2544 | $as_echo "no" >&6; } |
michael@0 | 2545 | fi |
michael@0 | 2546 | |
michael@0 | 2547 | |
michael@0 | 2548 | if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then |
michael@0 | 2549 | DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" |
michael@0 | 2550 | elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then |
michael@0 | 2551 | DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" |
michael@0 | 2552 | else |
michael@0 | 2553 | DEFAULT_XSLROOT="" |
michael@0 | 2554 | fi |
michael@0 | 2555 | |
michael@0 | 2556 | # Check whether --with-xslroot was given. |
michael@0 | 2557 | if test "${with_xslroot+set}" = set; then : |
michael@0 | 2558 | withval=$with_xslroot; |
michael@0 | 2559 | if test "x$with_xslroot" = "xno" ; then |
michael@0 | 2560 | XSLROOT="${DEFAULT_XSLROOT}" |
michael@0 | 2561 | else |
michael@0 | 2562 | XSLROOT="${with_xslroot}" |
michael@0 | 2563 | fi |
michael@0 | 2564 | |
michael@0 | 2565 | else |
michael@0 | 2566 | XSLROOT="${DEFAULT_XSLROOT}" |
michael@0 | 2567 | |
michael@0 | 2568 | fi |
michael@0 | 2569 | |
michael@0 | 2570 | |
michael@0 | 2571 | |
michael@0 | 2572 | CFLAGS=$CFLAGS |
michael@0 | 2573 | ac_ext=c |
michael@0 | 2574 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 2575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 2576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 2577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 2578 | if test -n "$ac_tool_prefix"; then |
michael@0 | 2579 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
michael@0 | 2580 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
michael@0 | 2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2582 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2583 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2584 | $as_echo_n "(cached) " >&6 |
michael@0 | 2585 | else |
michael@0 | 2586 | if test -n "$CC"; then |
michael@0 | 2587 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2588 | else |
michael@0 | 2589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2590 | for as_dir in $PATH |
michael@0 | 2591 | do |
michael@0 | 2592 | IFS=$as_save_IFS |
michael@0 | 2593 | test -z "$as_dir" && as_dir=. |
michael@0 | 2594 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2596 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
michael@0 | 2597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2598 | break 2 |
michael@0 | 2599 | fi |
michael@0 | 2600 | done |
michael@0 | 2601 | done |
michael@0 | 2602 | IFS=$as_save_IFS |
michael@0 | 2603 | |
michael@0 | 2604 | fi |
michael@0 | 2605 | fi |
michael@0 | 2606 | CC=$ac_cv_prog_CC |
michael@0 | 2607 | if test -n "$CC"; then |
michael@0 | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2609 | $as_echo "$CC" >&6; } |
michael@0 | 2610 | else |
michael@0 | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2612 | $as_echo "no" >&6; } |
michael@0 | 2613 | fi |
michael@0 | 2614 | |
michael@0 | 2615 | |
michael@0 | 2616 | fi |
michael@0 | 2617 | if test -z "$ac_cv_prog_CC"; then |
michael@0 | 2618 | ac_ct_CC=$CC |
michael@0 | 2619 | # Extract the first word of "gcc", so it can be a program name with args. |
michael@0 | 2620 | set dummy gcc; ac_word=$2 |
michael@0 | 2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2622 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2623 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
michael@0 | 2624 | $as_echo_n "(cached) " >&6 |
michael@0 | 2625 | else |
michael@0 | 2626 | if test -n "$ac_ct_CC"; then |
michael@0 | 2627 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
michael@0 | 2628 | else |
michael@0 | 2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2630 | for as_dir in $PATH |
michael@0 | 2631 | do |
michael@0 | 2632 | IFS=$as_save_IFS |
michael@0 | 2633 | test -z "$as_dir" && as_dir=. |
michael@0 | 2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2636 | ac_cv_prog_ac_ct_CC="gcc" |
michael@0 | 2637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2638 | break 2 |
michael@0 | 2639 | fi |
michael@0 | 2640 | done |
michael@0 | 2641 | done |
michael@0 | 2642 | IFS=$as_save_IFS |
michael@0 | 2643 | |
michael@0 | 2644 | fi |
michael@0 | 2645 | fi |
michael@0 | 2646 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
michael@0 | 2647 | if test -n "$ac_ct_CC"; then |
michael@0 | 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
michael@0 | 2649 | $as_echo "$ac_ct_CC" >&6; } |
michael@0 | 2650 | else |
michael@0 | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2652 | $as_echo "no" >&6; } |
michael@0 | 2653 | fi |
michael@0 | 2654 | |
michael@0 | 2655 | if test "x$ac_ct_CC" = x; then |
michael@0 | 2656 | CC="" |
michael@0 | 2657 | else |
michael@0 | 2658 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 2659 | yes:) |
michael@0 | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 2661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 2662 | ac_tool_warned=yes ;; |
michael@0 | 2663 | esac |
michael@0 | 2664 | CC=$ac_ct_CC |
michael@0 | 2665 | fi |
michael@0 | 2666 | else |
michael@0 | 2667 | CC="$ac_cv_prog_CC" |
michael@0 | 2668 | fi |
michael@0 | 2669 | |
michael@0 | 2670 | if test -z "$CC"; then |
michael@0 | 2671 | if test -n "$ac_tool_prefix"; then |
michael@0 | 2672 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
michael@0 | 2673 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
michael@0 | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2675 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2676 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2677 | $as_echo_n "(cached) " >&6 |
michael@0 | 2678 | else |
michael@0 | 2679 | if test -n "$CC"; then |
michael@0 | 2680 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2681 | else |
michael@0 | 2682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2683 | for as_dir in $PATH |
michael@0 | 2684 | do |
michael@0 | 2685 | IFS=$as_save_IFS |
michael@0 | 2686 | test -z "$as_dir" && as_dir=. |
michael@0 | 2687 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2688 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2689 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
michael@0 | 2690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2691 | break 2 |
michael@0 | 2692 | fi |
michael@0 | 2693 | done |
michael@0 | 2694 | done |
michael@0 | 2695 | IFS=$as_save_IFS |
michael@0 | 2696 | |
michael@0 | 2697 | fi |
michael@0 | 2698 | fi |
michael@0 | 2699 | CC=$ac_cv_prog_CC |
michael@0 | 2700 | if test -n "$CC"; then |
michael@0 | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2702 | $as_echo "$CC" >&6; } |
michael@0 | 2703 | else |
michael@0 | 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2705 | $as_echo "no" >&6; } |
michael@0 | 2706 | fi |
michael@0 | 2707 | |
michael@0 | 2708 | |
michael@0 | 2709 | fi |
michael@0 | 2710 | fi |
michael@0 | 2711 | if test -z "$CC"; then |
michael@0 | 2712 | # Extract the first word of "cc", so it can be a program name with args. |
michael@0 | 2713 | set dummy cc; ac_word=$2 |
michael@0 | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2715 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2716 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2717 | $as_echo_n "(cached) " >&6 |
michael@0 | 2718 | else |
michael@0 | 2719 | if test -n "$CC"; then |
michael@0 | 2720 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2721 | else |
michael@0 | 2722 | ac_prog_rejected=no |
michael@0 | 2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2724 | for as_dir in $PATH |
michael@0 | 2725 | do |
michael@0 | 2726 | IFS=$as_save_IFS |
michael@0 | 2727 | test -z "$as_dir" && as_dir=. |
michael@0 | 2728 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2730 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
michael@0 | 2731 | ac_prog_rejected=yes |
michael@0 | 2732 | continue |
michael@0 | 2733 | fi |
michael@0 | 2734 | ac_cv_prog_CC="cc" |
michael@0 | 2735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2736 | break 2 |
michael@0 | 2737 | fi |
michael@0 | 2738 | done |
michael@0 | 2739 | done |
michael@0 | 2740 | IFS=$as_save_IFS |
michael@0 | 2741 | |
michael@0 | 2742 | if test $ac_prog_rejected = yes; then |
michael@0 | 2743 | # We found a bogon in the path, so make sure we never use it. |
michael@0 | 2744 | set dummy $ac_cv_prog_CC |
michael@0 | 2745 | shift |
michael@0 | 2746 | if test $# != 0; then |
michael@0 | 2747 | # We chose a different compiler from the bogus one. |
michael@0 | 2748 | # However, it has the same basename, so the bogon will be chosen |
michael@0 | 2749 | # first if we set CC to just the basename; use the full file name. |
michael@0 | 2750 | shift |
michael@0 | 2751 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
michael@0 | 2752 | fi |
michael@0 | 2753 | fi |
michael@0 | 2754 | fi |
michael@0 | 2755 | fi |
michael@0 | 2756 | CC=$ac_cv_prog_CC |
michael@0 | 2757 | if test -n "$CC"; then |
michael@0 | 2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2759 | $as_echo "$CC" >&6; } |
michael@0 | 2760 | else |
michael@0 | 2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2762 | $as_echo "no" >&6; } |
michael@0 | 2763 | fi |
michael@0 | 2764 | |
michael@0 | 2765 | |
michael@0 | 2766 | fi |
michael@0 | 2767 | if test -z "$CC"; then |
michael@0 | 2768 | if test -n "$ac_tool_prefix"; then |
michael@0 | 2769 | for ac_prog in cl.exe |
michael@0 | 2770 | do |
michael@0 | 2771 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 2772 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2774 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2775 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2776 | $as_echo_n "(cached) " >&6 |
michael@0 | 2777 | else |
michael@0 | 2778 | if test -n "$CC"; then |
michael@0 | 2779 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2780 | else |
michael@0 | 2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2782 | for as_dir in $PATH |
michael@0 | 2783 | do |
michael@0 | 2784 | IFS=$as_save_IFS |
michael@0 | 2785 | test -z "$as_dir" && as_dir=. |
michael@0 | 2786 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2788 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
michael@0 | 2789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2790 | break 2 |
michael@0 | 2791 | fi |
michael@0 | 2792 | done |
michael@0 | 2793 | done |
michael@0 | 2794 | IFS=$as_save_IFS |
michael@0 | 2795 | |
michael@0 | 2796 | fi |
michael@0 | 2797 | fi |
michael@0 | 2798 | CC=$ac_cv_prog_CC |
michael@0 | 2799 | if test -n "$CC"; then |
michael@0 | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2801 | $as_echo "$CC" >&6; } |
michael@0 | 2802 | else |
michael@0 | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2804 | $as_echo "no" >&6; } |
michael@0 | 2805 | fi |
michael@0 | 2806 | |
michael@0 | 2807 | |
michael@0 | 2808 | test -n "$CC" && break |
michael@0 | 2809 | done |
michael@0 | 2810 | fi |
michael@0 | 2811 | if test -z "$CC"; then |
michael@0 | 2812 | ac_ct_CC=$CC |
michael@0 | 2813 | for ac_prog in cl.exe |
michael@0 | 2814 | do |
michael@0 | 2815 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 2816 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2818 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2819 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
michael@0 | 2820 | $as_echo_n "(cached) " >&6 |
michael@0 | 2821 | else |
michael@0 | 2822 | if test -n "$ac_ct_CC"; then |
michael@0 | 2823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
michael@0 | 2824 | else |
michael@0 | 2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2826 | for as_dir in $PATH |
michael@0 | 2827 | do |
michael@0 | 2828 | IFS=$as_save_IFS |
michael@0 | 2829 | test -z "$as_dir" && as_dir=. |
michael@0 | 2830 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2832 | ac_cv_prog_ac_ct_CC="$ac_prog" |
michael@0 | 2833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2834 | break 2 |
michael@0 | 2835 | fi |
michael@0 | 2836 | done |
michael@0 | 2837 | done |
michael@0 | 2838 | IFS=$as_save_IFS |
michael@0 | 2839 | |
michael@0 | 2840 | fi |
michael@0 | 2841 | fi |
michael@0 | 2842 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
michael@0 | 2843 | if test -n "$ac_ct_CC"; then |
michael@0 | 2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
michael@0 | 2845 | $as_echo "$ac_ct_CC" >&6; } |
michael@0 | 2846 | else |
michael@0 | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2848 | $as_echo "no" >&6; } |
michael@0 | 2849 | fi |
michael@0 | 2850 | |
michael@0 | 2851 | |
michael@0 | 2852 | test -n "$ac_ct_CC" && break |
michael@0 | 2853 | done |
michael@0 | 2854 | |
michael@0 | 2855 | if test "x$ac_ct_CC" = x; then |
michael@0 | 2856 | CC="" |
michael@0 | 2857 | else |
michael@0 | 2858 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 2859 | yes:) |
michael@0 | 2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 2861 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 2862 | ac_tool_warned=yes ;; |
michael@0 | 2863 | esac |
michael@0 | 2864 | CC=$ac_ct_CC |
michael@0 | 2865 | fi |
michael@0 | 2866 | fi |
michael@0 | 2867 | |
michael@0 | 2868 | fi |
michael@0 | 2869 | |
michael@0 | 2870 | |
michael@0 | 2871 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2873 | as_fn_error $? "no acceptable C compiler found in \$PATH |
michael@0 | 2874 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2875 | |
michael@0 | 2876 | # Provide some information about the compiler. |
michael@0 | 2877 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
michael@0 | 2878 | set X $ac_compile |
michael@0 | 2879 | ac_compiler=$2 |
michael@0 | 2880 | for ac_option in --version -v -V -qversion; do |
michael@0 | 2881 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 2882 | case "(($ac_try" in |
michael@0 | 2883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 2884 | *) ac_try_echo=$ac_try;; |
michael@0 | 2885 | esac |
michael@0 | 2886 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 2887 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 2888 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 2889 | ac_status=$? |
michael@0 | 2890 | if test -s conftest.err; then |
michael@0 | 2891 | sed '10a\ |
michael@0 | 2892 | ... rest of stderr output deleted ... |
michael@0 | 2893 | 10q' conftest.err >conftest.er1 |
michael@0 | 2894 | cat conftest.er1 >&5 |
michael@0 | 2895 | fi |
michael@0 | 2896 | rm -f conftest.er1 conftest.err |
michael@0 | 2897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 2898 | test $ac_status = 0; } |
michael@0 | 2899 | done |
michael@0 | 2900 | |
michael@0 | 2901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2902 | /* end confdefs.h. */ |
michael@0 | 2903 | |
michael@0 | 2904 | int |
michael@0 | 2905 | main () |
michael@0 | 2906 | { |
michael@0 | 2907 | |
michael@0 | 2908 | ; |
michael@0 | 2909 | return 0; |
michael@0 | 2910 | } |
michael@0 | 2911 | _ACEOF |
michael@0 | 2912 | ac_clean_files_save=$ac_clean_files |
michael@0 | 2913 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
michael@0 | 2914 | # Try to create an executable without -o first, disregard a.out. |
michael@0 | 2915 | # It will help us diagnose broken compilers, and finding out an intuition |
michael@0 | 2916 | # of exeext. |
michael@0 | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
michael@0 | 2918 | $as_echo_n "checking whether the C compiler works... " >&6; } |
michael@0 | 2919 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
michael@0 | 2920 | |
michael@0 | 2921 | # The possible output files: |
michael@0 | 2922 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
michael@0 | 2923 | |
michael@0 | 2924 | ac_rmfiles= |
michael@0 | 2925 | for ac_file in $ac_files |
michael@0 | 2926 | do |
michael@0 | 2927 | case $ac_file in |
michael@0 | 2928 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 2929 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
michael@0 | 2930 | esac |
michael@0 | 2931 | done |
michael@0 | 2932 | rm -f $ac_rmfiles |
michael@0 | 2933 | |
michael@0 | 2934 | if { { ac_try="$ac_link_default" |
michael@0 | 2935 | case "(($ac_try" in |
michael@0 | 2936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 2937 | *) ac_try_echo=$ac_try;; |
michael@0 | 2938 | esac |
michael@0 | 2939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 2940 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 2941 | (eval "$ac_link_default") 2>&5 |
michael@0 | 2942 | ac_status=$? |
michael@0 | 2943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 2944 | test $ac_status = 0; }; then : |
michael@0 | 2945 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
michael@0 | 2946 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
michael@0 | 2947 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
michael@0 | 2948 | # so that the user can short-circuit this test for compilers unknown to |
michael@0 | 2949 | # Autoconf. |
michael@0 | 2950 | for ac_file in $ac_files '' |
michael@0 | 2951 | do |
michael@0 | 2952 | test -f "$ac_file" || continue |
michael@0 | 2953 | case $ac_file in |
michael@0 | 2954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
michael@0 | 2955 | ;; |
michael@0 | 2956 | [ab].out ) |
michael@0 | 2957 | # We found the default executable, but exeext='' is most |
michael@0 | 2958 | # certainly right. |
michael@0 | 2959 | break;; |
michael@0 | 2960 | *.* ) |
michael@0 | 2961 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
michael@0 | 2962 | then :; else |
michael@0 | 2963 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 2964 | fi |
michael@0 | 2965 | # We set ac_cv_exeext here because the later test for it is not |
michael@0 | 2966 | # safe: cross compilers may not add the suffix if given an `-o' |
michael@0 | 2967 | # argument, so we may need to know it at that point already. |
michael@0 | 2968 | # Even if this section looks crufty: it has the advantage of |
michael@0 | 2969 | # actually working. |
michael@0 | 2970 | break;; |
michael@0 | 2971 | * ) |
michael@0 | 2972 | break;; |
michael@0 | 2973 | esac |
michael@0 | 2974 | done |
michael@0 | 2975 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
michael@0 | 2976 | |
michael@0 | 2977 | else |
michael@0 | 2978 | ac_file='' |
michael@0 | 2979 | fi |
michael@0 | 2980 | if test -z "$ac_file"; then : |
michael@0 | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2982 | $as_echo "no" >&6; } |
michael@0 | 2983 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 2984 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 2985 | |
michael@0 | 2986 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2987 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2988 | as_fn_error 77 "C compiler cannot create executables |
michael@0 | 2989 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2990 | else |
michael@0 | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 2992 | $as_echo "yes" >&6; } |
michael@0 | 2993 | fi |
michael@0 | 2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
michael@0 | 2995 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
michael@0 | 2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
michael@0 | 2997 | $as_echo "$ac_file" >&6; } |
michael@0 | 2998 | ac_exeext=$ac_cv_exeext |
michael@0 | 2999 | |
michael@0 | 3000 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
michael@0 | 3001 | ac_clean_files=$ac_clean_files_save |
michael@0 | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
michael@0 | 3003 | $as_echo_n "checking for suffix of executables... " >&6; } |
michael@0 | 3004 | if { { ac_try="$ac_link" |
michael@0 | 3005 | case "(($ac_try" in |
michael@0 | 3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3007 | *) ac_try_echo=$ac_try;; |
michael@0 | 3008 | esac |
michael@0 | 3009 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3010 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3011 | (eval "$ac_link") 2>&5 |
michael@0 | 3012 | ac_status=$? |
michael@0 | 3013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3014 | test $ac_status = 0; }; then : |
michael@0 | 3015 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
michael@0 | 3016 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
michael@0 | 3017 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
michael@0 | 3018 | # `rm'. |
michael@0 | 3019 | for ac_file in conftest.exe conftest conftest.*; do |
michael@0 | 3020 | test -f "$ac_file" || continue |
michael@0 | 3021 | case $ac_file in |
michael@0 | 3022 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 3023 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 3024 | break;; |
michael@0 | 3025 | * ) break;; |
michael@0 | 3026 | esac |
michael@0 | 3027 | done |
michael@0 | 3028 | else |
michael@0 | 3029 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3031 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
michael@0 | 3032 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3033 | fi |
michael@0 | 3034 | rm -f conftest conftest$ac_cv_exeext |
michael@0 | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
michael@0 | 3036 | $as_echo "$ac_cv_exeext" >&6; } |
michael@0 | 3037 | |
michael@0 | 3038 | rm -f conftest.$ac_ext |
michael@0 | 3039 | EXEEXT=$ac_cv_exeext |
michael@0 | 3040 | ac_exeext=$EXEEXT |
michael@0 | 3041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3042 | /* end confdefs.h. */ |
michael@0 | 3043 | #include <stdio.h> |
michael@0 | 3044 | int |
michael@0 | 3045 | main () |
michael@0 | 3046 | { |
michael@0 | 3047 | FILE *f = fopen ("conftest.out", "w"); |
michael@0 | 3048 | return ferror (f) || fclose (f) != 0; |
michael@0 | 3049 | |
michael@0 | 3050 | ; |
michael@0 | 3051 | return 0; |
michael@0 | 3052 | } |
michael@0 | 3053 | _ACEOF |
michael@0 | 3054 | ac_clean_files="$ac_clean_files conftest.out" |
michael@0 | 3055 | # Check that the compiler produces executables we can run. If not, either |
michael@0 | 3056 | # the compiler is broken, or we cross compile. |
michael@0 | 3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
michael@0 | 3058 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
michael@0 | 3059 | if test "$cross_compiling" != yes; then |
michael@0 | 3060 | { { ac_try="$ac_link" |
michael@0 | 3061 | case "(($ac_try" in |
michael@0 | 3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3063 | *) ac_try_echo=$ac_try;; |
michael@0 | 3064 | esac |
michael@0 | 3065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3066 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3067 | (eval "$ac_link") 2>&5 |
michael@0 | 3068 | ac_status=$? |
michael@0 | 3069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3070 | test $ac_status = 0; } |
michael@0 | 3071 | if { ac_try='./conftest$ac_cv_exeext' |
michael@0 | 3072 | { { case "(($ac_try" in |
michael@0 | 3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3074 | *) ac_try_echo=$ac_try;; |
michael@0 | 3075 | esac |
michael@0 | 3076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3077 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3078 | (eval "$ac_try") 2>&5 |
michael@0 | 3079 | ac_status=$? |
michael@0 | 3080 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3081 | test $ac_status = 0; }; }; then |
michael@0 | 3082 | cross_compiling=no |
michael@0 | 3083 | else |
michael@0 | 3084 | if test "$cross_compiling" = maybe; then |
michael@0 | 3085 | cross_compiling=yes |
michael@0 | 3086 | else |
michael@0 | 3087 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3089 | as_fn_error $? "cannot run C compiled programs. |
michael@0 | 3090 | If you meant to cross compile, use \`--host'. |
michael@0 | 3091 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3092 | fi |
michael@0 | 3093 | fi |
michael@0 | 3094 | fi |
michael@0 | 3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
michael@0 | 3096 | $as_echo "$cross_compiling" >&6; } |
michael@0 | 3097 | |
michael@0 | 3098 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
michael@0 | 3099 | ac_clean_files=$ac_clean_files_save |
michael@0 | 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
michael@0 | 3101 | $as_echo_n "checking for suffix of object files... " >&6; } |
michael@0 | 3102 | if ${ac_cv_objext+:} false; then : |
michael@0 | 3103 | $as_echo_n "(cached) " >&6 |
michael@0 | 3104 | else |
michael@0 | 3105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3106 | /* end confdefs.h. */ |
michael@0 | 3107 | |
michael@0 | 3108 | int |
michael@0 | 3109 | main () |
michael@0 | 3110 | { |
michael@0 | 3111 | |
michael@0 | 3112 | ; |
michael@0 | 3113 | return 0; |
michael@0 | 3114 | } |
michael@0 | 3115 | _ACEOF |
michael@0 | 3116 | rm -f conftest.o conftest.obj |
michael@0 | 3117 | if { { ac_try="$ac_compile" |
michael@0 | 3118 | case "(($ac_try" in |
michael@0 | 3119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3120 | *) ac_try_echo=$ac_try;; |
michael@0 | 3121 | esac |
michael@0 | 3122 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3123 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3124 | (eval "$ac_compile") 2>&5 |
michael@0 | 3125 | ac_status=$? |
michael@0 | 3126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3127 | test $ac_status = 0; }; then : |
michael@0 | 3128 | for ac_file in conftest.o conftest.obj conftest.*; do |
michael@0 | 3129 | test -f "$ac_file" || continue; |
michael@0 | 3130 | case $ac_file in |
michael@0 | 3131 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
michael@0 | 3132 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
michael@0 | 3133 | break;; |
michael@0 | 3134 | esac |
michael@0 | 3135 | done |
michael@0 | 3136 | else |
michael@0 | 3137 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 3139 | |
michael@0 | 3140 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3142 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
michael@0 | 3143 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3144 | fi |
michael@0 | 3145 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
michael@0 | 3146 | fi |
michael@0 | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
michael@0 | 3148 | $as_echo "$ac_cv_objext" >&6; } |
michael@0 | 3149 | OBJEXT=$ac_cv_objext |
michael@0 | 3150 | ac_objext=$OBJEXT |
michael@0 | 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
michael@0 | 3152 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
michael@0 | 3153 | if ${ac_cv_c_compiler_gnu+:} false; then : |
michael@0 | 3154 | $as_echo_n "(cached) " >&6 |
michael@0 | 3155 | else |
michael@0 | 3156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3157 | /* end confdefs.h. */ |
michael@0 | 3158 | |
michael@0 | 3159 | int |
michael@0 | 3160 | main () |
michael@0 | 3161 | { |
michael@0 | 3162 | #ifndef __GNUC__ |
michael@0 | 3163 | choke me |
michael@0 | 3164 | #endif |
michael@0 | 3165 | |
michael@0 | 3166 | ; |
michael@0 | 3167 | return 0; |
michael@0 | 3168 | } |
michael@0 | 3169 | _ACEOF |
michael@0 | 3170 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3171 | ac_compiler_gnu=yes |
michael@0 | 3172 | else |
michael@0 | 3173 | ac_compiler_gnu=no |
michael@0 | 3174 | fi |
michael@0 | 3175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3176 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
michael@0 | 3177 | |
michael@0 | 3178 | fi |
michael@0 | 3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
michael@0 | 3180 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
michael@0 | 3181 | if test $ac_compiler_gnu = yes; then |
michael@0 | 3182 | GCC=yes |
michael@0 | 3183 | else |
michael@0 | 3184 | GCC= |
michael@0 | 3185 | fi |
michael@0 | 3186 | ac_test_CFLAGS=${CFLAGS+set} |
michael@0 | 3187 | ac_save_CFLAGS=$CFLAGS |
michael@0 | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
michael@0 | 3189 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
michael@0 | 3190 | if ${ac_cv_prog_cc_g+:} false; then : |
michael@0 | 3191 | $as_echo_n "(cached) " >&6 |
michael@0 | 3192 | else |
michael@0 | 3193 | ac_save_c_werror_flag=$ac_c_werror_flag |
michael@0 | 3194 | ac_c_werror_flag=yes |
michael@0 | 3195 | ac_cv_prog_cc_g=no |
michael@0 | 3196 | CFLAGS="-g" |
michael@0 | 3197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3198 | /* end confdefs.h. */ |
michael@0 | 3199 | |
michael@0 | 3200 | int |
michael@0 | 3201 | main () |
michael@0 | 3202 | { |
michael@0 | 3203 | |
michael@0 | 3204 | ; |
michael@0 | 3205 | return 0; |
michael@0 | 3206 | } |
michael@0 | 3207 | _ACEOF |
michael@0 | 3208 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3209 | ac_cv_prog_cc_g=yes |
michael@0 | 3210 | else |
michael@0 | 3211 | CFLAGS="" |
michael@0 | 3212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3213 | /* end confdefs.h. */ |
michael@0 | 3214 | |
michael@0 | 3215 | int |
michael@0 | 3216 | main () |
michael@0 | 3217 | { |
michael@0 | 3218 | |
michael@0 | 3219 | ; |
michael@0 | 3220 | return 0; |
michael@0 | 3221 | } |
michael@0 | 3222 | _ACEOF |
michael@0 | 3223 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3224 | |
michael@0 | 3225 | else |
michael@0 | 3226 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3227 | CFLAGS="-g" |
michael@0 | 3228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3229 | /* end confdefs.h. */ |
michael@0 | 3230 | |
michael@0 | 3231 | int |
michael@0 | 3232 | main () |
michael@0 | 3233 | { |
michael@0 | 3234 | |
michael@0 | 3235 | ; |
michael@0 | 3236 | return 0; |
michael@0 | 3237 | } |
michael@0 | 3238 | _ACEOF |
michael@0 | 3239 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3240 | ac_cv_prog_cc_g=yes |
michael@0 | 3241 | fi |
michael@0 | 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3243 | fi |
michael@0 | 3244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3245 | fi |
michael@0 | 3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3247 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3248 | fi |
michael@0 | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
michael@0 | 3250 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
michael@0 | 3251 | if test "$ac_test_CFLAGS" = set; then |
michael@0 | 3252 | CFLAGS=$ac_save_CFLAGS |
michael@0 | 3253 | elif test $ac_cv_prog_cc_g = yes; then |
michael@0 | 3254 | if test "$GCC" = yes; then |
michael@0 | 3255 | CFLAGS="-g -O2" |
michael@0 | 3256 | else |
michael@0 | 3257 | CFLAGS="-g" |
michael@0 | 3258 | fi |
michael@0 | 3259 | else |
michael@0 | 3260 | if test "$GCC" = yes; then |
michael@0 | 3261 | CFLAGS="-O2" |
michael@0 | 3262 | else |
michael@0 | 3263 | CFLAGS= |
michael@0 | 3264 | fi |
michael@0 | 3265 | fi |
michael@0 | 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
michael@0 | 3267 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
michael@0 | 3268 | if ${ac_cv_prog_cc_c89+:} false; then : |
michael@0 | 3269 | $as_echo_n "(cached) " >&6 |
michael@0 | 3270 | else |
michael@0 | 3271 | ac_cv_prog_cc_c89=no |
michael@0 | 3272 | ac_save_CC=$CC |
michael@0 | 3273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3274 | /* end confdefs.h. */ |
michael@0 | 3275 | #include <stdarg.h> |
michael@0 | 3276 | #include <stdio.h> |
michael@0 | 3277 | struct stat; |
michael@0 | 3278 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
michael@0 | 3279 | struct buf { int x; }; |
michael@0 | 3280 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
michael@0 | 3281 | static char *e (p, i) |
michael@0 | 3282 | char **p; |
michael@0 | 3283 | int i; |
michael@0 | 3284 | { |
michael@0 | 3285 | return p[i]; |
michael@0 | 3286 | } |
michael@0 | 3287 | static char *f (char * (*g) (char **, int), char **p, ...) |
michael@0 | 3288 | { |
michael@0 | 3289 | char *s; |
michael@0 | 3290 | va_list v; |
michael@0 | 3291 | va_start (v,p); |
michael@0 | 3292 | s = g (p, va_arg (v,int)); |
michael@0 | 3293 | va_end (v); |
michael@0 | 3294 | return s; |
michael@0 | 3295 | } |
michael@0 | 3296 | |
michael@0 | 3297 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
michael@0 | 3298 | function prototypes and stuff, but not '\xHH' hex character constants. |
michael@0 | 3299 | These don't provoke an error unfortunately, instead are silently treated |
michael@0 | 3300 | as 'x'. The following induces an error, until -std is added to get |
michael@0 | 3301 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
michael@0 | 3302 | array size at least. It's necessary to write '\x00'==0 to get something |
michael@0 | 3303 | that's true only with -std. */ |
michael@0 | 3304 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
michael@0 | 3305 | |
michael@0 | 3306 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
michael@0 | 3307 | inside strings and character constants. */ |
michael@0 | 3308 | #define FOO(x) 'x' |
michael@0 | 3309 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
michael@0 | 3310 | |
michael@0 | 3311 | int test (int i, double x); |
michael@0 | 3312 | struct s1 {int (*f) (int a);}; |
michael@0 | 3313 | struct s2 {int (*f) (double a);}; |
michael@0 | 3314 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
michael@0 | 3315 | int argc; |
michael@0 | 3316 | char **argv; |
michael@0 | 3317 | int |
michael@0 | 3318 | main () |
michael@0 | 3319 | { |
michael@0 | 3320 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
michael@0 | 3321 | ; |
michael@0 | 3322 | return 0; |
michael@0 | 3323 | } |
michael@0 | 3324 | _ACEOF |
michael@0 | 3325 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
michael@0 | 3326 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
michael@0 | 3327 | do |
michael@0 | 3328 | CC="$ac_save_CC $ac_arg" |
michael@0 | 3329 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3330 | ac_cv_prog_cc_c89=$ac_arg |
michael@0 | 3331 | fi |
michael@0 | 3332 | rm -f core conftest.err conftest.$ac_objext |
michael@0 | 3333 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
michael@0 | 3334 | done |
michael@0 | 3335 | rm -f conftest.$ac_ext |
michael@0 | 3336 | CC=$ac_save_CC |
michael@0 | 3337 | |
michael@0 | 3338 | fi |
michael@0 | 3339 | # AC_CACHE_VAL |
michael@0 | 3340 | case "x$ac_cv_prog_cc_c89" in |
michael@0 | 3341 | x) |
michael@0 | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
michael@0 | 3343 | $as_echo "none needed" >&6; } ;; |
michael@0 | 3344 | xno) |
michael@0 | 3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
michael@0 | 3346 | $as_echo "unsupported" >&6; } ;; |
michael@0 | 3347 | *) |
michael@0 | 3348 | CC="$CC $ac_cv_prog_cc_c89" |
michael@0 | 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
michael@0 | 3350 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
michael@0 | 3351 | esac |
michael@0 | 3352 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
michael@0 | 3353 | |
michael@0 | 3354 | fi |
michael@0 | 3355 | |
michael@0 | 3356 | ac_ext=c |
michael@0 | 3357 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3361 | |
michael@0 | 3362 | if test "x$GCC" != "xyes" ; then |
michael@0 | 3363 | |
michael@0 | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5 |
michael@0 | 3365 | $as_echo_n "checking whether compiler is MSVC... " >&6; } |
michael@0 | 3366 | if ${je_cv_msvc+:} false; then : |
michael@0 | 3367 | $as_echo_n "(cached) " >&6 |
michael@0 | 3368 | else |
michael@0 | 3369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3370 | /* end confdefs.h. */ |
michael@0 | 3371 | |
michael@0 | 3372 | int |
michael@0 | 3373 | main () |
michael@0 | 3374 | { |
michael@0 | 3375 | |
michael@0 | 3376 | #ifndef _MSC_VER |
michael@0 | 3377 | int fail-1; |
michael@0 | 3378 | #endif |
michael@0 | 3379 | |
michael@0 | 3380 | ; |
michael@0 | 3381 | return 0; |
michael@0 | 3382 | } |
michael@0 | 3383 | _ACEOF |
michael@0 | 3384 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3385 | je_cv_msvc=yes |
michael@0 | 3386 | else |
michael@0 | 3387 | je_cv_msvc=no |
michael@0 | 3388 | fi |
michael@0 | 3389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3390 | fi |
michael@0 | 3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5 |
michael@0 | 3392 | $as_echo "$je_cv_msvc" >&6; } |
michael@0 | 3393 | fi |
michael@0 | 3394 | |
michael@0 | 3395 | if test "x$CFLAGS" = "x" ; then |
michael@0 | 3396 | no_CFLAGS="yes" |
michael@0 | 3397 | if test "x$GCC" = "xyes" ; then |
michael@0 | 3398 | |
michael@0 | 3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5 |
michael@0 | 3400 | $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; } |
michael@0 | 3401 | TCFLAGS="${CFLAGS}" |
michael@0 | 3402 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3403 | CFLAGS="-std=gnu99" |
michael@0 | 3404 | else |
michael@0 | 3405 | CFLAGS="${CFLAGS} -std=gnu99" |
michael@0 | 3406 | fi |
michael@0 | 3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3408 | /* end confdefs.h. */ |
michael@0 | 3409 | |
michael@0 | 3410 | |
michael@0 | 3411 | int |
michael@0 | 3412 | main () |
michael@0 | 3413 | { |
michael@0 | 3414 | |
michael@0 | 3415 | return 0; |
michael@0 | 3416 | |
michael@0 | 3417 | ; |
michael@0 | 3418 | return 0; |
michael@0 | 3419 | } |
michael@0 | 3420 | _ACEOF |
michael@0 | 3421 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3423 | $as_echo "yes" >&6; } |
michael@0 | 3424 | else |
michael@0 | 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3426 | $as_echo "no" >&6; } |
michael@0 | 3427 | CFLAGS="${TCFLAGS}" |
michael@0 | 3428 | |
michael@0 | 3429 | fi |
michael@0 | 3430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3431 | |
michael@0 | 3432 | |
michael@0 | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 |
michael@0 | 3434 | $as_echo_n "checking whether compiler supports -Wall... " >&6; } |
michael@0 | 3435 | TCFLAGS="${CFLAGS}" |
michael@0 | 3436 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3437 | CFLAGS="-Wall" |
michael@0 | 3438 | else |
michael@0 | 3439 | CFLAGS="${CFLAGS} -Wall" |
michael@0 | 3440 | fi |
michael@0 | 3441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3442 | /* end confdefs.h. */ |
michael@0 | 3443 | |
michael@0 | 3444 | |
michael@0 | 3445 | int |
michael@0 | 3446 | main () |
michael@0 | 3447 | { |
michael@0 | 3448 | |
michael@0 | 3449 | return 0; |
michael@0 | 3450 | |
michael@0 | 3451 | ; |
michael@0 | 3452 | return 0; |
michael@0 | 3453 | } |
michael@0 | 3454 | _ACEOF |
michael@0 | 3455 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3457 | $as_echo "yes" >&6; } |
michael@0 | 3458 | else |
michael@0 | 3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3460 | $as_echo "no" >&6; } |
michael@0 | 3461 | CFLAGS="${TCFLAGS}" |
michael@0 | 3462 | |
michael@0 | 3463 | fi |
michael@0 | 3464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3465 | |
michael@0 | 3466 | |
michael@0 | 3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5 |
michael@0 | 3468 | $as_echo_n "checking whether compiler supports -pipe... " >&6; } |
michael@0 | 3469 | TCFLAGS="${CFLAGS}" |
michael@0 | 3470 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3471 | CFLAGS="-pipe" |
michael@0 | 3472 | else |
michael@0 | 3473 | CFLAGS="${CFLAGS} -pipe" |
michael@0 | 3474 | fi |
michael@0 | 3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3476 | /* end confdefs.h. */ |
michael@0 | 3477 | |
michael@0 | 3478 | |
michael@0 | 3479 | int |
michael@0 | 3480 | main () |
michael@0 | 3481 | { |
michael@0 | 3482 | |
michael@0 | 3483 | return 0; |
michael@0 | 3484 | |
michael@0 | 3485 | ; |
michael@0 | 3486 | return 0; |
michael@0 | 3487 | } |
michael@0 | 3488 | _ACEOF |
michael@0 | 3489 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3491 | $as_echo "yes" >&6; } |
michael@0 | 3492 | else |
michael@0 | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3494 | $as_echo "no" >&6; } |
michael@0 | 3495 | CFLAGS="${TCFLAGS}" |
michael@0 | 3496 | |
michael@0 | 3497 | fi |
michael@0 | 3498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3499 | |
michael@0 | 3500 | |
michael@0 | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 |
michael@0 | 3502 | $as_echo_n "checking whether compiler supports -g3... " >&6; } |
michael@0 | 3503 | TCFLAGS="${CFLAGS}" |
michael@0 | 3504 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3505 | CFLAGS="-g3" |
michael@0 | 3506 | else |
michael@0 | 3507 | CFLAGS="${CFLAGS} -g3" |
michael@0 | 3508 | fi |
michael@0 | 3509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3510 | /* end confdefs.h. */ |
michael@0 | 3511 | |
michael@0 | 3512 | |
michael@0 | 3513 | int |
michael@0 | 3514 | main () |
michael@0 | 3515 | { |
michael@0 | 3516 | |
michael@0 | 3517 | return 0; |
michael@0 | 3518 | |
michael@0 | 3519 | ; |
michael@0 | 3520 | return 0; |
michael@0 | 3521 | } |
michael@0 | 3522 | _ACEOF |
michael@0 | 3523 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3525 | $as_echo "yes" >&6; } |
michael@0 | 3526 | else |
michael@0 | 3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3528 | $as_echo "no" >&6; } |
michael@0 | 3529 | CFLAGS="${TCFLAGS}" |
michael@0 | 3530 | |
michael@0 | 3531 | fi |
michael@0 | 3532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3533 | |
michael@0 | 3534 | elif test "x$je_cv_msvc" = "xyes" ; then |
michael@0 | 3535 | CC="$CC -nologo" |
michael@0 | 3536 | |
michael@0 | 3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5 |
michael@0 | 3538 | $as_echo_n "checking whether compiler supports -Zi... " >&6; } |
michael@0 | 3539 | TCFLAGS="${CFLAGS}" |
michael@0 | 3540 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3541 | CFLAGS="-Zi" |
michael@0 | 3542 | else |
michael@0 | 3543 | CFLAGS="${CFLAGS} -Zi" |
michael@0 | 3544 | fi |
michael@0 | 3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3546 | /* end confdefs.h. */ |
michael@0 | 3547 | |
michael@0 | 3548 | |
michael@0 | 3549 | int |
michael@0 | 3550 | main () |
michael@0 | 3551 | { |
michael@0 | 3552 | |
michael@0 | 3553 | return 0; |
michael@0 | 3554 | |
michael@0 | 3555 | ; |
michael@0 | 3556 | return 0; |
michael@0 | 3557 | } |
michael@0 | 3558 | _ACEOF |
michael@0 | 3559 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3561 | $as_echo "yes" >&6; } |
michael@0 | 3562 | else |
michael@0 | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3564 | $as_echo "no" >&6; } |
michael@0 | 3565 | CFLAGS="${TCFLAGS}" |
michael@0 | 3566 | |
michael@0 | 3567 | fi |
michael@0 | 3568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3569 | |
michael@0 | 3570 | |
michael@0 | 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5 |
michael@0 | 3572 | $as_echo_n "checking whether compiler supports -MT... " >&6; } |
michael@0 | 3573 | TCFLAGS="${CFLAGS}" |
michael@0 | 3574 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3575 | CFLAGS="-MT" |
michael@0 | 3576 | else |
michael@0 | 3577 | CFLAGS="${CFLAGS} -MT" |
michael@0 | 3578 | fi |
michael@0 | 3579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3580 | /* end confdefs.h. */ |
michael@0 | 3581 | |
michael@0 | 3582 | |
michael@0 | 3583 | int |
michael@0 | 3584 | main () |
michael@0 | 3585 | { |
michael@0 | 3586 | |
michael@0 | 3587 | return 0; |
michael@0 | 3588 | |
michael@0 | 3589 | ; |
michael@0 | 3590 | return 0; |
michael@0 | 3591 | } |
michael@0 | 3592 | _ACEOF |
michael@0 | 3593 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3595 | $as_echo "yes" >&6; } |
michael@0 | 3596 | else |
michael@0 | 3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3598 | $as_echo "no" >&6; } |
michael@0 | 3599 | CFLAGS="${TCFLAGS}" |
michael@0 | 3600 | |
michael@0 | 3601 | fi |
michael@0 | 3602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3603 | |
michael@0 | 3604 | |
michael@0 | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5 |
michael@0 | 3606 | $as_echo_n "checking whether compiler supports -W3... " >&6; } |
michael@0 | 3607 | TCFLAGS="${CFLAGS}" |
michael@0 | 3608 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3609 | CFLAGS="-W3" |
michael@0 | 3610 | else |
michael@0 | 3611 | CFLAGS="${CFLAGS} -W3" |
michael@0 | 3612 | fi |
michael@0 | 3613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3614 | /* end confdefs.h. */ |
michael@0 | 3615 | |
michael@0 | 3616 | |
michael@0 | 3617 | int |
michael@0 | 3618 | main () |
michael@0 | 3619 | { |
michael@0 | 3620 | |
michael@0 | 3621 | return 0; |
michael@0 | 3622 | |
michael@0 | 3623 | ; |
michael@0 | 3624 | return 0; |
michael@0 | 3625 | } |
michael@0 | 3626 | _ACEOF |
michael@0 | 3627 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3629 | $as_echo "yes" >&6; } |
michael@0 | 3630 | else |
michael@0 | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3632 | $as_echo "no" >&6; } |
michael@0 | 3633 | CFLAGS="${TCFLAGS}" |
michael@0 | 3634 | |
michael@0 | 3635 | fi |
michael@0 | 3636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3637 | |
michael@0 | 3638 | CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat" |
michael@0 | 3639 | fi |
michael@0 | 3640 | fi |
michael@0 | 3641 | if test "x$EXTRA_CFLAGS" != "x" ; then |
michael@0 | 3642 | |
michael@0 | 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5 |
michael@0 | 3644 | $as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; } |
michael@0 | 3645 | TCFLAGS="${CFLAGS}" |
michael@0 | 3646 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 3647 | CFLAGS="$EXTRA_CFLAGS" |
michael@0 | 3648 | else |
michael@0 | 3649 | CFLAGS="${CFLAGS} $EXTRA_CFLAGS" |
michael@0 | 3650 | fi |
michael@0 | 3651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3652 | /* end confdefs.h. */ |
michael@0 | 3653 | |
michael@0 | 3654 | |
michael@0 | 3655 | int |
michael@0 | 3656 | main () |
michael@0 | 3657 | { |
michael@0 | 3658 | |
michael@0 | 3659 | return 0; |
michael@0 | 3660 | |
michael@0 | 3661 | ; |
michael@0 | 3662 | return 0; |
michael@0 | 3663 | } |
michael@0 | 3664 | _ACEOF |
michael@0 | 3665 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3667 | $as_echo "yes" >&6; } |
michael@0 | 3668 | else |
michael@0 | 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3670 | $as_echo "no" >&6; } |
michael@0 | 3671 | CFLAGS="${TCFLAGS}" |
michael@0 | 3672 | |
michael@0 | 3673 | fi |
michael@0 | 3674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3675 | |
michael@0 | 3676 | fi |
michael@0 | 3677 | ac_ext=c |
michael@0 | 3678 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
michael@0 | 3683 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
michael@0 | 3684 | # On Suns, sometimes $CPP names a directory. |
michael@0 | 3685 | if test -n "$CPP" && test -d "$CPP"; then |
michael@0 | 3686 | CPP= |
michael@0 | 3687 | fi |
michael@0 | 3688 | if test -z "$CPP"; then |
michael@0 | 3689 | if ${ac_cv_prog_CPP+:} false; then : |
michael@0 | 3690 | $as_echo_n "(cached) " >&6 |
michael@0 | 3691 | else |
michael@0 | 3692 | # Double quotes because CPP needs to be expanded |
michael@0 | 3693 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
michael@0 | 3694 | do |
michael@0 | 3695 | ac_preproc_ok=false |
michael@0 | 3696 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 3697 | do |
michael@0 | 3698 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 3699 | # with a fresh cross-compiler works. |
michael@0 | 3700 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 3701 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 3702 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 3703 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 3704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3705 | /* end confdefs.h. */ |
michael@0 | 3706 | #ifdef __STDC__ |
michael@0 | 3707 | # include <limits.h> |
michael@0 | 3708 | #else |
michael@0 | 3709 | # include <assert.h> |
michael@0 | 3710 | #endif |
michael@0 | 3711 | Syntax error |
michael@0 | 3712 | _ACEOF |
michael@0 | 3713 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3714 | |
michael@0 | 3715 | else |
michael@0 | 3716 | # Broken: fails on valid input. |
michael@0 | 3717 | continue |
michael@0 | 3718 | fi |
michael@0 | 3719 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3720 | |
michael@0 | 3721 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 3722 | # can be detected and how. |
michael@0 | 3723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3724 | /* end confdefs.h. */ |
michael@0 | 3725 | #include <ac_nonexistent.h> |
michael@0 | 3726 | _ACEOF |
michael@0 | 3727 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3728 | # Broken: success on invalid input. |
michael@0 | 3729 | continue |
michael@0 | 3730 | else |
michael@0 | 3731 | # Passes both tests. |
michael@0 | 3732 | ac_preproc_ok=: |
michael@0 | 3733 | break |
michael@0 | 3734 | fi |
michael@0 | 3735 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3736 | |
michael@0 | 3737 | done |
michael@0 | 3738 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 3739 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 3740 | if $ac_preproc_ok; then : |
michael@0 | 3741 | break |
michael@0 | 3742 | fi |
michael@0 | 3743 | |
michael@0 | 3744 | done |
michael@0 | 3745 | ac_cv_prog_CPP=$CPP |
michael@0 | 3746 | |
michael@0 | 3747 | fi |
michael@0 | 3748 | CPP=$ac_cv_prog_CPP |
michael@0 | 3749 | else |
michael@0 | 3750 | ac_cv_prog_CPP=$CPP |
michael@0 | 3751 | fi |
michael@0 | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
michael@0 | 3753 | $as_echo "$CPP" >&6; } |
michael@0 | 3754 | ac_preproc_ok=false |
michael@0 | 3755 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 3756 | do |
michael@0 | 3757 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 3758 | # with a fresh cross-compiler works. |
michael@0 | 3759 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 3760 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 3761 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 3762 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3764 | /* end confdefs.h. */ |
michael@0 | 3765 | #ifdef __STDC__ |
michael@0 | 3766 | # include <limits.h> |
michael@0 | 3767 | #else |
michael@0 | 3768 | # include <assert.h> |
michael@0 | 3769 | #endif |
michael@0 | 3770 | Syntax error |
michael@0 | 3771 | _ACEOF |
michael@0 | 3772 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3773 | |
michael@0 | 3774 | else |
michael@0 | 3775 | # Broken: fails on valid input. |
michael@0 | 3776 | continue |
michael@0 | 3777 | fi |
michael@0 | 3778 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3779 | |
michael@0 | 3780 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 3781 | # can be detected and how. |
michael@0 | 3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3783 | /* end confdefs.h. */ |
michael@0 | 3784 | #include <ac_nonexistent.h> |
michael@0 | 3785 | _ACEOF |
michael@0 | 3786 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3787 | # Broken: success on invalid input. |
michael@0 | 3788 | continue |
michael@0 | 3789 | else |
michael@0 | 3790 | # Passes both tests. |
michael@0 | 3791 | ac_preproc_ok=: |
michael@0 | 3792 | break |
michael@0 | 3793 | fi |
michael@0 | 3794 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3795 | |
michael@0 | 3796 | done |
michael@0 | 3797 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 3798 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 3799 | if $ac_preproc_ok; then : |
michael@0 | 3800 | |
michael@0 | 3801 | else |
michael@0 | 3802 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3803 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3804 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
michael@0 | 3805 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3806 | fi |
michael@0 | 3807 | |
michael@0 | 3808 | ac_ext=c |
michael@0 | 3809 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3813 | |
michael@0 | 3814 | |
michael@0 | 3815 | |
michael@0 | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
michael@0 | 3817 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
michael@0 | 3818 | if ${ac_cv_path_GREP+:} false; then : |
michael@0 | 3819 | $as_echo_n "(cached) " >&6 |
michael@0 | 3820 | else |
michael@0 | 3821 | if test -z "$GREP"; then |
michael@0 | 3822 | ac_path_GREP_found=false |
michael@0 | 3823 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3825 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 3826 | do |
michael@0 | 3827 | IFS=$as_save_IFS |
michael@0 | 3828 | test -z "$as_dir" && as_dir=. |
michael@0 | 3829 | for ac_prog in grep ggrep; do |
michael@0 | 3830 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3831 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 3832 | as_fn_executable_p "$ac_path_GREP" || continue |
michael@0 | 3833 | # Check for GNU ac_path_GREP and select it if it is found. |
michael@0 | 3834 | # Check for GNU $ac_path_GREP |
michael@0 | 3835 | case `"$ac_path_GREP" --version 2>&1` in |
michael@0 | 3836 | *GNU*) |
michael@0 | 3837 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
michael@0 | 3838 | *) |
michael@0 | 3839 | ac_count=0 |
michael@0 | 3840 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 3841 | while : |
michael@0 | 3842 | do |
michael@0 | 3843 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 3844 | mv "conftest.tmp" "conftest.in" |
michael@0 | 3845 | cp "conftest.in" "conftest.nl" |
michael@0 | 3846 | $as_echo 'GREP' >> "conftest.nl" |
michael@0 | 3847 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 3848 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 3849 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 3850 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
michael@0 | 3851 | # Best one so far, save it but keep looking for a better one |
michael@0 | 3852 | ac_cv_path_GREP="$ac_path_GREP" |
michael@0 | 3853 | ac_path_GREP_max=$ac_count |
michael@0 | 3854 | fi |
michael@0 | 3855 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 3856 | test $ac_count -gt 10 && break |
michael@0 | 3857 | done |
michael@0 | 3858 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 3859 | esac |
michael@0 | 3860 | |
michael@0 | 3861 | $ac_path_GREP_found && break 3 |
michael@0 | 3862 | done |
michael@0 | 3863 | done |
michael@0 | 3864 | done |
michael@0 | 3865 | IFS=$as_save_IFS |
michael@0 | 3866 | if test -z "$ac_cv_path_GREP"; then |
michael@0 | 3867 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 3868 | fi |
michael@0 | 3869 | else |
michael@0 | 3870 | ac_cv_path_GREP=$GREP |
michael@0 | 3871 | fi |
michael@0 | 3872 | |
michael@0 | 3873 | fi |
michael@0 | 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
michael@0 | 3875 | $as_echo "$ac_cv_path_GREP" >&6; } |
michael@0 | 3876 | GREP="$ac_cv_path_GREP" |
michael@0 | 3877 | |
michael@0 | 3878 | |
michael@0 | 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
michael@0 | 3880 | $as_echo_n "checking for egrep... " >&6; } |
michael@0 | 3881 | if ${ac_cv_path_EGREP+:} false; then : |
michael@0 | 3882 | $as_echo_n "(cached) " >&6 |
michael@0 | 3883 | else |
michael@0 | 3884 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
michael@0 | 3885 | then ac_cv_path_EGREP="$GREP -E" |
michael@0 | 3886 | else |
michael@0 | 3887 | if test -z "$EGREP"; then |
michael@0 | 3888 | ac_path_EGREP_found=false |
michael@0 | 3889 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 3890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3891 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 3892 | do |
michael@0 | 3893 | IFS=$as_save_IFS |
michael@0 | 3894 | test -z "$as_dir" && as_dir=. |
michael@0 | 3895 | for ac_prog in egrep; do |
michael@0 | 3896 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3897 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 3898 | as_fn_executable_p "$ac_path_EGREP" || continue |
michael@0 | 3899 | # Check for GNU ac_path_EGREP and select it if it is found. |
michael@0 | 3900 | # Check for GNU $ac_path_EGREP |
michael@0 | 3901 | case `"$ac_path_EGREP" --version 2>&1` in |
michael@0 | 3902 | *GNU*) |
michael@0 | 3903 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
michael@0 | 3904 | *) |
michael@0 | 3905 | ac_count=0 |
michael@0 | 3906 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 3907 | while : |
michael@0 | 3908 | do |
michael@0 | 3909 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 3910 | mv "conftest.tmp" "conftest.in" |
michael@0 | 3911 | cp "conftest.in" "conftest.nl" |
michael@0 | 3912 | $as_echo 'EGREP' >> "conftest.nl" |
michael@0 | 3913 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 3914 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 3915 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 3916 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
michael@0 | 3917 | # Best one so far, save it but keep looking for a better one |
michael@0 | 3918 | ac_cv_path_EGREP="$ac_path_EGREP" |
michael@0 | 3919 | ac_path_EGREP_max=$ac_count |
michael@0 | 3920 | fi |
michael@0 | 3921 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 3922 | test $ac_count -gt 10 && break |
michael@0 | 3923 | done |
michael@0 | 3924 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 3925 | esac |
michael@0 | 3926 | |
michael@0 | 3927 | $ac_path_EGREP_found && break 3 |
michael@0 | 3928 | done |
michael@0 | 3929 | done |
michael@0 | 3930 | done |
michael@0 | 3931 | IFS=$as_save_IFS |
michael@0 | 3932 | if test -z "$ac_cv_path_EGREP"; then |
michael@0 | 3933 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 3934 | fi |
michael@0 | 3935 | else |
michael@0 | 3936 | ac_cv_path_EGREP=$EGREP |
michael@0 | 3937 | fi |
michael@0 | 3938 | |
michael@0 | 3939 | fi |
michael@0 | 3940 | fi |
michael@0 | 3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
michael@0 | 3942 | $as_echo "$ac_cv_path_EGREP" >&6; } |
michael@0 | 3943 | EGREP="$ac_cv_path_EGREP" |
michael@0 | 3944 | |
michael@0 | 3945 | |
michael@0 | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
michael@0 | 3947 | $as_echo_n "checking for ANSI C header files... " >&6; } |
michael@0 | 3948 | if ${ac_cv_header_stdc+:} false; then : |
michael@0 | 3949 | $as_echo_n "(cached) " >&6 |
michael@0 | 3950 | else |
michael@0 | 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3952 | /* end confdefs.h. */ |
michael@0 | 3953 | #include <stdlib.h> |
michael@0 | 3954 | #include <stdarg.h> |
michael@0 | 3955 | #include <string.h> |
michael@0 | 3956 | #include <float.h> |
michael@0 | 3957 | |
michael@0 | 3958 | int |
michael@0 | 3959 | main () |
michael@0 | 3960 | { |
michael@0 | 3961 | |
michael@0 | 3962 | ; |
michael@0 | 3963 | return 0; |
michael@0 | 3964 | } |
michael@0 | 3965 | _ACEOF |
michael@0 | 3966 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3967 | ac_cv_header_stdc=yes |
michael@0 | 3968 | else |
michael@0 | 3969 | ac_cv_header_stdc=no |
michael@0 | 3970 | fi |
michael@0 | 3971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3972 | |
michael@0 | 3973 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 3974 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
michael@0 | 3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3976 | /* end confdefs.h. */ |
michael@0 | 3977 | #include <string.h> |
michael@0 | 3978 | |
michael@0 | 3979 | _ACEOF |
michael@0 | 3980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 3981 | $EGREP "memchr" >/dev/null 2>&1; then : |
michael@0 | 3982 | |
michael@0 | 3983 | else |
michael@0 | 3984 | ac_cv_header_stdc=no |
michael@0 | 3985 | fi |
michael@0 | 3986 | rm -f conftest* |
michael@0 | 3987 | |
michael@0 | 3988 | fi |
michael@0 | 3989 | |
michael@0 | 3990 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 3991 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
michael@0 | 3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3993 | /* end confdefs.h. */ |
michael@0 | 3994 | #include <stdlib.h> |
michael@0 | 3995 | |
michael@0 | 3996 | _ACEOF |
michael@0 | 3997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 3998 | $EGREP "free" >/dev/null 2>&1; then : |
michael@0 | 3999 | |
michael@0 | 4000 | else |
michael@0 | 4001 | ac_cv_header_stdc=no |
michael@0 | 4002 | fi |
michael@0 | 4003 | rm -f conftest* |
michael@0 | 4004 | |
michael@0 | 4005 | fi |
michael@0 | 4006 | |
michael@0 | 4007 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4008 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
michael@0 | 4009 | if test "$cross_compiling" = yes; then : |
michael@0 | 4010 | : |
michael@0 | 4011 | else |
michael@0 | 4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4013 | /* end confdefs.h. */ |
michael@0 | 4014 | #include <ctype.h> |
michael@0 | 4015 | #include <stdlib.h> |
michael@0 | 4016 | #if ((' ' & 0x0FF) == 0x020) |
michael@0 | 4017 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
michael@0 | 4018 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
michael@0 | 4019 | #else |
michael@0 | 4020 | # define ISLOWER(c) \ |
michael@0 | 4021 | (('a' <= (c) && (c) <= 'i') \ |
michael@0 | 4022 | || ('j' <= (c) && (c) <= 'r') \ |
michael@0 | 4023 | || ('s' <= (c) && (c) <= 'z')) |
michael@0 | 4024 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
michael@0 | 4025 | #endif |
michael@0 | 4026 | |
michael@0 | 4027 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
michael@0 | 4028 | int |
michael@0 | 4029 | main () |
michael@0 | 4030 | { |
michael@0 | 4031 | int i; |
michael@0 | 4032 | for (i = 0; i < 256; i++) |
michael@0 | 4033 | if (XOR (islower (i), ISLOWER (i)) |
michael@0 | 4034 | || toupper (i) != TOUPPER (i)) |
michael@0 | 4035 | return 2; |
michael@0 | 4036 | return 0; |
michael@0 | 4037 | } |
michael@0 | 4038 | _ACEOF |
michael@0 | 4039 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4040 | |
michael@0 | 4041 | else |
michael@0 | 4042 | ac_cv_header_stdc=no |
michael@0 | 4043 | fi |
michael@0 | 4044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4045 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4046 | fi |
michael@0 | 4047 | |
michael@0 | 4048 | fi |
michael@0 | 4049 | fi |
michael@0 | 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
michael@0 | 4051 | $as_echo "$ac_cv_header_stdc" >&6; } |
michael@0 | 4052 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4053 | |
michael@0 | 4054 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
michael@0 | 4055 | |
michael@0 | 4056 | fi |
michael@0 | 4057 | |
michael@0 | 4058 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
michael@0 | 4059 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
michael@0 | 4060 | inttypes.h stdint.h unistd.h |
michael@0 | 4061 | do : |
michael@0 | 4062 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
michael@0 | 4063 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
michael@0 | 4064 | " |
michael@0 | 4065 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
michael@0 | 4066 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4067 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
michael@0 | 4068 | _ACEOF |
michael@0 | 4069 | |
michael@0 | 4070 | fi |
michael@0 | 4071 | |
michael@0 | 4072 | done |
michael@0 | 4073 | |
michael@0 | 4074 | |
michael@0 | 4075 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 4076 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 4077 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 4078 | # This bug is HP SR number 8606223364. |
michael@0 | 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
michael@0 | 4080 | $as_echo_n "checking size of void *... " >&6; } |
michael@0 | 4081 | if ${ac_cv_sizeof_void_p+:} false; then : |
michael@0 | 4082 | $as_echo_n "(cached) " >&6 |
michael@0 | 4083 | else |
michael@0 | 4084 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
michael@0 | 4085 | |
michael@0 | 4086 | else |
michael@0 | 4087 | if test "$ac_cv_type_void_p" = yes; then |
michael@0 | 4088 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 4089 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 4090 | as_fn_error 77 "cannot compute sizeof (void *) |
michael@0 | 4091 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 4092 | else |
michael@0 | 4093 | ac_cv_sizeof_void_p=0 |
michael@0 | 4094 | fi |
michael@0 | 4095 | fi |
michael@0 | 4096 | |
michael@0 | 4097 | fi |
michael@0 | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
michael@0 | 4099 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
michael@0 | 4100 | |
michael@0 | 4101 | |
michael@0 | 4102 | |
michael@0 | 4103 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4104 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
michael@0 | 4105 | _ACEOF |
michael@0 | 4106 | |
michael@0 | 4107 | |
michael@0 | 4108 | if test "x${ac_cv_sizeof_void_p}" = "x8" ; then |
michael@0 | 4109 | LG_SIZEOF_PTR=3 |
michael@0 | 4110 | elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then |
michael@0 | 4111 | LG_SIZEOF_PTR=2 |
michael@0 | 4112 | else |
michael@0 | 4113 | as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5 |
michael@0 | 4114 | fi |
michael@0 | 4115 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4116 | #define LG_SIZEOF_PTR $LG_SIZEOF_PTR |
michael@0 | 4117 | _ACEOF |
michael@0 | 4118 | |
michael@0 | 4119 | |
michael@0 | 4120 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 4121 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 4122 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 4123 | # This bug is HP SR number 8606223364. |
michael@0 | 4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
michael@0 | 4125 | $as_echo_n "checking size of int... " >&6; } |
michael@0 | 4126 | if ${ac_cv_sizeof_int+:} false; then : |
michael@0 | 4127 | $as_echo_n "(cached) " >&6 |
michael@0 | 4128 | else |
michael@0 | 4129 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
michael@0 | 4130 | |
michael@0 | 4131 | else |
michael@0 | 4132 | if test "$ac_cv_type_int" = yes; then |
michael@0 | 4133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 4134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 4135 | as_fn_error 77 "cannot compute sizeof (int) |
michael@0 | 4136 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 4137 | else |
michael@0 | 4138 | ac_cv_sizeof_int=0 |
michael@0 | 4139 | fi |
michael@0 | 4140 | fi |
michael@0 | 4141 | |
michael@0 | 4142 | fi |
michael@0 | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
michael@0 | 4144 | $as_echo "$ac_cv_sizeof_int" >&6; } |
michael@0 | 4145 | |
michael@0 | 4146 | |
michael@0 | 4147 | |
michael@0 | 4148 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4149 | #define SIZEOF_INT $ac_cv_sizeof_int |
michael@0 | 4150 | _ACEOF |
michael@0 | 4151 | |
michael@0 | 4152 | |
michael@0 | 4153 | if test "x${ac_cv_sizeof_int}" = "x8" ; then |
michael@0 | 4154 | LG_SIZEOF_INT=3 |
michael@0 | 4155 | elif test "x${ac_cv_sizeof_int}" = "x4" ; then |
michael@0 | 4156 | LG_SIZEOF_INT=2 |
michael@0 | 4157 | else |
michael@0 | 4158 | as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5 |
michael@0 | 4159 | fi |
michael@0 | 4160 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4161 | #define LG_SIZEOF_INT $LG_SIZEOF_INT |
michael@0 | 4162 | _ACEOF |
michael@0 | 4163 | |
michael@0 | 4164 | |
michael@0 | 4165 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 4166 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 4167 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 4168 | # This bug is HP SR number 8606223364. |
michael@0 | 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
michael@0 | 4170 | $as_echo_n "checking size of long... " >&6; } |
michael@0 | 4171 | if ${ac_cv_sizeof_long+:} false; then : |
michael@0 | 4172 | $as_echo_n "(cached) " >&6 |
michael@0 | 4173 | else |
michael@0 | 4174 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
michael@0 | 4175 | |
michael@0 | 4176 | else |
michael@0 | 4177 | if test "$ac_cv_type_long" = yes; then |
michael@0 | 4178 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 4179 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 4180 | as_fn_error 77 "cannot compute sizeof (long) |
michael@0 | 4181 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 4182 | else |
michael@0 | 4183 | ac_cv_sizeof_long=0 |
michael@0 | 4184 | fi |
michael@0 | 4185 | fi |
michael@0 | 4186 | |
michael@0 | 4187 | fi |
michael@0 | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
michael@0 | 4189 | $as_echo "$ac_cv_sizeof_long" >&6; } |
michael@0 | 4190 | |
michael@0 | 4191 | |
michael@0 | 4192 | |
michael@0 | 4193 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4194 | #define SIZEOF_LONG $ac_cv_sizeof_long |
michael@0 | 4195 | _ACEOF |
michael@0 | 4196 | |
michael@0 | 4197 | |
michael@0 | 4198 | if test "x${ac_cv_sizeof_long}" = "x8" ; then |
michael@0 | 4199 | LG_SIZEOF_LONG=3 |
michael@0 | 4200 | elif test "x${ac_cv_sizeof_long}" = "x4" ; then |
michael@0 | 4201 | LG_SIZEOF_LONG=2 |
michael@0 | 4202 | else |
michael@0 | 4203 | as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5 |
michael@0 | 4204 | fi |
michael@0 | 4205 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4206 | #define LG_SIZEOF_LONG $LG_SIZEOF_LONG |
michael@0 | 4207 | _ACEOF |
michael@0 | 4208 | |
michael@0 | 4209 | |
michael@0 | 4210 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 4211 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 4212 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 4213 | # This bug is HP SR number 8606223364. |
michael@0 | 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 |
michael@0 | 4215 | $as_echo_n "checking size of intmax_t... " >&6; } |
michael@0 | 4216 | if ${ac_cv_sizeof_intmax_t+:} false; then : |
michael@0 | 4217 | $as_echo_n "(cached) " >&6 |
michael@0 | 4218 | else |
michael@0 | 4219 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : |
michael@0 | 4220 | |
michael@0 | 4221 | else |
michael@0 | 4222 | if test "$ac_cv_type_intmax_t" = yes; then |
michael@0 | 4223 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 4224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 4225 | as_fn_error 77 "cannot compute sizeof (intmax_t) |
michael@0 | 4226 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 4227 | else |
michael@0 | 4228 | ac_cv_sizeof_intmax_t=0 |
michael@0 | 4229 | fi |
michael@0 | 4230 | fi |
michael@0 | 4231 | |
michael@0 | 4232 | fi |
michael@0 | 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 |
michael@0 | 4234 | $as_echo "$ac_cv_sizeof_intmax_t" >&6; } |
michael@0 | 4235 | |
michael@0 | 4236 | |
michael@0 | 4237 | |
michael@0 | 4238 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4239 | #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t |
michael@0 | 4240 | _ACEOF |
michael@0 | 4241 | |
michael@0 | 4242 | |
michael@0 | 4243 | if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then |
michael@0 | 4244 | LG_SIZEOF_INTMAX_T=4 |
michael@0 | 4245 | elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then |
michael@0 | 4246 | LG_SIZEOF_INTMAX_T=3 |
michael@0 | 4247 | elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then |
michael@0 | 4248 | LG_SIZEOF_INTMAX_T=2 |
michael@0 | 4249 | else |
michael@0 | 4250 | as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5 |
michael@0 | 4251 | fi |
michael@0 | 4252 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4253 | #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T |
michael@0 | 4254 | _ACEOF |
michael@0 | 4255 | |
michael@0 | 4256 | |
michael@0 | 4257 | ac_aux_dir= |
michael@0 | 4258 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
michael@0 | 4259 | if test -f "$ac_dir/install-sh"; then |
michael@0 | 4260 | ac_aux_dir=$ac_dir |
michael@0 | 4261 | ac_install_sh="$ac_aux_dir/install-sh -c" |
michael@0 | 4262 | break |
michael@0 | 4263 | elif test -f "$ac_dir/install.sh"; then |
michael@0 | 4264 | ac_aux_dir=$ac_dir |
michael@0 | 4265 | ac_install_sh="$ac_aux_dir/install.sh -c" |
michael@0 | 4266 | break |
michael@0 | 4267 | elif test -f "$ac_dir/shtool"; then |
michael@0 | 4268 | ac_aux_dir=$ac_dir |
michael@0 | 4269 | ac_install_sh="$ac_aux_dir/shtool install -c" |
michael@0 | 4270 | break |
michael@0 | 4271 | fi |
michael@0 | 4272 | done |
michael@0 | 4273 | if test -z "$ac_aux_dir"; then |
michael@0 | 4274 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
michael@0 | 4275 | fi |
michael@0 | 4276 | |
michael@0 | 4277 | # These three variables are undocumented and unsupported, |
michael@0 | 4278 | # and are intended to be withdrawn in a future Autoconf release. |
michael@0 | 4279 | # They can cause serious problems if a builder's source tree is in a directory |
michael@0 | 4280 | # whose full name contains unusual characters. |
michael@0 | 4281 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
michael@0 | 4282 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
michael@0 | 4283 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
michael@0 | 4284 | |
michael@0 | 4285 | |
michael@0 | 4286 | # Make sure we can run config.sub. |
michael@0 | 4287 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
michael@0 | 4288 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
michael@0 | 4289 | |
michael@0 | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
michael@0 | 4291 | $as_echo_n "checking build system type... " >&6; } |
michael@0 | 4292 | if ${ac_cv_build+:} false; then : |
michael@0 | 4293 | $as_echo_n "(cached) " >&6 |
michael@0 | 4294 | else |
michael@0 | 4295 | ac_build_alias=$build_alias |
michael@0 | 4296 | test "x$ac_build_alias" = x && |
michael@0 | 4297 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
michael@0 | 4298 | test "x$ac_build_alias" = x && |
michael@0 | 4299 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
michael@0 | 4300 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
michael@0 | 4301 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
michael@0 | 4302 | |
michael@0 | 4303 | fi |
michael@0 | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
michael@0 | 4305 | $as_echo "$ac_cv_build" >&6; } |
michael@0 | 4306 | case $ac_cv_build in |
michael@0 | 4307 | *-*-*) ;; |
michael@0 | 4308 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
michael@0 | 4309 | esac |
michael@0 | 4310 | build=$ac_cv_build |
michael@0 | 4311 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 4312 | set x $ac_cv_build |
michael@0 | 4313 | shift |
michael@0 | 4314 | build_cpu=$1 |
michael@0 | 4315 | build_vendor=$2 |
michael@0 | 4316 | shift; shift |
michael@0 | 4317 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 4318 | # except with old shells: |
michael@0 | 4319 | build_os=$* |
michael@0 | 4320 | IFS=$ac_save_IFS |
michael@0 | 4321 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
michael@0 | 4322 | |
michael@0 | 4323 | |
michael@0 | 4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
michael@0 | 4325 | $as_echo_n "checking host system type... " >&6; } |
michael@0 | 4326 | if ${ac_cv_host+:} false; then : |
michael@0 | 4327 | $as_echo_n "(cached) " >&6 |
michael@0 | 4328 | else |
michael@0 | 4329 | if test "x$host_alias" = x; then |
michael@0 | 4330 | ac_cv_host=$ac_cv_build |
michael@0 | 4331 | else |
michael@0 | 4332 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
michael@0 | 4333 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
michael@0 | 4334 | fi |
michael@0 | 4335 | |
michael@0 | 4336 | fi |
michael@0 | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
michael@0 | 4338 | $as_echo "$ac_cv_host" >&6; } |
michael@0 | 4339 | case $ac_cv_host in |
michael@0 | 4340 | *-*-*) ;; |
michael@0 | 4341 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
michael@0 | 4342 | esac |
michael@0 | 4343 | host=$ac_cv_host |
michael@0 | 4344 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 4345 | set x $ac_cv_host |
michael@0 | 4346 | shift |
michael@0 | 4347 | host_cpu=$1 |
michael@0 | 4348 | host_vendor=$2 |
michael@0 | 4349 | shift; shift |
michael@0 | 4350 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 4351 | # except with old shells: |
michael@0 | 4352 | host_os=$* |
michael@0 | 4353 | IFS=$ac_save_IFS |
michael@0 | 4354 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
michael@0 | 4355 | |
michael@0 | 4356 | |
michael@0 | 4357 | CPU_SPINWAIT="" |
michael@0 | 4358 | case "${host_cpu}" in |
michael@0 | 4359 | i[345]86) |
michael@0 | 4360 | ;; |
michael@0 | 4361 | i686) |
michael@0 | 4362 | |
michael@0 | 4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ is compilable" >&5 |
michael@0 | 4364 | $as_echo_n "checking whether __asm__ is compilable... " >&6; } |
michael@0 | 4365 | if ${je_cv_asm+:} false; then : |
michael@0 | 4366 | $as_echo_n "(cached) " >&6 |
michael@0 | 4367 | else |
michael@0 | 4368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4369 | /* end confdefs.h. */ |
michael@0 | 4370 | |
michael@0 | 4371 | int |
michael@0 | 4372 | main () |
michael@0 | 4373 | { |
michael@0 | 4374 | __asm__ volatile("pause"); return 0; |
michael@0 | 4375 | ; |
michael@0 | 4376 | return 0; |
michael@0 | 4377 | } |
michael@0 | 4378 | _ACEOF |
michael@0 | 4379 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 4380 | je_cv_asm=yes |
michael@0 | 4381 | else |
michael@0 | 4382 | je_cv_asm=no |
michael@0 | 4383 | fi |
michael@0 | 4384 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 4385 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 4386 | fi |
michael@0 | 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5 |
michael@0 | 4388 | $as_echo "$je_cv_asm" >&6; } |
michael@0 | 4389 | |
michael@0 | 4390 | if test "x${je_cv_asm}" = "xyes" ; then |
michael@0 | 4391 | CPU_SPINWAIT='__asm__ volatile("pause")' |
michael@0 | 4392 | fi |
michael@0 | 4393 | ;; |
michael@0 | 4394 | x86_64) |
michael@0 | 4395 | |
michael@0 | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ syntax is compilable" >&5 |
michael@0 | 4397 | $as_echo_n "checking whether __asm__ syntax is compilable... " >&6; } |
michael@0 | 4398 | if ${je_cv_asm+:} false; then : |
michael@0 | 4399 | $as_echo_n "(cached) " >&6 |
michael@0 | 4400 | else |
michael@0 | 4401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4402 | /* end confdefs.h. */ |
michael@0 | 4403 | |
michael@0 | 4404 | int |
michael@0 | 4405 | main () |
michael@0 | 4406 | { |
michael@0 | 4407 | __asm__ volatile("pause"); return 0; |
michael@0 | 4408 | ; |
michael@0 | 4409 | return 0; |
michael@0 | 4410 | } |
michael@0 | 4411 | _ACEOF |
michael@0 | 4412 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 4413 | je_cv_asm=yes |
michael@0 | 4414 | else |
michael@0 | 4415 | je_cv_asm=no |
michael@0 | 4416 | fi |
michael@0 | 4417 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 4418 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 4419 | fi |
michael@0 | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5 |
michael@0 | 4421 | $as_echo "$je_cv_asm" >&6; } |
michael@0 | 4422 | |
michael@0 | 4423 | if test "x${je_cv_asm}" = "xyes" ; then |
michael@0 | 4424 | CPU_SPINWAIT='__asm__ volatile("pause")' |
michael@0 | 4425 | fi |
michael@0 | 4426 | ;; |
michael@0 | 4427 | *) |
michael@0 | 4428 | ;; |
michael@0 | 4429 | esac |
michael@0 | 4430 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4431 | #define CPU_SPINWAIT $CPU_SPINWAIT |
michael@0 | 4432 | _ACEOF |
michael@0 | 4433 | |
michael@0 | 4434 | |
michael@0 | 4435 | LD_PRELOAD_VAR="LD_PRELOAD" |
michael@0 | 4436 | so="so" |
michael@0 | 4437 | importlib="${so}" |
michael@0 | 4438 | o="$ac_objext" |
michael@0 | 4439 | a="a" |
michael@0 | 4440 | exe="$ac_exeext" |
michael@0 | 4441 | libprefix="lib" |
michael@0 | 4442 | DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' |
michael@0 | 4443 | RPATH='-Wl,-rpath,$(1)' |
michael@0 | 4444 | SOREV="${so}.${rev}" |
michael@0 | 4445 | PIC_CFLAGS='-fPIC -DPIC' |
michael@0 | 4446 | CTARGET='-o $@' |
michael@0 | 4447 | LDTARGET='-o $@' |
michael@0 | 4448 | EXTRA_LDFLAGS= |
michael@0 | 4449 | MKLIB='ar crus $@' |
michael@0 | 4450 | CC_MM=1 |
michael@0 | 4451 | |
michael@0 | 4452 | default_munmap="1" |
michael@0 | 4453 | JEMALLOC_USABLE_SIZE_CONST="const" |
michael@0 | 4454 | case "${host}" in |
michael@0 | 4455 | *-*-darwin*) |
michael@0 | 4456 | CFLAGS="$CFLAGS" |
michael@0 | 4457 | abi="macho" |
michael@0 | 4458 | $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h |
michael@0 | 4459 | |
michael@0 | 4460 | RPATH="" |
michael@0 | 4461 | LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" |
michael@0 | 4462 | so="dylib" |
michael@0 | 4463 | importlib="${so}" |
michael@0 | 4464 | force_tls="0" |
michael@0 | 4465 | DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)' |
michael@0 | 4466 | SOREV="${rev}.${so}" |
michael@0 | 4467 | ;; |
michael@0 | 4468 | *-*-freebsd*) |
michael@0 | 4469 | CFLAGS="$CFLAGS" |
michael@0 | 4470 | abi="elf" |
michael@0 | 4471 | $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h |
michael@0 | 4472 | |
michael@0 | 4473 | force_lazy_lock="1" |
michael@0 | 4474 | ;; |
michael@0 | 4475 | *-*-linux*) |
michael@0 | 4476 | CFLAGS="$CFLAGS" |
michael@0 | 4477 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
michael@0 | 4478 | abi="elf" |
michael@0 | 4479 | $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h |
michael@0 | 4480 | |
michael@0 | 4481 | $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h |
michael@0 | 4482 | |
michael@0 | 4483 | JEMALLOC_USABLE_SIZE_CONST="" |
michael@0 | 4484 | default_munmap="0" |
michael@0 | 4485 | ;; |
michael@0 | 4486 | *-*-netbsd*) |
michael@0 | 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5 |
michael@0 | 4488 | $as_echo_n "checking ABI... " >&6; } |
michael@0 | 4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4490 | /* end confdefs.h. */ |
michael@0 | 4491 | #ifdef __ELF__ |
michael@0 | 4492 | /* ELF */ |
michael@0 | 4493 | #else |
michael@0 | 4494 | #error aout |
michael@0 | 4495 | #endif |
michael@0 | 4496 | |
michael@0 | 4497 | int |
michael@0 | 4498 | main () |
michael@0 | 4499 | { |
michael@0 | 4500 | |
michael@0 | 4501 | ; |
michael@0 | 4502 | return 0; |
michael@0 | 4503 | } |
michael@0 | 4504 | _ACEOF |
michael@0 | 4505 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4506 | CFLAGS="$CFLAGS"; abi="elf" |
michael@0 | 4507 | else |
michael@0 | 4508 | abi="aout" |
michael@0 | 4509 | fi |
michael@0 | 4510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5 |
michael@0 | 4512 | $as_echo "$abi" >&6; } |
michael@0 | 4513 | $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h |
michael@0 | 4514 | |
michael@0 | 4515 | ;; |
michael@0 | 4516 | *-*-solaris2*) |
michael@0 | 4517 | CFLAGS="$CFLAGS" |
michael@0 | 4518 | abi="elf" |
michael@0 | 4519 | RPATH='-Wl,-R,$(1)' |
michael@0 | 4520 | CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" |
michael@0 | 4521 | LIBS="$LIBS -lposix4 -lsocket -lnsl" |
michael@0 | 4522 | ;; |
michael@0 | 4523 | *-ibm-aix*) |
michael@0 | 4524 | if "$LG_SIZEOF_PTR" = "8"; then |
michael@0 | 4525 | LD_PRELOAD_VAR="LDR_PRELOAD64" |
michael@0 | 4526 | else |
michael@0 | 4527 | LD_PRELOAD_VAR="LDR_PRELOAD" |
michael@0 | 4528 | fi |
michael@0 | 4529 | abi="xcoff" |
michael@0 | 4530 | ;; |
michael@0 | 4531 | *-*-mingw*) |
michael@0 | 4532 | abi="pecoff" |
michael@0 | 4533 | force_tls="0" |
michael@0 | 4534 | RPATH="" |
michael@0 | 4535 | so="dll" |
michael@0 | 4536 | if test "x$je_cv_msvc" = "xyes" ; then |
michael@0 | 4537 | importlib="lib" |
michael@0 | 4538 | DSO_LDFLAGS="-LD" |
michael@0 | 4539 | EXTRA_LDFLAGS="-link -DEBUG" |
michael@0 | 4540 | CTARGET='-Fo$@' |
michael@0 | 4541 | LDTARGET='-Fe$@' |
michael@0 | 4542 | MKLIB='lib -nologo -out:$@' |
michael@0 | 4543 | CC_MM= |
michael@0 | 4544 | else |
michael@0 | 4545 | importlib="${so}" |
michael@0 | 4546 | DSO_LDFLAGS="-shared" |
michael@0 | 4547 | fi |
michael@0 | 4548 | a="lib" |
michael@0 | 4549 | libprefix="" |
michael@0 | 4550 | SOREV="${so}" |
michael@0 | 4551 | PIC_CFLAGS="" |
michael@0 | 4552 | ;; |
michael@0 | 4553 | *) |
michael@0 | 4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5 |
michael@0 | 4555 | $as_echo "Unsupported operating system: ${host}" >&6; } |
michael@0 | 4556 | abi="elf" |
michael@0 | 4557 | ;; |
michael@0 | 4558 | esac |
michael@0 | 4559 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4560 | #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST |
michael@0 | 4561 | _ACEOF |
michael@0 | 4562 | |
michael@0 | 4563 | |
michael@0 | 4564 | |
michael@0 | 4565 | |
michael@0 | 4566 | |
michael@0 | 4567 | |
michael@0 | 4568 | |
michael@0 | 4569 | |
michael@0 | 4570 | |
michael@0 | 4571 | |
michael@0 | 4572 | |
michael@0 | 4573 | |
michael@0 | 4574 | |
michael@0 | 4575 | |
michael@0 | 4576 | |
michael@0 | 4577 | |
michael@0 | 4578 | |
michael@0 | 4579 | |
michael@0 | 4580 | |
michael@0 | 4581 | if test "x$abi" != "xpecoff"; then |
michael@0 | 4582 | LIBS="$LIBS -lm" |
michael@0 | 4583 | fi |
michael@0 | 4584 | |
michael@0 | 4585 | |
michael@0 | 4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5 |
michael@0 | 4587 | $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; } |
michael@0 | 4588 | if ${je_cv_attribute+:} false; then : |
michael@0 | 4589 | $as_echo_n "(cached) " >&6 |
michael@0 | 4590 | else |
michael@0 | 4591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4592 | /* end confdefs.h. */ |
michael@0 | 4593 | static __attribute__((unused)) void foo(void){} |
michael@0 | 4594 | int |
michael@0 | 4595 | main () |
michael@0 | 4596 | { |
michael@0 | 4597 | |
michael@0 | 4598 | ; |
michael@0 | 4599 | return 0; |
michael@0 | 4600 | } |
michael@0 | 4601 | _ACEOF |
michael@0 | 4602 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 4603 | je_cv_attribute=yes |
michael@0 | 4604 | else |
michael@0 | 4605 | je_cv_attribute=no |
michael@0 | 4606 | fi |
michael@0 | 4607 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 4608 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 4609 | fi |
michael@0 | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5 |
michael@0 | 4611 | $as_echo "$je_cv_attribute" >&6; } |
michael@0 | 4612 | |
michael@0 | 4613 | if test "x${je_cv_attribute}" = "xyes" ; then |
michael@0 | 4614 | $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h |
michael@0 | 4615 | |
michael@0 | 4616 | if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then |
michael@0 | 4617 | |
michael@0 | 4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 |
michael@0 | 4619 | $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } |
michael@0 | 4620 | TCFLAGS="${CFLAGS}" |
michael@0 | 4621 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 4622 | CFLAGS="-fvisibility=hidden" |
michael@0 | 4623 | else |
michael@0 | 4624 | CFLAGS="${CFLAGS} -fvisibility=hidden" |
michael@0 | 4625 | fi |
michael@0 | 4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4627 | /* end confdefs.h. */ |
michael@0 | 4628 | |
michael@0 | 4629 | |
michael@0 | 4630 | int |
michael@0 | 4631 | main () |
michael@0 | 4632 | { |
michael@0 | 4633 | |
michael@0 | 4634 | return 0; |
michael@0 | 4635 | |
michael@0 | 4636 | ; |
michael@0 | 4637 | return 0; |
michael@0 | 4638 | } |
michael@0 | 4639 | _ACEOF |
michael@0 | 4640 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 4642 | $as_echo "yes" >&6; } |
michael@0 | 4643 | else |
michael@0 | 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4645 | $as_echo "no" >&6; } |
michael@0 | 4646 | CFLAGS="${TCFLAGS}" |
michael@0 | 4647 | |
michael@0 | 4648 | fi |
michael@0 | 4649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4650 | |
michael@0 | 4651 | fi |
michael@0 | 4652 | fi |
michael@0 | 4653 | SAVED_CFLAGS="${CFLAGS}" |
michael@0 | 4654 | |
michael@0 | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 |
michael@0 | 4656 | $as_echo_n "checking whether compiler supports -Werror... " >&6; } |
michael@0 | 4657 | TCFLAGS="${CFLAGS}" |
michael@0 | 4658 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 4659 | CFLAGS="-Werror" |
michael@0 | 4660 | else |
michael@0 | 4661 | CFLAGS="${CFLAGS} -Werror" |
michael@0 | 4662 | fi |
michael@0 | 4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4664 | /* end confdefs.h. */ |
michael@0 | 4665 | |
michael@0 | 4666 | |
michael@0 | 4667 | int |
michael@0 | 4668 | main () |
michael@0 | 4669 | { |
michael@0 | 4670 | |
michael@0 | 4671 | return 0; |
michael@0 | 4672 | |
michael@0 | 4673 | ; |
michael@0 | 4674 | return 0; |
michael@0 | 4675 | } |
michael@0 | 4676 | _ACEOF |
michael@0 | 4677 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 4679 | $as_echo "yes" >&6; } |
michael@0 | 4680 | else |
michael@0 | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4682 | $as_echo "no" >&6; } |
michael@0 | 4683 | CFLAGS="${TCFLAGS}" |
michael@0 | 4684 | |
michael@0 | 4685 | fi |
michael@0 | 4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4687 | |
michael@0 | 4688 | |
michael@0 | 4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5 |
michael@0 | 4690 | $as_echo_n "checking whether tls_model attribute is compilable... " >&6; } |
michael@0 | 4691 | if ${je_cv_tls_model+:} false; then : |
michael@0 | 4692 | $as_echo_n "(cached) " >&6 |
michael@0 | 4693 | else |
michael@0 | 4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4695 | /* end confdefs.h. */ |
michael@0 | 4696 | |
michael@0 | 4697 | int |
michael@0 | 4698 | main () |
michael@0 | 4699 | { |
michael@0 | 4700 | static __thread int |
michael@0 | 4701 | __attribute__((tls_model("initial-exec"))) foo; |
michael@0 | 4702 | foo = 0; |
michael@0 | 4703 | ; |
michael@0 | 4704 | return 0; |
michael@0 | 4705 | } |
michael@0 | 4706 | _ACEOF |
michael@0 | 4707 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 4708 | je_cv_tls_model=yes |
michael@0 | 4709 | else |
michael@0 | 4710 | je_cv_tls_model=no |
michael@0 | 4711 | fi |
michael@0 | 4712 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 4713 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 4714 | fi |
michael@0 | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5 |
michael@0 | 4716 | $as_echo "$je_cv_tls_model" >&6; } |
michael@0 | 4717 | |
michael@0 | 4718 | CFLAGS="${SAVED_CFLAGS}" |
michael@0 | 4719 | if test "x${je_cv_tls_model}" = "xyes" ; then |
michael@0 | 4720 | $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h |
michael@0 | 4721 | |
michael@0 | 4722 | else |
michael@0 | 4723 | $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h |
michael@0 | 4724 | |
michael@0 | 4725 | fi |
michael@0 | 4726 | |
michael@0 | 4727 | |
michael@0 | 4728 | # Check whether --with-rpath was given. |
michael@0 | 4729 | if test "${with_rpath+set}" = set; then : |
michael@0 | 4730 | withval=$with_rpath; if test "x$with_rpath" = "xno" ; then |
michael@0 | 4731 | RPATH_EXTRA= |
michael@0 | 4732 | else |
michael@0 | 4733 | RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" |
michael@0 | 4734 | fi |
michael@0 | 4735 | else |
michael@0 | 4736 | RPATH_EXTRA= |
michael@0 | 4737 | |
michael@0 | 4738 | fi |
michael@0 | 4739 | |
michael@0 | 4740 | |
michael@0 | 4741 | |
michael@0 | 4742 | # Check whether --enable-autogen was given. |
michael@0 | 4743 | if test "${enable_autogen+set}" = set; then : |
michael@0 | 4744 | enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then |
michael@0 | 4745 | enable_autogen="0" |
michael@0 | 4746 | else |
michael@0 | 4747 | enable_autogen="1" |
michael@0 | 4748 | fi |
michael@0 | 4749 | |
michael@0 | 4750 | else |
michael@0 | 4751 | enable_autogen="0" |
michael@0 | 4752 | |
michael@0 | 4753 | fi |
michael@0 | 4754 | |
michael@0 | 4755 | |
michael@0 | 4756 | |
michael@0 | 4757 | # Find a good install program. We prefer a C program (faster), |
michael@0 | 4758 | # so one script is as good as another. But avoid the broken or |
michael@0 | 4759 | # incompatible versions: |
michael@0 | 4760 | # SysV /etc/install, /usr/sbin/install |
michael@0 | 4761 | # SunOS /usr/etc/install |
michael@0 | 4762 | # IRIX /sbin/install |
michael@0 | 4763 | # AIX /bin/install |
michael@0 | 4764 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
michael@0 | 4765 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
michael@0 | 4766 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
michael@0 | 4767 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
michael@0 | 4768 | # OS/2's system install, which has a completely different semantic |
michael@0 | 4769 | # ./install, which can be erroneously created by make from ./install.sh. |
michael@0 | 4770 | # Reject install programs that cannot install multiple files. |
michael@0 | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
michael@0 | 4772 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
michael@0 | 4773 | if test -z "$INSTALL"; then |
michael@0 | 4774 | if ${ac_cv_path_install+:} false; then : |
michael@0 | 4775 | $as_echo_n "(cached) " >&6 |
michael@0 | 4776 | else |
michael@0 | 4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4778 | for as_dir in $PATH |
michael@0 | 4779 | do |
michael@0 | 4780 | IFS=$as_save_IFS |
michael@0 | 4781 | test -z "$as_dir" && as_dir=. |
michael@0 | 4782 | # Account for people who put trailing slashes in PATH elements. |
michael@0 | 4783 | case $as_dir/ in #(( |
michael@0 | 4784 | ./ | .// | /[cC]/* | \ |
michael@0 | 4785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
michael@0 | 4786 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
michael@0 | 4787 | /usr/ucb/* ) ;; |
michael@0 | 4788 | *) |
michael@0 | 4789 | # OSF1 and SCO ODT 3.0 have their own names for install. |
michael@0 | 4790 | # Don't use installbsd from OSF since it installs stuff as root |
michael@0 | 4791 | # by default. |
michael@0 | 4792 | for ac_prog in ginstall scoinst install; do |
michael@0 | 4793 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4794 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
michael@0 | 4795 | if test $ac_prog = install && |
michael@0 | 4796 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
michael@0 | 4797 | # AIX install. It has an incompatible calling convention. |
michael@0 | 4798 | : |
michael@0 | 4799 | elif test $ac_prog = install && |
michael@0 | 4800 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
michael@0 | 4801 | # program-specific install script used by HP pwplus--don't use. |
michael@0 | 4802 | : |
michael@0 | 4803 | else |
michael@0 | 4804 | rm -rf conftest.one conftest.two conftest.dir |
michael@0 | 4805 | echo one > conftest.one |
michael@0 | 4806 | echo two > conftest.two |
michael@0 | 4807 | mkdir conftest.dir |
michael@0 | 4808 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
michael@0 | 4809 | test -s conftest.one && test -s conftest.two && |
michael@0 | 4810 | test -s conftest.dir/conftest.one && |
michael@0 | 4811 | test -s conftest.dir/conftest.two |
michael@0 | 4812 | then |
michael@0 | 4813 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
michael@0 | 4814 | break 3 |
michael@0 | 4815 | fi |
michael@0 | 4816 | fi |
michael@0 | 4817 | fi |
michael@0 | 4818 | done |
michael@0 | 4819 | done |
michael@0 | 4820 | ;; |
michael@0 | 4821 | esac |
michael@0 | 4822 | |
michael@0 | 4823 | done |
michael@0 | 4824 | IFS=$as_save_IFS |
michael@0 | 4825 | |
michael@0 | 4826 | rm -rf conftest.one conftest.two conftest.dir |
michael@0 | 4827 | |
michael@0 | 4828 | fi |
michael@0 | 4829 | if test "${ac_cv_path_install+set}" = set; then |
michael@0 | 4830 | INSTALL=$ac_cv_path_install |
michael@0 | 4831 | else |
michael@0 | 4832 | # As a last resort, use the slow shell script. Don't cache a |
michael@0 | 4833 | # value for INSTALL within a source directory, because that will |
michael@0 | 4834 | # break other packages using the cache if that directory is |
michael@0 | 4835 | # removed, or if the value is a relative name. |
michael@0 | 4836 | INSTALL=$ac_install_sh |
michael@0 | 4837 | fi |
michael@0 | 4838 | fi |
michael@0 | 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
michael@0 | 4840 | $as_echo "$INSTALL" >&6; } |
michael@0 | 4841 | |
michael@0 | 4842 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
michael@0 | 4843 | # It thinks the first close brace ends the variable substitution. |
michael@0 | 4844 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
michael@0 | 4845 | |
michael@0 | 4846 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
michael@0 | 4847 | |
michael@0 | 4848 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
michael@0 | 4849 | |
michael@0 | 4850 | if test -n "$ac_tool_prefix"; then |
michael@0 | 4851 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
michael@0 | 4852 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
michael@0 | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4854 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4855 | if ${ac_cv_prog_RANLIB+:} false; then : |
michael@0 | 4856 | $as_echo_n "(cached) " >&6 |
michael@0 | 4857 | else |
michael@0 | 4858 | if test -n "$RANLIB"; then |
michael@0 | 4859 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
michael@0 | 4860 | else |
michael@0 | 4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4862 | for as_dir in $PATH |
michael@0 | 4863 | do |
michael@0 | 4864 | IFS=$as_save_IFS |
michael@0 | 4865 | test -z "$as_dir" && as_dir=. |
michael@0 | 4866 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4868 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
michael@0 | 4869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4870 | break 2 |
michael@0 | 4871 | fi |
michael@0 | 4872 | done |
michael@0 | 4873 | done |
michael@0 | 4874 | IFS=$as_save_IFS |
michael@0 | 4875 | |
michael@0 | 4876 | fi |
michael@0 | 4877 | fi |
michael@0 | 4878 | RANLIB=$ac_cv_prog_RANLIB |
michael@0 | 4879 | if test -n "$RANLIB"; then |
michael@0 | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
michael@0 | 4881 | $as_echo "$RANLIB" >&6; } |
michael@0 | 4882 | else |
michael@0 | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4884 | $as_echo "no" >&6; } |
michael@0 | 4885 | fi |
michael@0 | 4886 | |
michael@0 | 4887 | |
michael@0 | 4888 | fi |
michael@0 | 4889 | if test -z "$ac_cv_prog_RANLIB"; then |
michael@0 | 4890 | ac_ct_RANLIB=$RANLIB |
michael@0 | 4891 | # Extract the first word of "ranlib", so it can be a program name with args. |
michael@0 | 4892 | set dummy ranlib; ac_word=$2 |
michael@0 | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4894 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4895 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
michael@0 | 4896 | $as_echo_n "(cached) " >&6 |
michael@0 | 4897 | else |
michael@0 | 4898 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 4899 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
michael@0 | 4900 | else |
michael@0 | 4901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4902 | for as_dir in $PATH |
michael@0 | 4903 | do |
michael@0 | 4904 | IFS=$as_save_IFS |
michael@0 | 4905 | test -z "$as_dir" && as_dir=. |
michael@0 | 4906 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4908 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
michael@0 | 4909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4910 | break 2 |
michael@0 | 4911 | fi |
michael@0 | 4912 | done |
michael@0 | 4913 | done |
michael@0 | 4914 | IFS=$as_save_IFS |
michael@0 | 4915 | |
michael@0 | 4916 | fi |
michael@0 | 4917 | fi |
michael@0 | 4918 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
michael@0 | 4919 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
michael@0 | 4921 | $as_echo "$ac_ct_RANLIB" >&6; } |
michael@0 | 4922 | else |
michael@0 | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4924 | $as_echo "no" >&6; } |
michael@0 | 4925 | fi |
michael@0 | 4926 | |
michael@0 | 4927 | if test "x$ac_ct_RANLIB" = x; then |
michael@0 | 4928 | RANLIB=":" |
michael@0 | 4929 | else |
michael@0 | 4930 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 4931 | yes:) |
michael@0 | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 4933 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 4934 | ac_tool_warned=yes ;; |
michael@0 | 4935 | esac |
michael@0 | 4936 | RANLIB=$ac_ct_RANLIB |
michael@0 | 4937 | fi |
michael@0 | 4938 | else |
michael@0 | 4939 | RANLIB="$ac_cv_prog_RANLIB" |
michael@0 | 4940 | fi |
michael@0 | 4941 | |
michael@0 | 4942 | # Extract the first word of "ar", so it can be a program name with args. |
michael@0 | 4943 | set dummy ar; ac_word=$2 |
michael@0 | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4945 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4946 | if ${ac_cv_path_AR+:} false; then : |
michael@0 | 4947 | $as_echo_n "(cached) " >&6 |
michael@0 | 4948 | else |
michael@0 | 4949 | case $AR in |
michael@0 | 4950 | [\\/]* | ?:[\\/]*) |
michael@0 | 4951 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
michael@0 | 4952 | ;; |
michael@0 | 4953 | *) |
michael@0 | 4954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4955 | for as_dir in $PATH |
michael@0 | 4956 | do |
michael@0 | 4957 | IFS=$as_save_IFS |
michael@0 | 4958 | test -z "$as_dir" && as_dir=. |
michael@0 | 4959 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4961 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 4962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4963 | break 2 |
michael@0 | 4964 | fi |
michael@0 | 4965 | done |
michael@0 | 4966 | done |
michael@0 | 4967 | IFS=$as_save_IFS |
michael@0 | 4968 | |
michael@0 | 4969 | ;; |
michael@0 | 4970 | esac |
michael@0 | 4971 | fi |
michael@0 | 4972 | AR=$ac_cv_path_AR |
michael@0 | 4973 | if test -n "$AR"; then |
michael@0 | 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
michael@0 | 4975 | $as_echo "$AR" >&6; } |
michael@0 | 4976 | else |
michael@0 | 4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4978 | $as_echo "no" >&6; } |
michael@0 | 4979 | fi |
michael@0 | 4980 | |
michael@0 | 4981 | |
michael@0 | 4982 | # Extract the first word of "ld", so it can be a program name with args. |
michael@0 | 4983 | set dummy ld; ac_word=$2 |
michael@0 | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4985 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4986 | if ${ac_cv_path_LD+:} false; then : |
michael@0 | 4987 | $as_echo_n "(cached) " >&6 |
michael@0 | 4988 | else |
michael@0 | 4989 | case $LD in |
michael@0 | 4990 | [\\/]* | ?:[\\/]*) |
michael@0 | 4991 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
michael@0 | 4992 | ;; |
michael@0 | 4993 | *) |
michael@0 | 4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4995 | for as_dir in $PATH |
michael@0 | 4996 | do |
michael@0 | 4997 | IFS=$as_save_IFS |
michael@0 | 4998 | test -z "$as_dir" && as_dir=. |
michael@0 | 4999 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5001 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5003 | break 2 |
michael@0 | 5004 | fi |
michael@0 | 5005 | done |
michael@0 | 5006 | done |
michael@0 | 5007 | IFS=$as_save_IFS |
michael@0 | 5008 | |
michael@0 | 5009 | ;; |
michael@0 | 5010 | esac |
michael@0 | 5011 | fi |
michael@0 | 5012 | LD=$ac_cv_path_LD |
michael@0 | 5013 | if test -n "$LD"; then |
michael@0 | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
michael@0 | 5015 | $as_echo "$LD" >&6; } |
michael@0 | 5016 | else |
michael@0 | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5018 | $as_echo "no" >&6; } |
michael@0 | 5019 | fi |
michael@0 | 5020 | |
michael@0 | 5021 | |
michael@0 | 5022 | # Extract the first word of "autoconf", so it can be a program name with args. |
michael@0 | 5023 | set dummy autoconf; ac_word=$2 |
michael@0 | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5025 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5026 | if ${ac_cv_path_AUTOCONF+:} false; then : |
michael@0 | 5027 | $as_echo_n "(cached) " >&6 |
michael@0 | 5028 | else |
michael@0 | 5029 | case $AUTOCONF in |
michael@0 | 5030 | [\\/]* | ?:[\\/]*) |
michael@0 | 5031 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
michael@0 | 5032 | ;; |
michael@0 | 5033 | *) |
michael@0 | 5034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5035 | for as_dir in $PATH |
michael@0 | 5036 | do |
michael@0 | 5037 | IFS=$as_save_IFS |
michael@0 | 5038 | test -z "$as_dir" && as_dir=. |
michael@0 | 5039 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5041 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5043 | break 2 |
michael@0 | 5044 | fi |
michael@0 | 5045 | done |
michael@0 | 5046 | done |
michael@0 | 5047 | IFS=$as_save_IFS |
michael@0 | 5048 | |
michael@0 | 5049 | ;; |
michael@0 | 5050 | esac |
michael@0 | 5051 | fi |
michael@0 | 5052 | AUTOCONF=$ac_cv_path_AUTOCONF |
michael@0 | 5053 | if test -n "$AUTOCONF"; then |
michael@0 | 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
michael@0 | 5055 | $as_echo "$AUTOCONF" >&6; } |
michael@0 | 5056 | else |
michael@0 | 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5058 | $as_echo "no" >&6; } |
michael@0 | 5059 | fi |
michael@0 | 5060 | |
michael@0 | 5061 | |
michael@0 | 5062 | |
michael@0 | 5063 | public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free malloc_usable_size malloc_stats_print mallctl mallctlnametomib mallctlbymib" |
michael@0 | 5064 | |
michael@0 | 5065 | ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" |
michael@0 | 5066 | if test "x$ac_cv_func_memalign" = xyes; then : |
michael@0 | 5067 | $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h |
michael@0 | 5068 | |
michael@0 | 5069 | public_syms="${public_syms} memalign" |
michael@0 | 5070 | fi |
michael@0 | 5071 | |
michael@0 | 5072 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" |
michael@0 | 5073 | if test "x$ac_cv_func_valloc" = xyes; then : |
michael@0 | 5074 | $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h |
michael@0 | 5075 | |
michael@0 | 5076 | public_syms="${public_syms} valloc" |
michael@0 | 5077 | fi |
michael@0 | 5078 | |
michael@0 | 5079 | |
michael@0 | 5080 | # Check whether --enable-experimental was given. |
michael@0 | 5081 | if test "${enable_experimental+set}" = set; then : |
michael@0 | 5082 | enableval=$enable_experimental; if test "x$enable_experimental" = "xno" ; then |
michael@0 | 5083 | enable_experimental="0" |
michael@0 | 5084 | else |
michael@0 | 5085 | enable_experimental="1" |
michael@0 | 5086 | fi |
michael@0 | 5087 | |
michael@0 | 5088 | else |
michael@0 | 5089 | enable_experimental="1" |
michael@0 | 5090 | |
michael@0 | 5091 | fi |
michael@0 | 5092 | |
michael@0 | 5093 | if test "x$enable_experimental" = "x1" ; then |
michael@0 | 5094 | $as_echo "#define JEMALLOC_EXPERIMENTAL " >>confdefs.h |
michael@0 | 5095 | |
michael@0 | 5096 | public_syms="${public_syms} allocm dallocm nallocm rallocm sallocm" |
michael@0 | 5097 | fi |
michael@0 | 5098 | |
michael@0 | 5099 | |
michael@0 | 5100 | |
michael@0 | 5101 | # Check whether --with-mangling was given. |
michael@0 | 5102 | if test "${with_mangling+set}" = set; then : |
michael@0 | 5103 | withval=$with_mangling; mangling_map="$with_mangling" |
michael@0 | 5104 | else |
michael@0 | 5105 | mangling_map="" |
michael@0 | 5106 | fi |
michael@0 | 5107 | |
michael@0 | 5108 | for nm in `echo ${mangling_map} |tr ',' ' '` ; do |
michael@0 | 5109 | k="`echo ${nm} |tr ':' ' ' |awk '{print $1}'`" |
michael@0 | 5110 | n="je_${k}" |
michael@0 | 5111 | m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` |
michael@0 | 5112 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5113 | #define ${n} ${m} |
michael@0 | 5114 | _ACEOF |
michael@0 | 5115 | |
michael@0 | 5116 | public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${k}\$" |tr '\n' ' '` |
michael@0 | 5117 | done |
michael@0 | 5118 | |
michael@0 | 5119 | |
michael@0 | 5120 | # Check whether --with-jemalloc_prefix was given. |
michael@0 | 5121 | if test "${with_jemalloc_prefix+set}" = set; then : |
michael@0 | 5122 | withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix" |
michael@0 | 5123 | else |
michael@0 | 5124 | if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then |
michael@0 | 5125 | JEMALLOC_PREFIX="" |
michael@0 | 5126 | else |
michael@0 | 5127 | JEMALLOC_PREFIX="je_" |
michael@0 | 5128 | fi |
michael@0 | 5129 | |
michael@0 | 5130 | fi |
michael@0 | 5131 | |
michael@0 | 5132 | if test "x$JEMALLOC_PREFIX" != "x" ; then |
michael@0 | 5133 | JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` |
michael@0 | 5134 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5135 | #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX" |
michael@0 | 5136 | _ACEOF |
michael@0 | 5137 | |
michael@0 | 5138 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5139 | #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX" |
michael@0 | 5140 | _ACEOF |
michael@0 | 5141 | |
michael@0 | 5142 | fi |
michael@0 | 5143 | for stem in ${public_syms}; do |
michael@0 | 5144 | n="je_${stem}" |
michael@0 | 5145 | m="${JEMALLOC_PREFIX}${stem}" |
michael@0 | 5146 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5147 | #define ${n} ${m} |
michael@0 | 5148 | _ACEOF |
michael@0 | 5149 | |
michael@0 | 5150 | done |
michael@0 | 5151 | |
michael@0 | 5152 | |
michael@0 | 5153 | # Check whether --with-export was given. |
michael@0 | 5154 | if test "${with_export+set}" = set; then : |
michael@0 | 5155 | withval=$with_export; if test "x$with_export" = "xno"; then |
michael@0 | 5156 | $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h |
michael@0 | 5157 | |
michael@0 | 5158 | fi |
michael@0 | 5159 | ] |
michael@0 | 5160 | fi |
michael@0 | 5161 | |
michael@0 | 5162 | |
michael@0 | 5163 | |
michael@0 | 5164 | # Check whether --with-private_namespace was given. |
michael@0 | 5165 | if test "${with_private_namespace+set}" = set; then : |
michael@0 | 5166 | withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="$with_private_namespace" |
michael@0 | 5167 | else |
michael@0 | 5168 | JEMALLOC_PRIVATE_NAMESPACE="" |
michael@0 | 5169 | |
michael@0 | 5170 | fi |
michael@0 | 5171 | |
michael@0 | 5172 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5173 | #define JEMALLOC_PRIVATE_NAMESPACE "$JEMALLOC_PRIVATE_NAMESPACE" |
michael@0 | 5174 | _ACEOF |
michael@0 | 5175 | |
michael@0 | 5176 | if test "x$JEMALLOC_PRIVATE_NAMESPACE" != "x" ; then |
michael@0 | 5177 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5178 | #define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) ${JEMALLOC_PRIVATE_NAMESPACE}##string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix |
michael@0 | 5179 | _ACEOF |
michael@0 | 5180 | |
michael@0 | 5181 | else |
michael@0 | 5182 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5183 | #define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix |
michael@0 | 5184 | _ACEOF |
michael@0 | 5185 | |
michael@0 | 5186 | fi |
michael@0 | 5187 | |
michael@0 | 5188 | |
michael@0 | 5189 | # Check whether --with-install_suffix was given. |
michael@0 | 5190 | if test "${with_install_suffix+set}" = set; then : |
michael@0 | 5191 | withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix" |
michael@0 | 5192 | else |
michael@0 | 5193 | INSTALL_SUFFIX= |
michael@0 | 5194 | |
michael@0 | 5195 | fi |
michael@0 | 5196 | |
michael@0 | 5197 | install_suffix="$INSTALL_SUFFIX" |
michael@0 | 5198 | |
michael@0 | 5199 | |
michael@0 | 5200 | cfgoutputs_in="${srcroot}Makefile.in" |
michael@0 | 5201 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in" |
michael@0 | 5202 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in" |
michael@0 | 5203 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in" |
michael@0 | 5204 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc.h.in" |
michael@0 | 5205 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in" |
michael@0 | 5206 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/jemalloc_test.h.in" |
michael@0 | 5207 | |
michael@0 | 5208 | cfgoutputs_out="Makefile" |
michael@0 | 5209 | cfgoutputs_out="${cfgoutputs_out} doc/html.xsl" |
michael@0 | 5210 | cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" |
michael@0 | 5211 | cfgoutputs_out="${cfgoutputs_out} doc/jemalloc${install_suffix}.xml" |
michael@0 | 5212 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h" |
michael@0 | 5213 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h" |
michael@0 | 5214 | cfgoutputs_out="${cfgoutputs_out} test/jemalloc_test.h" |
michael@0 | 5215 | |
michael@0 | 5216 | cfgoutputs_tup="Makefile" |
michael@0 | 5217 | cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" |
michael@0 | 5218 | cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" |
michael@0 | 5219 | cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc${install_suffix}.xml:doc/jemalloc.xml.in" |
michael@0 | 5220 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in" |
michael@0 | 5221 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h" |
michael@0 | 5222 | cfgoutputs_tup="${cfgoutputs_tup} test/jemalloc_test.h:test/jemalloc_test.h.in" |
michael@0 | 5223 | |
michael@0 | 5224 | cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in" |
michael@0 | 5225 | cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/size_classes.sh" |
michael@0 | 5226 | |
michael@0 | 5227 | cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h" |
michael@0 | 5228 | cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h" |
michael@0 | 5229 | |
michael@0 | 5230 | cfghdrs_tup="include/jemalloc/jemalloc_defs${install_suffix}.h:include/jemalloc/jemalloc_defs.h.in" |
michael@0 | 5231 | |
michael@0 | 5232 | # Check whether --enable-cc-silence was given. |
michael@0 | 5233 | if test "${enable_cc_silence+set}" = set; then : |
michael@0 | 5234 | enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then |
michael@0 | 5235 | enable_cc_silence="0" |
michael@0 | 5236 | else |
michael@0 | 5237 | enable_cc_silence="1" |
michael@0 | 5238 | fi |
michael@0 | 5239 | |
michael@0 | 5240 | else |
michael@0 | 5241 | enable_cc_silence="0" |
michael@0 | 5242 | |
michael@0 | 5243 | fi |
michael@0 | 5244 | |
michael@0 | 5245 | if test "x$enable_cc_silence" = "x1" ; then |
michael@0 | 5246 | $as_echo "#define JEMALLOC_CC_SILENCE " >>confdefs.h |
michael@0 | 5247 | |
michael@0 | 5248 | fi |
michael@0 | 5249 | |
michael@0 | 5250 | # Check whether --enable-debug was given. |
michael@0 | 5251 | if test "${enable_debug+set}" = set; then : |
michael@0 | 5252 | enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then |
michael@0 | 5253 | enable_debug="0" |
michael@0 | 5254 | else |
michael@0 | 5255 | enable_debug="1" |
michael@0 | 5256 | fi |
michael@0 | 5257 | |
michael@0 | 5258 | else |
michael@0 | 5259 | enable_debug="0" |
michael@0 | 5260 | |
michael@0 | 5261 | fi |
michael@0 | 5262 | |
michael@0 | 5263 | if test "x$enable_debug" = "x1" ; then |
michael@0 | 5264 | $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h |
michael@0 | 5265 | |
michael@0 | 5266 | $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h |
michael@0 | 5267 | |
michael@0 | 5268 | fi |
michael@0 | 5269 | |
michael@0 | 5270 | |
michael@0 | 5271 | if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then |
michael@0 | 5272 | optimize="no" |
michael@0 | 5273 | echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes" |
michael@0 | 5274 | if test "x${optimize}" = "xyes" ; then |
michael@0 | 5275 | if test "x$GCC" = "xyes" ; then |
michael@0 | 5276 | |
michael@0 | 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 |
michael@0 | 5278 | $as_echo_n "checking whether compiler supports -O3... " >&6; } |
michael@0 | 5279 | TCFLAGS="${CFLAGS}" |
michael@0 | 5280 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 5281 | CFLAGS="-O3" |
michael@0 | 5282 | else |
michael@0 | 5283 | CFLAGS="${CFLAGS} -O3" |
michael@0 | 5284 | fi |
michael@0 | 5285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5286 | /* end confdefs.h. */ |
michael@0 | 5287 | |
michael@0 | 5288 | |
michael@0 | 5289 | int |
michael@0 | 5290 | main () |
michael@0 | 5291 | { |
michael@0 | 5292 | |
michael@0 | 5293 | return 0; |
michael@0 | 5294 | |
michael@0 | 5295 | ; |
michael@0 | 5296 | return 0; |
michael@0 | 5297 | } |
michael@0 | 5298 | _ACEOF |
michael@0 | 5299 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 5301 | $as_echo "yes" >&6; } |
michael@0 | 5302 | else |
michael@0 | 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5304 | $as_echo "no" >&6; } |
michael@0 | 5305 | CFLAGS="${TCFLAGS}" |
michael@0 | 5306 | |
michael@0 | 5307 | fi |
michael@0 | 5308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5309 | |
michael@0 | 5310 | |
michael@0 | 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5 |
michael@0 | 5312 | $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; } |
michael@0 | 5313 | TCFLAGS="${CFLAGS}" |
michael@0 | 5314 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 5315 | CFLAGS="-funroll-loops" |
michael@0 | 5316 | else |
michael@0 | 5317 | CFLAGS="${CFLAGS} -funroll-loops" |
michael@0 | 5318 | fi |
michael@0 | 5319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5320 | /* end confdefs.h. */ |
michael@0 | 5321 | |
michael@0 | 5322 | |
michael@0 | 5323 | int |
michael@0 | 5324 | main () |
michael@0 | 5325 | { |
michael@0 | 5326 | |
michael@0 | 5327 | return 0; |
michael@0 | 5328 | |
michael@0 | 5329 | ; |
michael@0 | 5330 | return 0; |
michael@0 | 5331 | } |
michael@0 | 5332 | _ACEOF |
michael@0 | 5333 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 5335 | $as_echo "yes" >&6; } |
michael@0 | 5336 | else |
michael@0 | 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5338 | $as_echo "no" >&6; } |
michael@0 | 5339 | CFLAGS="${TCFLAGS}" |
michael@0 | 5340 | |
michael@0 | 5341 | fi |
michael@0 | 5342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5343 | |
michael@0 | 5344 | elif test "x$je_cv_msvc" = "xyes" ; then |
michael@0 | 5345 | |
michael@0 | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 |
michael@0 | 5347 | $as_echo_n "checking whether compiler supports -O2... " >&6; } |
michael@0 | 5348 | TCFLAGS="${CFLAGS}" |
michael@0 | 5349 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 5350 | CFLAGS="-O2" |
michael@0 | 5351 | else |
michael@0 | 5352 | CFLAGS="${CFLAGS} -O2" |
michael@0 | 5353 | fi |
michael@0 | 5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5355 | /* end confdefs.h. */ |
michael@0 | 5356 | |
michael@0 | 5357 | |
michael@0 | 5358 | int |
michael@0 | 5359 | main () |
michael@0 | 5360 | { |
michael@0 | 5361 | |
michael@0 | 5362 | return 0; |
michael@0 | 5363 | |
michael@0 | 5364 | ; |
michael@0 | 5365 | return 0; |
michael@0 | 5366 | } |
michael@0 | 5367 | _ACEOF |
michael@0 | 5368 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 5370 | $as_echo "yes" >&6; } |
michael@0 | 5371 | else |
michael@0 | 5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5373 | $as_echo "no" >&6; } |
michael@0 | 5374 | CFLAGS="${TCFLAGS}" |
michael@0 | 5375 | |
michael@0 | 5376 | fi |
michael@0 | 5377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5378 | |
michael@0 | 5379 | else |
michael@0 | 5380 | |
michael@0 | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 |
michael@0 | 5382 | $as_echo_n "checking whether compiler supports -O... " >&6; } |
michael@0 | 5383 | TCFLAGS="${CFLAGS}" |
michael@0 | 5384 | if test "x${CFLAGS}" = "x" ; then |
michael@0 | 5385 | CFLAGS="-O" |
michael@0 | 5386 | else |
michael@0 | 5387 | CFLAGS="${CFLAGS} -O" |
michael@0 | 5388 | fi |
michael@0 | 5389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5390 | /* end confdefs.h. */ |
michael@0 | 5391 | |
michael@0 | 5392 | |
michael@0 | 5393 | int |
michael@0 | 5394 | main () |
michael@0 | 5395 | { |
michael@0 | 5396 | |
michael@0 | 5397 | return 0; |
michael@0 | 5398 | |
michael@0 | 5399 | ; |
michael@0 | 5400 | return 0; |
michael@0 | 5401 | } |
michael@0 | 5402 | _ACEOF |
michael@0 | 5403 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 5405 | $as_echo "yes" >&6; } |
michael@0 | 5406 | else |
michael@0 | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5408 | $as_echo "no" >&6; } |
michael@0 | 5409 | CFLAGS="${TCFLAGS}" |
michael@0 | 5410 | |
michael@0 | 5411 | fi |
michael@0 | 5412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5413 | |
michael@0 | 5414 | fi |
michael@0 | 5415 | fi |
michael@0 | 5416 | fi |
michael@0 | 5417 | |
michael@0 | 5418 | # Check whether --enable-stats was given. |
michael@0 | 5419 | if test "${enable_stats+set}" = set; then : |
michael@0 | 5420 | enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then |
michael@0 | 5421 | enable_stats="0" |
michael@0 | 5422 | else |
michael@0 | 5423 | enable_stats="1" |
michael@0 | 5424 | fi |
michael@0 | 5425 | |
michael@0 | 5426 | else |
michael@0 | 5427 | enable_stats="1" |
michael@0 | 5428 | |
michael@0 | 5429 | fi |
michael@0 | 5430 | |
michael@0 | 5431 | if test "x$enable_stats" = "x1" ; then |
michael@0 | 5432 | $as_echo "#define JEMALLOC_STATS " >>confdefs.h |
michael@0 | 5433 | |
michael@0 | 5434 | fi |
michael@0 | 5435 | |
michael@0 | 5436 | |
michael@0 | 5437 | # Check whether --enable-prof was given. |
michael@0 | 5438 | if test "${enable_prof+set}" = set; then : |
michael@0 | 5439 | enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then |
michael@0 | 5440 | enable_prof="0" |
michael@0 | 5441 | else |
michael@0 | 5442 | enable_prof="1" |
michael@0 | 5443 | fi |
michael@0 | 5444 | |
michael@0 | 5445 | else |
michael@0 | 5446 | enable_prof="0" |
michael@0 | 5447 | |
michael@0 | 5448 | fi |
michael@0 | 5449 | |
michael@0 | 5450 | if test "x$enable_prof" = "x1" ; then |
michael@0 | 5451 | backtrace_method="" |
michael@0 | 5452 | else |
michael@0 | 5453 | backtrace_method="N/A" |
michael@0 | 5454 | fi |
michael@0 | 5455 | |
michael@0 | 5456 | # Check whether --enable-prof-libunwind was given. |
michael@0 | 5457 | if test "${enable_prof_libunwind+set}" = set; then : |
michael@0 | 5458 | enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then |
michael@0 | 5459 | enable_prof_libunwind="0" |
michael@0 | 5460 | else |
michael@0 | 5461 | enable_prof_libunwind="1" |
michael@0 | 5462 | fi |
michael@0 | 5463 | |
michael@0 | 5464 | else |
michael@0 | 5465 | enable_prof_libunwind="0" |
michael@0 | 5466 | |
michael@0 | 5467 | fi |
michael@0 | 5468 | |
michael@0 | 5469 | |
michael@0 | 5470 | # Check whether --with-static_libunwind was given. |
michael@0 | 5471 | if test "${with_static_libunwind+set}" = set; then : |
michael@0 | 5472 | withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then |
michael@0 | 5473 | LUNWIND="-lunwind" |
michael@0 | 5474 | else |
michael@0 | 5475 | if test ! -f "$with_static_libunwind" ; then |
michael@0 | 5476 | as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5 |
michael@0 | 5477 | fi |
michael@0 | 5478 | LUNWIND="$with_static_libunwind" |
michael@0 | 5479 | fi |
michael@0 | 5480 | else |
michael@0 | 5481 | LUNWIND="-lunwind" |
michael@0 | 5482 | |
michael@0 | 5483 | fi |
michael@0 | 5484 | |
michael@0 | 5485 | if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then |
michael@0 | 5486 | for ac_header in libunwind.h |
michael@0 | 5487 | do : |
michael@0 | 5488 | ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" |
michael@0 | 5489 | if test "x$ac_cv_header_libunwind_h" = xyes; then : |
michael@0 | 5490 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5491 | #define HAVE_LIBUNWIND_H 1 |
michael@0 | 5492 | _ACEOF |
michael@0 | 5493 | |
michael@0 | 5494 | else |
michael@0 | 5495 | enable_prof_libunwind="0" |
michael@0 | 5496 | fi |
michael@0 | 5497 | |
michael@0 | 5498 | done |
michael@0 | 5499 | |
michael@0 | 5500 | if test "x$LUNWIND" = "x-lunwind" ; then |
michael@0 | 5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5 |
michael@0 | 5502 | $as_echo_n "checking for backtrace in -lunwind... " >&6; } |
michael@0 | 5503 | if ${ac_cv_lib_unwind_backtrace+:} false; then : |
michael@0 | 5504 | $as_echo_n "(cached) " >&6 |
michael@0 | 5505 | else |
michael@0 | 5506 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 5507 | LIBS="-lunwind $LIBS" |
michael@0 | 5508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5509 | /* end confdefs.h. */ |
michael@0 | 5510 | |
michael@0 | 5511 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5512 | Use char because int might match the return type of a GCC |
michael@0 | 5513 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5514 | #ifdef __cplusplus |
michael@0 | 5515 | extern "C" |
michael@0 | 5516 | #endif |
michael@0 | 5517 | char backtrace (); |
michael@0 | 5518 | int |
michael@0 | 5519 | main () |
michael@0 | 5520 | { |
michael@0 | 5521 | return backtrace (); |
michael@0 | 5522 | ; |
michael@0 | 5523 | return 0; |
michael@0 | 5524 | } |
michael@0 | 5525 | _ACEOF |
michael@0 | 5526 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5527 | ac_cv_lib_unwind_backtrace=yes |
michael@0 | 5528 | else |
michael@0 | 5529 | ac_cv_lib_unwind_backtrace=no |
michael@0 | 5530 | fi |
michael@0 | 5531 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5532 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5533 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 5534 | fi |
michael@0 | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5 |
michael@0 | 5536 | $as_echo "$ac_cv_lib_unwind_backtrace" >&6; } |
michael@0 | 5537 | if test "x$ac_cv_lib_unwind_backtrace" = xyes; then : |
michael@0 | 5538 | LIBS="$LIBS $LUNWIND" |
michael@0 | 5539 | else |
michael@0 | 5540 | enable_prof_libunwind="0" |
michael@0 | 5541 | fi |
michael@0 | 5542 | |
michael@0 | 5543 | else |
michael@0 | 5544 | LIBS="$LIBS $LUNWIND" |
michael@0 | 5545 | fi |
michael@0 | 5546 | if test "x${enable_prof_libunwind}" = "x1" ; then |
michael@0 | 5547 | backtrace_method="libunwind" |
michael@0 | 5548 | $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h |
michael@0 | 5549 | |
michael@0 | 5550 | fi |
michael@0 | 5551 | fi |
michael@0 | 5552 | |
michael@0 | 5553 | # Check whether --enable-prof-libgcc was given. |
michael@0 | 5554 | if test "${enable_prof_libgcc+set}" = set; then : |
michael@0 | 5555 | enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then |
michael@0 | 5556 | enable_prof_libgcc="0" |
michael@0 | 5557 | else |
michael@0 | 5558 | enable_prof_libgcc="1" |
michael@0 | 5559 | fi |
michael@0 | 5560 | |
michael@0 | 5561 | else |
michael@0 | 5562 | enable_prof_libgcc="1" |
michael@0 | 5563 | |
michael@0 | 5564 | fi |
michael@0 | 5565 | |
michael@0 | 5566 | if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ |
michael@0 | 5567 | -a "x$GCC" = "xyes" ; then |
michael@0 | 5568 | for ac_header in unwind.h |
michael@0 | 5569 | do : |
michael@0 | 5570 | ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" |
michael@0 | 5571 | if test "x$ac_cv_header_unwind_h" = xyes; then : |
michael@0 | 5572 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5573 | #define HAVE_UNWIND_H 1 |
michael@0 | 5574 | _ACEOF |
michael@0 | 5575 | |
michael@0 | 5576 | else |
michael@0 | 5577 | enable_prof_libgcc="0" |
michael@0 | 5578 | fi |
michael@0 | 5579 | |
michael@0 | 5580 | done |
michael@0 | 5581 | |
michael@0 | 5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5 |
michael@0 | 5583 | $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; } |
michael@0 | 5584 | if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then : |
michael@0 | 5585 | $as_echo_n "(cached) " >&6 |
michael@0 | 5586 | else |
michael@0 | 5587 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 5588 | LIBS="-lgcc $LIBS" |
michael@0 | 5589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5590 | /* end confdefs.h. */ |
michael@0 | 5591 | |
michael@0 | 5592 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5593 | Use char because int might match the return type of a GCC |
michael@0 | 5594 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5595 | #ifdef __cplusplus |
michael@0 | 5596 | extern "C" |
michael@0 | 5597 | #endif |
michael@0 | 5598 | char _Unwind_Backtrace (); |
michael@0 | 5599 | int |
michael@0 | 5600 | main () |
michael@0 | 5601 | { |
michael@0 | 5602 | return _Unwind_Backtrace (); |
michael@0 | 5603 | ; |
michael@0 | 5604 | return 0; |
michael@0 | 5605 | } |
michael@0 | 5606 | _ACEOF |
michael@0 | 5607 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5608 | ac_cv_lib_gcc__Unwind_Backtrace=yes |
michael@0 | 5609 | else |
michael@0 | 5610 | ac_cv_lib_gcc__Unwind_Backtrace=no |
michael@0 | 5611 | fi |
michael@0 | 5612 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5613 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5614 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 5615 | fi |
michael@0 | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5 |
michael@0 | 5617 | $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; } |
michael@0 | 5618 | if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then : |
michael@0 | 5619 | LIBS="$LIBS -lgcc" |
michael@0 | 5620 | else |
michael@0 | 5621 | enable_prof_libgcc="0" |
michael@0 | 5622 | fi |
michael@0 | 5623 | |
michael@0 | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcc-based backtracing reliability on ${host_cpu}" >&5 |
michael@0 | 5625 | $as_echo_n "checking libgcc-based backtracing reliability on ${host_cpu}... " >&6; } |
michael@0 | 5626 | case "${host_cpu}" in |
michael@0 | 5627 | i[3456]86) |
michael@0 | 5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5 |
michael@0 | 5629 | $as_echo "unreliable" >&6; } |
michael@0 | 5630 | enable_prof_libgcc="0"; |
michael@0 | 5631 | ;; |
michael@0 | 5632 | x86_64) |
michael@0 | 5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: reliable" >&5 |
michael@0 | 5634 | $as_echo "reliable" >&6; } |
michael@0 | 5635 | ;; |
michael@0 | 5636 | *) |
michael@0 | 5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5 |
michael@0 | 5638 | $as_echo "unreliable" >&6; } |
michael@0 | 5639 | enable_prof_libgcc="0"; |
michael@0 | 5640 | ;; |
michael@0 | 5641 | esac |
michael@0 | 5642 | if test "x${enable_prof_libgcc}" = "x1" ; then |
michael@0 | 5643 | backtrace_method="libgcc" |
michael@0 | 5644 | $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h |
michael@0 | 5645 | |
michael@0 | 5646 | fi |
michael@0 | 5647 | else |
michael@0 | 5648 | enable_prof_libgcc="0" |
michael@0 | 5649 | fi |
michael@0 | 5650 | |
michael@0 | 5651 | # Check whether --enable-prof-gcc was given. |
michael@0 | 5652 | if test "${enable_prof_gcc+set}" = set; then : |
michael@0 | 5653 | enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then |
michael@0 | 5654 | enable_prof_gcc="0" |
michael@0 | 5655 | else |
michael@0 | 5656 | enable_prof_gcc="1" |
michael@0 | 5657 | fi |
michael@0 | 5658 | |
michael@0 | 5659 | else |
michael@0 | 5660 | enable_prof_gcc="1" |
michael@0 | 5661 | |
michael@0 | 5662 | fi |
michael@0 | 5663 | |
michael@0 | 5664 | if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ |
michael@0 | 5665 | -a "x$GCC" = "xyes" ; then |
michael@0 | 5666 | backtrace_method="gcc intrinsics" |
michael@0 | 5667 | $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h |
michael@0 | 5668 | |
michael@0 | 5669 | else |
michael@0 | 5670 | enable_prof_gcc="0" |
michael@0 | 5671 | fi |
michael@0 | 5672 | |
michael@0 | 5673 | if test "x$backtrace_method" = "x" ; then |
michael@0 | 5674 | backtrace_method="none (disabling profiling)" |
michael@0 | 5675 | enable_prof="0" |
michael@0 | 5676 | fi |
michael@0 | 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5 |
michael@0 | 5678 | $as_echo_n "checking configured backtracing method... " >&6; } |
michael@0 | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5 |
michael@0 | 5680 | $as_echo "$backtrace_method" >&6; } |
michael@0 | 5681 | if test "x$enable_prof" = "x1" ; then |
michael@0 | 5682 | if test "x${force_tls}" = "x0" ; then |
michael@0 | 5683 | as_fn_error $? "Heap profiling requires TLS" "$LINENO" 5; |
michael@0 | 5684 | fi |
michael@0 | 5685 | force_tls="1" |
michael@0 | 5686 | $as_echo "#define JEMALLOC_PROF " >>confdefs.h |
michael@0 | 5687 | |
michael@0 | 5688 | fi |
michael@0 | 5689 | |
michael@0 | 5690 | |
michael@0 | 5691 | # Check whether --enable-tcache was given. |
michael@0 | 5692 | if test "${enable_tcache+set}" = set; then : |
michael@0 | 5693 | enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then |
michael@0 | 5694 | enable_tcache="0" |
michael@0 | 5695 | else |
michael@0 | 5696 | enable_tcache="1" |
michael@0 | 5697 | fi |
michael@0 | 5698 | |
michael@0 | 5699 | else |
michael@0 | 5700 | enable_tcache="1" |
michael@0 | 5701 | |
michael@0 | 5702 | fi |
michael@0 | 5703 | |
michael@0 | 5704 | if test "x$enable_tcache" = "x1" ; then |
michael@0 | 5705 | $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h |
michael@0 | 5706 | |
michael@0 | 5707 | fi |
michael@0 | 5708 | |
michael@0 | 5709 | |
michael@0 | 5710 | # Check whether --enable-mremap was given. |
michael@0 | 5711 | if test "${enable_mremap+set}" = set; then : |
michael@0 | 5712 | enableval=$enable_mremap; if test "x$enable_mremap" = "xno" ; then |
michael@0 | 5713 | enable_mremap="0" |
michael@0 | 5714 | else |
michael@0 | 5715 | enable_mremap="1" |
michael@0 | 5716 | fi |
michael@0 | 5717 | |
michael@0 | 5718 | else |
michael@0 | 5719 | enable_mremap="0" |
michael@0 | 5720 | |
michael@0 | 5721 | fi |
michael@0 | 5722 | |
michael@0 | 5723 | if test "x$enable_mremap" = "x1" ; then |
michael@0 | 5724 | |
michael@0 | 5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mremap(...MREMAP_FIXED...) is compilable" >&5 |
michael@0 | 5726 | $as_echo_n "checking whether mremap(...MREMAP_FIXED...) is compilable... " >&6; } |
michael@0 | 5727 | if ${je_cv_mremap_fixed+:} false; then : |
michael@0 | 5728 | $as_echo_n "(cached) " >&6 |
michael@0 | 5729 | else |
michael@0 | 5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5731 | /* end confdefs.h. */ |
michael@0 | 5732 | |
michael@0 | 5733 | #define _GNU_SOURCE |
michael@0 | 5734 | #include <sys/mman.h> |
michael@0 | 5735 | |
michael@0 | 5736 | int |
michael@0 | 5737 | main () |
michael@0 | 5738 | { |
michael@0 | 5739 | |
michael@0 | 5740 | void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0); |
michael@0 | 5741 | |
michael@0 | 5742 | ; |
michael@0 | 5743 | return 0; |
michael@0 | 5744 | } |
michael@0 | 5745 | _ACEOF |
michael@0 | 5746 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5747 | je_cv_mremap_fixed=yes |
michael@0 | 5748 | else |
michael@0 | 5749 | je_cv_mremap_fixed=no |
michael@0 | 5750 | fi |
michael@0 | 5751 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5752 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5753 | fi |
michael@0 | 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mremap_fixed" >&5 |
michael@0 | 5755 | $as_echo "$je_cv_mremap_fixed" >&6; } |
michael@0 | 5756 | |
michael@0 | 5757 | if test "x${je_cv_mremap_fixed}" = "xno" ; then |
michael@0 | 5758 | enable_mremap="0" |
michael@0 | 5759 | fi |
michael@0 | 5760 | fi |
michael@0 | 5761 | if test "x$enable_mremap" = "x1" ; then |
michael@0 | 5762 | $as_echo "#define JEMALLOC_MREMAP " >>confdefs.h |
michael@0 | 5763 | |
michael@0 | 5764 | fi |
michael@0 | 5765 | |
michael@0 | 5766 | |
michael@0 | 5767 | # Check whether --enable-munmap was given. |
michael@0 | 5768 | if test "${enable_munmap+set}" = set; then : |
michael@0 | 5769 | enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then |
michael@0 | 5770 | enable_munmap="0" |
michael@0 | 5771 | else |
michael@0 | 5772 | enable_munmap="1" |
michael@0 | 5773 | fi |
michael@0 | 5774 | |
michael@0 | 5775 | else |
michael@0 | 5776 | enable_munmap="${default_munmap}" |
michael@0 | 5777 | |
michael@0 | 5778 | fi |
michael@0 | 5779 | |
michael@0 | 5780 | if test "x$enable_munmap" = "x1" ; then |
michael@0 | 5781 | $as_echo "#define JEMALLOC_MUNMAP " >>confdefs.h |
michael@0 | 5782 | |
michael@0 | 5783 | fi |
michael@0 | 5784 | |
michael@0 | 5785 | |
michael@0 | 5786 | # Check whether --enable-dss was given. |
michael@0 | 5787 | if test "${enable_dss+set}" = set; then : |
michael@0 | 5788 | enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then |
michael@0 | 5789 | enable_dss="0" |
michael@0 | 5790 | else |
michael@0 | 5791 | enable_dss="1" |
michael@0 | 5792 | fi |
michael@0 | 5793 | |
michael@0 | 5794 | else |
michael@0 | 5795 | enable_dss="0" |
michael@0 | 5796 | |
michael@0 | 5797 | fi |
michael@0 | 5798 | |
michael@0 | 5799 | ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" |
michael@0 | 5800 | if test "x$ac_cv_func_sbrk" = xyes; then : |
michael@0 | 5801 | have_sbrk="1" |
michael@0 | 5802 | else |
michael@0 | 5803 | have_sbrk="0" |
michael@0 | 5804 | fi |
michael@0 | 5805 | |
michael@0 | 5806 | if test "x$have_sbrk" = "x1" ; then |
michael@0 | 5807 | $as_echo "#define JEMALLOC_HAVE_SBRK " >>confdefs.h |
michael@0 | 5808 | |
michael@0 | 5809 | else |
michael@0 | 5810 | enable_dss="0" |
michael@0 | 5811 | fi |
michael@0 | 5812 | |
michael@0 | 5813 | if test "x$enable_dss" = "x1" ; then |
michael@0 | 5814 | $as_echo "#define JEMALLOC_DSS " >>confdefs.h |
michael@0 | 5815 | |
michael@0 | 5816 | fi |
michael@0 | 5817 | |
michael@0 | 5818 | |
michael@0 | 5819 | # Check whether --enable-fill was given. |
michael@0 | 5820 | if test "${enable_fill+set}" = set; then : |
michael@0 | 5821 | enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then |
michael@0 | 5822 | enable_fill="0" |
michael@0 | 5823 | else |
michael@0 | 5824 | enable_fill="1" |
michael@0 | 5825 | fi |
michael@0 | 5826 | |
michael@0 | 5827 | else |
michael@0 | 5828 | enable_fill="1" |
michael@0 | 5829 | |
michael@0 | 5830 | fi |
michael@0 | 5831 | |
michael@0 | 5832 | if test "x$enable_fill" = "x1" ; then |
michael@0 | 5833 | $as_echo "#define JEMALLOC_FILL " >>confdefs.h |
michael@0 | 5834 | |
michael@0 | 5835 | fi |
michael@0 | 5836 | |
michael@0 | 5837 | |
michael@0 | 5838 | # Check whether --enable-utrace was given. |
michael@0 | 5839 | if test "${enable_utrace+set}" = set; then : |
michael@0 | 5840 | enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then |
michael@0 | 5841 | enable_utrace="0" |
michael@0 | 5842 | else |
michael@0 | 5843 | enable_utrace="1" |
michael@0 | 5844 | fi |
michael@0 | 5845 | |
michael@0 | 5846 | else |
michael@0 | 5847 | enable_utrace="0" |
michael@0 | 5848 | |
michael@0 | 5849 | fi |
michael@0 | 5850 | |
michael@0 | 5851 | |
michael@0 | 5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5 |
michael@0 | 5853 | $as_echo_n "checking whether utrace(2) is compilable... " >&6; } |
michael@0 | 5854 | if ${je_cv_utrace+:} false; then : |
michael@0 | 5855 | $as_echo_n "(cached) " >&6 |
michael@0 | 5856 | else |
michael@0 | 5857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5858 | /* end confdefs.h. */ |
michael@0 | 5859 | |
michael@0 | 5860 | #include <sys/types.h> |
michael@0 | 5861 | #include <sys/param.h> |
michael@0 | 5862 | #include <sys/time.h> |
michael@0 | 5863 | #include <sys/uio.h> |
michael@0 | 5864 | #include <sys/ktrace.h> |
michael@0 | 5865 | |
michael@0 | 5866 | int |
michael@0 | 5867 | main () |
michael@0 | 5868 | { |
michael@0 | 5869 | |
michael@0 | 5870 | utrace((void *)0, 0); |
michael@0 | 5871 | |
michael@0 | 5872 | ; |
michael@0 | 5873 | return 0; |
michael@0 | 5874 | } |
michael@0 | 5875 | _ACEOF |
michael@0 | 5876 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5877 | je_cv_utrace=yes |
michael@0 | 5878 | else |
michael@0 | 5879 | je_cv_utrace=no |
michael@0 | 5880 | fi |
michael@0 | 5881 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5882 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5883 | fi |
michael@0 | 5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5 |
michael@0 | 5885 | $as_echo "$je_cv_utrace" >&6; } |
michael@0 | 5886 | |
michael@0 | 5887 | if test "x${je_cv_utrace}" = "xno" ; then |
michael@0 | 5888 | enable_utrace="0" |
michael@0 | 5889 | fi |
michael@0 | 5890 | if test "x$enable_utrace" = "x1" ; then |
michael@0 | 5891 | $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h |
michael@0 | 5892 | |
michael@0 | 5893 | fi |
michael@0 | 5894 | |
michael@0 | 5895 | |
michael@0 | 5896 | # Check whether --enable-valgrind was given. |
michael@0 | 5897 | if test "${enable_valgrind+set}" = set; then : |
michael@0 | 5898 | enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then |
michael@0 | 5899 | enable_valgrind="0" |
michael@0 | 5900 | else |
michael@0 | 5901 | enable_valgrind="1" |
michael@0 | 5902 | fi |
michael@0 | 5903 | |
michael@0 | 5904 | else |
michael@0 | 5905 | enable_valgrind="1" |
michael@0 | 5906 | |
michael@0 | 5907 | fi |
michael@0 | 5908 | |
michael@0 | 5909 | if test "x$enable_valgrind" = "x1" ; then |
michael@0 | 5910 | |
michael@0 | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5 |
michael@0 | 5912 | $as_echo_n "checking whether valgrind is compilable... " >&6; } |
michael@0 | 5913 | if ${je_cv_valgrind+:} false; then : |
michael@0 | 5914 | $as_echo_n "(cached) " >&6 |
michael@0 | 5915 | else |
michael@0 | 5916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5917 | /* end confdefs.h. */ |
michael@0 | 5918 | |
michael@0 | 5919 | #include <valgrind/valgrind.h> |
michael@0 | 5920 | #include <valgrind/memcheck.h> |
michael@0 | 5921 | |
michael@0 | 5922 | #if !defined(VALGRIND_RESIZEINPLACE_BLOCK) |
michael@0 | 5923 | # error "Incompatible Valgrind version" |
michael@0 | 5924 | #endif |
michael@0 | 5925 | |
michael@0 | 5926 | int |
michael@0 | 5927 | main () |
michael@0 | 5928 | { |
michael@0 | 5929 | |
michael@0 | 5930 | ; |
michael@0 | 5931 | return 0; |
michael@0 | 5932 | } |
michael@0 | 5933 | _ACEOF |
michael@0 | 5934 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5935 | je_cv_valgrind=yes |
michael@0 | 5936 | else |
michael@0 | 5937 | je_cv_valgrind=no |
michael@0 | 5938 | fi |
michael@0 | 5939 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5940 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5941 | fi |
michael@0 | 5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5 |
michael@0 | 5943 | $as_echo "$je_cv_valgrind" >&6; } |
michael@0 | 5944 | |
michael@0 | 5945 | if test "x${je_cv_valgrind}" = "xno" ; then |
michael@0 | 5946 | enable_valgrind="0" |
michael@0 | 5947 | fi |
michael@0 | 5948 | if test "x$enable_valgrind" = "x1" ; then |
michael@0 | 5949 | $as_echo "#define JEMALLOC_VALGRIND " >>confdefs.h |
michael@0 | 5950 | |
michael@0 | 5951 | fi |
michael@0 | 5952 | fi |
michael@0 | 5953 | |
michael@0 | 5954 | |
michael@0 | 5955 | # Check whether --enable-xmalloc was given. |
michael@0 | 5956 | if test "${enable_xmalloc+set}" = set; then : |
michael@0 | 5957 | enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then |
michael@0 | 5958 | enable_xmalloc="0" |
michael@0 | 5959 | else |
michael@0 | 5960 | enable_xmalloc="1" |
michael@0 | 5961 | fi |
michael@0 | 5962 | |
michael@0 | 5963 | else |
michael@0 | 5964 | enable_xmalloc="0" |
michael@0 | 5965 | |
michael@0 | 5966 | fi |
michael@0 | 5967 | |
michael@0 | 5968 | if test "x$enable_xmalloc" = "x1" ; then |
michael@0 | 5969 | $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h |
michael@0 | 5970 | |
michael@0 | 5971 | fi |
michael@0 | 5972 | |
michael@0 | 5973 | |
michael@0 | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking STATIC_PAGE_SHIFT" >&5 |
michael@0 | 5975 | $as_echo_n "checking STATIC_PAGE_SHIFT... " >&6; } |
michael@0 | 5976 | if ${je_cv_static_page_shift+:} false; then : |
michael@0 | 5977 | $as_echo_n "(cached) " >&6 |
michael@0 | 5978 | else |
michael@0 | 5979 | if test "$cross_compiling" = yes; then : |
michael@0 | 5980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 5981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 5982 | as_fn_error $? "cannot run test program while cross compiling |
michael@0 | 5983 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 5984 | else |
michael@0 | 5985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5986 | /* end confdefs.h. */ |
michael@0 | 5987 | |
michael@0 | 5988 | #include <strings.h> |
michael@0 | 5989 | #ifdef _WIN32 |
michael@0 | 5990 | #include <windows.h> |
michael@0 | 5991 | #else |
michael@0 | 5992 | #include <unistd.h> |
michael@0 | 5993 | #endif |
michael@0 | 5994 | #include <stdio.h> |
michael@0 | 5995 | |
michael@0 | 5996 | int |
michael@0 | 5997 | main () |
michael@0 | 5998 | { |
michael@0 | 5999 | |
michael@0 | 6000 | long result; |
michael@0 | 6001 | FILE *f; |
michael@0 | 6002 | |
michael@0 | 6003 | #ifdef _WIN32 |
michael@0 | 6004 | SYSTEM_INFO si; |
michael@0 | 6005 | GetSystemInfo(&si); |
michael@0 | 6006 | result = si.dwPageSize; |
michael@0 | 6007 | #else |
michael@0 | 6008 | result = sysconf(_SC_PAGESIZE); |
michael@0 | 6009 | #endif |
michael@0 | 6010 | if (result == -1) { |
michael@0 | 6011 | return 1; |
michael@0 | 6012 | } |
michael@0 | 6013 | result = ffsl(result) - 1; |
michael@0 | 6014 | |
michael@0 | 6015 | f = fopen("conftest.out", "w"); |
michael@0 | 6016 | if (f == NULL) { |
michael@0 | 6017 | return 1; |
michael@0 | 6018 | } |
michael@0 | 6019 | fprintf(f, "%u\n", result); |
michael@0 | 6020 | fclose(f); |
michael@0 | 6021 | |
michael@0 | 6022 | return 0; |
michael@0 | 6023 | |
michael@0 | 6024 | ; |
michael@0 | 6025 | return 0; |
michael@0 | 6026 | } |
michael@0 | 6027 | _ACEOF |
michael@0 | 6028 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 6029 | je_cv_static_page_shift=`cat conftest.out` |
michael@0 | 6030 | else |
michael@0 | 6031 | je_cv_static_page_shift=undefined |
michael@0 | 6032 | fi |
michael@0 | 6033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 6034 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 6035 | fi |
michael@0 | 6036 | |
michael@0 | 6037 | fi |
michael@0 | 6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_static_page_shift" >&5 |
michael@0 | 6039 | $as_echo "$je_cv_static_page_shift" >&6; } |
michael@0 | 6040 | |
michael@0 | 6041 | if test "x$je_cv_static_page_shift" != "xundefined"; then |
michael@0 | 6042 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6043 | #define STATIC_PAGE_SHIFT $je_cv_static_page_shift |
michael@0 | 6044 | _ACEOF |
michael@0 | 6045 | |
michael@0 | 6046 | else |
michael@0 | 6047 | as_fn_error $? "cannot determine value for STATIC_PAGE_SHIFT" "$LINENO" 5 |
michael@0 | 6048 | fi |
michael@0 | 6049 | |
michael@0 | 6050 | |
michael@0 | 6051 | if test -d "${srcroot}.git" ; then |
michael@0 | 6052 | git describe --long --abbrev=40 > ${srcroot}VERSION |
michael@0 | 6053 | fi |
michael@0 | 6054 | jemalloc_version=`cat ${srcroot}VERSION` |
michael@0 | 6055 | jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'` |
michael@0 | 6056 | jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'` |
michael@0 | 6057 | jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'` |
michael@0 | 6058 | jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'` |
michael@0 | 6059 | jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'` |
michael@0 | 6060 | |
michael@0 | 6061 | |
michael@0 | 6062 | |
michael@0 | 6063 | |
michael@0 | 6064 | |
michael@0 | 6065 | |
michael@0 | 6066 | |
michael@0 | 6067 | |
michael@0 | 6068 | if test "x$abi" != "xpecoff" ; then |
michael@0 | 6069 | for ac_header in pthread.h |
michael@0 | 6070 | do : |
michael@0 | 6071 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
michael@0 | 6072 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
michael@0 | 6073 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6074 | #define HAVE_PTHREAD_H 1 |
michael@0 | 6075 | _ACEOF |
michael@0 | 6076 | |
michael@0 | 6077 | else |
michael@0 | 6078 | as_fn_error $? "pthread.h is missing" "$LINENO" 5 |
michael@0 | 6079 | fi |
michael@0 | 6080 | |
michael@0 | 6081 | done |
michael@0 | 6082 | |
michael@0 | 6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
michael@0 | 6084 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
michael@0 | 6085 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
michael@0 | 6086 | $as_echo_n "(cached) " >&6 |
michael@0 | 6087 | else |
michael@0 | 6088 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 6089 | LIBS="-lpthread $LIBS" |
michael@0 | 6090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6091 | /* end confdefs.h. */ |
michael@0 | 6092 | |
michael@0 | 6093 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 6094 | Use char because int might match the return type of a GCC |
michael@0 | 6095 | builtin and then its argument prototype would still apply. */ |
michael@0 | 6096 | #ifdef __cplusplus |
michael@0 | 6097 | extern "C" |
michael@0 | 6098 | #endif |
michael@0 | 6099 | char pthread_create (); |
michael@0 | 6100 | int |
michael@0 | 6101 | main () |
michael@0 | 6102 | { |
michael@0 | 6103 | return pthread_create (); |
michael@0 | 6104 | ; |
michael@0 | 6105 | return 0; |
michael@0 | 6106 | } |
michael@0 | 6107 | _ACEOF |
michael@0 | 6108 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6109 | ac_cv_lib_pthread_pthread_create=yes |
michael@0 | 6110 | else |
michael@0 | 6111 | ac_cv_lib_pthread_pthread_create=no |
michael@0 | 6112 | fi |
michael@0 | 6113 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6114 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6115 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 6116 | fi |
michael@0 | 6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
michael@0 | 6118 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
michael@0 | 6119 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
michael@0 | 6120 | LIBS="$LIBS -lpthread" |
michael@0 | 6121 | else |
michael@0 | 6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
michael@0 | 6123 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
michael@0 | 6124 | if ${ac_cv_search_pthread_create+:} false; then : |
michael@0 | 6125 | $as_echo_n "(cached) " >&6 |
michael@0 | 6126 | else |
michael@0 | 6127 | ac_func_search_save_LIBS=$LIBS |
michael@0 | 6128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6129 | /* end confdefs.h. */ |
michael@0 | 6130 | |
michael@0 | 6131 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 6132 | Use char because int might match the return type of a GCC |
michael@0 | 6133 | builtin and then its argument prototype would still apply. */ |
michael@0 | 6134 | #ifdef __cplusplus |
michael@0 | 6135 | extern "C" |
michael@0 | 6136 | #endif |
michael@0 | 6137 | char pthread_create (); |
michael@0 | 6138 | int |
michael@0 | 6139 | main () |
michael@0 | 6140 | { |
michael@0 | 6141 | return pthread_create (); |
michael@0 | 6142 | ; |
michael@0 | 6143 | return 0; |
michael@0 | 6144 | } |
michael@0 | 6145 | _ACEOF |
michael@0 | 6146 | for ac_lib in '' ; do |
michael@0 | 6147 | if test -z "$ac_lib"; then |
michael@0 | 6148 | ac_res="none required" |
michael@0 | 6149 | else |
michael@0 | 6150 | ac_res=-l$ac_lib |
michael@0 | 6151 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
michael@0 | 6152 | fi |
michael@0 | 6153 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6154 | ac_cv_search_pthread_create=$ac_res |
michael@0 | 6155 | fi |
michael@0 | 6156 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6157 | conftest$ac_exeext |
michael@0 | 6158 | if ${ac_cv_search_pthread_create+:} false; then : |
michael@0 | 6159 | break |
michael@0 | 6160 | fi |
michael@0 | 6161 | done |
michael@0 | 6162 | if ${ac_cv_search_pthread_create+:} false; then : |
michael@0 | 6163 | |
michael@0 | 6164 | else |
michael@0 | 6165 | ac_cv_search_pthread_create=no |
michael@0 | 6166 | fi |
michael@0 | 6167 | rm conftest.$ac_ext |
michael@0 | 6168 | LIBS=$ac_func_search_save_LIBS |
michael@0 | 6169 | fi |
michael@0 | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
michael@0 | 6171 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
michael@0 | 6172 | ac_res=$ac_cv_search_pthread_create |
michael@0 | 6173 | if test "$ac_res" != no; then : |
michael@0 | 6174 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
michael@0 | 6175 | |
michael@0 | 6176 | else |
michael@0 | 6177 | as_fn_error $? "libpthread is missing" "$LINENO" 5 |
michael@0 | 6178 | fi |
michael@0 | 6179 | |
michael@0 | 6180 | fi |
michael@0 | 6181 | |
michael@0 | 6182 | fi |
michael@0 | 6183 | |
michael@0 | 6184 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
michael@0 | 6185 | |
michael@0 | 6186 | ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup" |
michael@0 | 6187 | if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then : |
michael@0 | 6188 | have__malloc_thread_cleanup="1" |
michael@0 | 6189 | else |
michael@0 | 6190 | have__malloc_thread_cleanup="0" |
michael@0 | 6191 | |
michael@0 | 6192 | fi |
michael@0 | 6193 | |
michael@0 | 6194 | if test "x$have__malloc_thread_cleanup" = "x1" ; then |
michael@0 | 6195 | $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h |
michael@0 | 6196 | |
michael@0 | 6197 | force_tls="1" |
michael@0 | 6198 | fi |
michael@0 | 6199 | |
michael@0 | 6200 | ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb" |
michael@0 | 6201 | if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then : |
michael@0 | 6202 | have__pthread_mutex_init_calloc_cb="1" |
michael@0 | 6203 | else |
michael@0 | 6204 | have__pthread_mutex_init_calloc_cb="0" |
michael@0 | 6205 | |
michael@0 | 6206 | fi |
michael@0 | 6207 | |
michael@0 | 6208 | if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then |
michael@0 | 6209 | $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h |
michael@0 | 6210 | |
michael@0 | 6211 | fi |
michael@0 | 6212 | |
michael@0 | 6213 | # Check whether --enable-lazy_lock was given. |
michael@0 | 6214 | if test "${enable_lazy_lock+set}" = set; then : |
michael@0 | 6215 | enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then |
michael@0 | 6216 | enable_lazy_lock="0" |
michael@0 | 6217 | else |
michael@0 | 6218 | enable_lazy_lock="1" |
michael@0 | 6219 | fi |
michael@0 | 6220 | |
michael@0 | 6221 | else |
michael@0 | 6222 | enable_lazy_lock="0" |
michael@0 | 6223 | |
michael@0 | 6224 | fi |
michael@0 | 6225 | |
michael@0 | 6226 | if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then |
michael@0 | 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5 |
michael@0 | 6228 | $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; } |
michael@0 | 6229 | enable_lazy_lock="1" |
michael@0 | 6230 | fi |
michael@0 | 6231 | if test "x$enable_lazy_lock" = "x1" ; then |
michael@0 | 6232 | if test "x$abi" != "xpecoff" ; then |
michael@0 | 6233 | for ac_header in dlfcn.h |
michael@0 | 6234 | do : |
michael@0 | 6235 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
michael@0 | 6236 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
michael@0 | 6237 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6238 | #define HAVE_DLFCN_H 1 |
michael@0 | 6239 | _ACEOF |
michael@0 | 6240 | |
michael@0 | 6241 | else |
michael@0 | 6242 | as_fn_error $? "dlfcn.h is missing" "$LINENO" 5 |
michael@0 | 6243 | fi |
michael@0 | 6244 | |
michael@0 | 6245 | done |
michael@0 | 6246 | |
michael@0 | 6247 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
michael@0 | 6248 | if test "x$ac_cv_func_dlsym" = xyes; then : |
michael@0 | 6249 | |
michael@0 | 6250 | else |
michael@0 | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
michael@0 | 6252 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
michael@0 | 6253 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
michael@0 | 6254 | $as_echo_n "(cached) " >&6 |
michael@0 | 6255 | else |
michael@0 | 6256 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 6257 | LIBS="-ldl $LIBS" |
michael@0 | 6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6259 | /* end confdefs.h. */ |
michael@0 | 6260 | |
michael@0 | 6261 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 6262 | Use char because int might match the return type of a GCC |
michael@0 | 6263 | builtin and then its argument prototype would still apply. */ |
michael@0 | 6264 | #ifdef __cplusplus |
michael@0 | 6265 | extern "C" |
michael@0 | 6266 | #endif |
michael@0 | 6267 | char dlsym (); |
michael@0 | 6268 | int |
michael@0 | 6269 | main () |
michael@0 | 6270 | { |
michael@0 | 6271 | return dlsym (); |
michael@0 | 6272 | ; |
michael@0 | 6273 | return 0; |
michael@0 | 6274 | } |
michael@0 | 6275 | _ACEOF |
michael@0 | 6276 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6277 | ac_cv_lib_dl_dlsym=yes |
michael@0 | 6278 | else |
michael@0 | 6279 | ac_cv_lib_dl_dlsym=no |
michael@0 | 6280 | fi |
michael@0 | 6281 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6282 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6283 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 6284 | fi |
michael@0 | 6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
michael@0 | 6286 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
michael@0 | 6287 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
michael@0 | 6288 | LIBS="$LIBS -ldl" |
michael@0 | 6289 | else |
michael@0 | 6290 | as_fn_error $? "libdl is missing" "$LINENO" 5 |
michael@0 | 6291 | fi |
michael@0 | 6292 | |
michael@0 | 6293 | |
michael@0 | 6294 | fi |
michael@0 | 6295 | |
michael@0 | 6296 | fi |
michael@0 | 6297 | $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h |
michael@0 | 6298 | |
michael@0 | 6299 | fi |
michael@0 | 6300 | |
michael@0 | 6301 | |
michael@0 | 6302 | # Check whether --enable-tls was given. |
michael@0 | 6303 | if test "${enable_tls+set}" = set; then : |
michael@0 | 6304 | enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then |
michael@0 | 6305 | enable_tls="0" |
michael@0 | 6306 | else |
michael@0 | 6307 | enable_tls="1" |
michael@0 | 6308 | fi |
michael@0 | 6309 | |
michael@0 | 6310 | else |
michael@0 | 6311 | enable_tls="1" |
michael@0 | 6312 | |
michael@0 | 6313 | fi |
michael@0 | 6314 | |
michael@0 | 6315 | if test "x${enable_tls}" = "x0" -a "x${force_tls}" = "x1" ; then |
michael@0 | 6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5 |
michael@0 | 6317 | $as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; } |
michael@0 | 6318 | enable_tls="1" |
michael@0 | 6319 | fi |
michael@0 | 6320 | if test "x${enable_tls}" = "x1" -a "x${force_tls}" = "x0" ; then |
michael@0 | 6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5 |
michael@0 | 6322 | $as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; } |
michael@0 | 6323 | enable_tls="0" |
michael@0 | 6324 | fi |
michael@0 | 6325 | if test "x${enable_tls}" = "x1" ; then |
michael@0 | 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 |
michael@0 | 6327 | $as_echo_n "checking for TLS... " >&6; } |
michael@0 | 6328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6329 | /* end confdefs.h. */ |
michael@0 | 6330 | |
michael@0 | 6331 | __thread int x; |
michael@0 | 6332 | |
michael@0 | 6333 | int |
michael@0 | 6334 | main () |
michael@0 | 6335 | { |
michael@0 | 6336 | |
michael@0 | 6337 | x = 42; |
michael@0 | 6338 | |
michael@0 | 6339 | return 0; |
michael@0 | 6340 | |
michael@0 | 6341 | ; |
michael@0 | 6342 | return 0; |
michael@0 | 6343 | } |
michael@0 | 6344 | _ACEOF |
michael@0 | 6345 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 6347 | $as_echo "yes" >&6; } |
michael@0 | 6348 | else |
michael@0 | 6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 6350 | $as_echo "no" >&6; } |
michael@0 | 6351 | enable_tls="0" |
michael@0 | 6352 | fi |
michael@0 | 6353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6354 | fi |
michael@0 | 6355 | |
michael@0 | 6356 | if test "x${enable_tls}" = "x1" ; then |
michael@0 | 6357 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6358 | #define JEMALLOC_TLS |
michael@0 | 6359 | _ACEOF |
michael@0 | 6360 | |
michael@0 | 6361 | elif test "x${force_tls}" = "x1" ; then |
michael@0 | 6362 | as_fn_error $? "Failed to configure TLS, which is mandatory for correct function" "$LINENO" 5 |
michael@0 | 6363 | fi |
michael@0 | 6364 | |
michael@0 | 6365 | |
michael@0 | 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5 |
michael@0 | 6367 | $as_echo_n "checking whether a program using ffsl is compilable... " >&6; } |
michael@0 | 6368 | if ${je_cv_function_ffsl+:} false; then : |
michael@0 | 6369 | $as_echo_n "(cached) " >&6 |
michael@0 | 6370 | else |
michael@0 | 6371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6372 | /* end confdefs.h. */ |
michael@0 | 6373 | |
michael@0 | 6374 | #include <strings.h> |
michael@0 | 6375 | #include <string.h> |
michael@0 | 6376 | |
michael@0 | 6377 | int |
michael@0 | 6378 | main () |
michael@0 | 6379 | { |
michael@0 | 6380 | |
michael@0 | 6381 | { |
michael@0 | 6382 | int rv = ffsl(0x08); |
michael@0 | 6383 | } |
michael@0 | 6384 | |
michael@0 | 6385 | ; |
michael@0 | 6386 | return 0; |
michael@0 | 6387 | } |
michael@0 | 6388 | _ACEOF |
michael@0 | 6389 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6390 | je_cv_function_ffsl=yes |
michael@0 | 6391 | else |
michael@0 | 6392 | je_cv_function_ffsl=no |
michael@0 | 6393 | fi |
michael@0 | 6394 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6395 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6396 | fi |
michael@0 | 6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5 |
michael@0 | 6398 | $as_echo "$je_cv_function_ffsl" >&6; } |
michael@0 | 6399 | |
michael@0 | 6400 | if test "x${je_cv_function_ffsl}" != "xyes" ; then |
michael@0 | 6401 | as_fn_error $? "Cannot build without ffsl(3)" "$LINENO" 5 |
michael@0 | 6402 | fi |
michael@0 | 6403 | |
michael@0 | 6404 | |
michael@0 | 6405 | |
michael@0 | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5 |
michael@0 | 6407 | $as_echo_n "checking whether atomic(9) is compilable... " >&6; } |
michael@0 | 6408 | if ${je_cv_atomic9+:} false; then : |
michael@0 | 6409 | $as_echo_n "(cached) " >&6 |
michael@0 | 6410 | else |
michael@0 | 6411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6412 | /* end confdefs.h. */ |
michael@0 | 6413 | |
michael@0 | 6414 | #include <sys/types.h> |
michael@0 | 6415 | #include <machine/atomic.h> |
michael@0 | 6416 | #include <inttypes.h> |
michael@0 | 6417 | |
michael@0 | 6418 | int |
michael@0 | 6419 | main () |
michael@0 | 6420 | { |
michael@0 | 6421 | |
michael@0 | 6422 | { |
michael@0 | 6423 | uint32_t x32 = 0; |
michael@0 | 6424 | volatile uint32_t *x32p = &x32; |
michael@0 | 6425 | atomic_fetchadd_32(x32p, 1); |
michael@0 | 6426 | } |
michael@0 | 6427 | { |
michael@0 | 6428 | unsigned long xlong = 0; |
michael@0 | 6429 | volatile unsigned long *xlongp = &xlong; |
michael@0 | 6430 | atomic_fetchadd_long(xlongp, 1); |
michael@0 | 6431 | } |
michael@0 | 6432 | |
michael@0 | 6433 | ; |
michael@0 | 6434 | return 0; |
michael@0 | 6435 | } |
michael@0 | 6436 | _ACEOF |
michael@0 | 6437 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6438 | je_cv_atomic9=yes |
michael@0 | 6439 | else |
michael@0 | 6440 | je_cv_atomic9=no |
michael@0 | 6441 | fi |
michael@0 | 6442 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6443 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6444 | fi |
michael@0 | 6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5 |
michael@0 | 6446 | $as_echo "$je_cv_atomic9" >&6; } |
michael@0 | 6447 | |
michael@0 | 6448 | if test "x${je_cv_atomic9}" = "xyes" ; then |
michael@0 | 6449 | $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h |
michael@0 | 6450 | |
michael@0 | 6451 | fi |
michael@0 | 6452 | |
michael@0 | 6453 | |
michael@0 | 6454 | |
michael@0 | 6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5 |
michael@0 | 6456 | $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; } |
michael@0 | 6457 | if ${je_cv_osatomic+:} false; then : |
michael@0 | 6458 | $as_echo_n "(cached) " >&6 |
michael@0 | 6459 | else |
michael@0 | 6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6461 | /* end confdefs.h. */ |
michael@0 | 6462 | |
michael@0 | 6463 | #include <libkern/OSAtomic.h> |
michael@0 | 6464 | #include <inttypes.h> |
michael@0 | 6465 | |
michael@0 | 6466 | int |
michael@0 | 6467 | main () |
michael@0 | 6468 | { |
michael@0 | 6469 | |
michael@0 | 6470 | { |
michael@0 | 6471 | int32_t x32 = 0; |
michael@0 | 6472 | volatile int32_t *x32p = &x32; |
michael@0 | 6473 | OSAtomicAdd32(1, x32p); |
michael@0 | 6474 | } |
michael@0 | 6475 | { |
michael@0 | 6476 | int64_t x64 = 0; |
michael@0 | 6477 | volatile int64_t *x64p = &x64; |
michael@0 | 6478 | OSAtomicAdd64(1, x64p); |
michael@0 | 6479 | } |
michael@0 | 6480 | |
michael@0 | 6481 | ; |
michael@0 | 6482 | return 0; |
michael@0 | 6483 | } |
michael@0 | 6484 | _ACEOF |
michael@0 | 6485 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6486 | je_cv_osatomic=yes |
michael@0 | 6487 | else |
michael@0 | 6488 | je_cv_osatomic=no |
michael@0 | 6489 | fi |
michael@0 | 6490 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6491 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6492 | fi |
michael@0 | 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5 |
michael@0 | 6494 | $as_echo "$je_cv_osatomic" >&6; } |
michael@0 | 6495 | |
michael@0 | 6496 | if test "x${je_cv_osatomic}" = "xyes" ; then |
michael@0 | 6497 | $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h |
michael@0 | 6498 | |
michael@0 | 6499 | fi |
michael@0 | 6500 | |
michael@0 | 6501 | |
michael@0 | 6502 | |
michael@0 | 6503 | |
michael@0 | 6504 | if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then |
michael@0 | 6505 | |
michael@0 | 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5 |
michael@0 | 6507 | $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; } |
michael@0 | 6508 | if ${je_cv_sync_compare_and_swap_4+:} false; then : |
michael@0 | 6509 | $as_echo_n "(cached) " >&6 |
michael@0 | 6510 | else |
michael@0 | 6511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6512 | /* end confdefs.h. */ |
michael@0 | 6513 | |
michael@0 | 6514 | #include <stdint.h> |
michael@0 | 6515 | |
michael@0 | 6516 | int |
michael@0 | 6517 | main () |
michael@0 | 6518 | { |
michael@0 | 6519 | |
michael@0 | 6520 | #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 |
michael@0 | 6521 | { |
michael@0 | 6522 | uint32_t x32 = 0; |
michael@0 | 6523 | __sync_add_and_fetch(&x32, 42); |
michael@0 | 6524 | __sync_sub_and_fetch(&x32, 1); |
michael@0 | 6525 | } |
michael@0 | 6526 | #else |
michael@0 | 6527 | #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force |
michael@0 | 6528 | #endif |
michael@0 | 6529 | |
michael@0 | 6530 | ; |
michael@0 | 6531 | return 0; |
michael@0 | 6532 | } |
michael@0 | 6533 | _ACEOF |
michael@0 | 6534 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6535 | je_cv_sync_compare_and_swap_4=yes |
michael@0 | 6536 | else |
michael@0 | 6537 | je_cv_sync_compare_and_swap_4=no |
michael@0 | 6538 | fi |
michael@0 | 6539 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6540 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6541 | fi |
michael@0 | 6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5 |
michael@0 | 6543 | $as_echo "$je_cv_sync_compare_and_swap_4" >&6; } |
michael@0 | 6544 | |
michael@0 | 6545 | if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then |
michael@0 | 6546 | $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h |
michael@0 | 6547 | |
michael@0 | 6548 | fi |
michael@0 | 6549 | |
michael@0 | 6550 | |
michael@0 | 6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5 |
michael@0 | 6552 | $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; } |
michael@0 | 6553 | if ${je_cv_sync_compare_and_swap_8+:} false; then : |
michael@0 | 6554 | $as_echo_n "(cached) " >&6 |
michael@0 | 6555 | else |
michael@0 | 6556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6557 | /* end confdefs.h. */ |
michael@0 | 6558 | |
michael@0 | 6559 | #include <stdint.h> |
michael@0 | 6560 | |
michael@0 | 6561 | int |
michael@0 | 6562 | main () |
michael@0 | 6563 | { |
michael@0 | 6564 | |
michael@0 | 6565 | #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 |
michael@0 | 6566 | { |
michael@0 | 6567 | uint64_t x64 = 0; |
michael@0 | 6568 | __sync_add_and_fetch(&x64, 42); |
michael@0 | 6569 | __sync_sub_and_fetch(&x64, 1); |
michael@0 | 6570 | } |
michael@0 | 6571 | #else |
michael@0 | 6572 | #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force |
michael@0 | 6573 | #endif |
michael@0 | 6574 | |
michael@0 | 6575 | ; |
michael@0 | 6576 | return 0; |
michael@0 | 6577 | } |
michael@0 | 6578 | _ACEOF |
michael@0 | 6579 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6580 | je_cv_sync_compare_and_swap_8=yes |
michael@0 | 6581 | else |
michael@0 | 6582 | je_cv_sync_compare_and_swap_8=no |
michael@0 | 6583 | fi |
michael@0 | 6584 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6585 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6586 | fi |
michael@0 | 6587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5 |
michael@0 | 6588 | $as_echo "$je_cv_sync_compare_and_swap_8" >&6; } |
michael@0 | 6589 | |
michael@0 | 6590 | if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then |
michael@0 | 6591 | $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h |
michael@0 | 6592 | |
michael@0 | 6593 | fi |
michael@0 | 6594 | |
michael@0 | 6595 | fi |
michael@0 | 6596 | |
michael@0 | 6597 | |
michael@0 | 6598 | |
michael@0 | 6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5 |
michael@0 | 6600 | $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; } |
michael@0 | 6601 | if ${je_cv_osspin+:} false; then : |
michael@0 | 6602 | $as_echo_n "(cached) " >&6 |
michael@0 | 6603 | else |
michael@0 | 6604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6605 | /* end confdefs.h. */ |
michael@0 | 6606 | |
michael@0 | 6607 | #include <libkern/OSAtomic.h> |
michael@0 | 6608 | #include <inttypes.h> |
michael@0 | 6609 | |
michael@0 | 6610 | int |
michael@0 | 6611 | main () |
michael@0 | 6612 | { |
michael@0 | 6613 | |
michael@0 | 6614 | OSSpinLock lock = 0; |
michael@0 | 6615 | OSSpinLockLock(&lock); |
michael@0 | 6616 | OSSpinLockUnlock(&lock); |
michael@0 | 6617 | |
michael@0 | 6618 | ; |
michael@0 | 6619 | return 0; |
michael@0 | 6620 | } |
michael@0 | 6621 | _ACEOF |
michael@0 | 6622 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6623 | je_cv_osspin=yes |
michael@0 | 6624 | else |
michael@0 | 6625 | je_cv_osspin=no |
michael@0 | 6626 | fi |
michael@0 | 6627 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6628 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6629 | fi |
michael@0 | 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5 |
michael@0 | 6631 | $as_echo "$je_cv_osspin" >&6; } |
michael@0 | 6632 | |
michael@0 | 6633 | if test "x${je_cv_osspin}" = "xyes" ; then |
michael@0 | 6634 | $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h |
michael@0 | 6635 | |
michael@0 | 6636 | fi |
michael@0 | 6637 | |
michael@0 | 6638 | |
michael@0 | 6639 | if test "x${abi}" = "xmacho" ; then |
michael@0 | 6640 | $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h |
michael@0 | 6641 | |
michael@0 | 6642 | $as_echo "#define JEMALLOC_ZONE " >>confdefs.h |
michael@0 | 6643 | |
michael@0 | 6644 | |
michael@0 | 6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5 |
michael@0 | 6646 | $as_echo_n "checking malloc zone version... " >&6; } |
michael@0 | 6647 | |
michael@0 | 6648 | |
michael@0 | 6649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6650 | /* end confdefs.h. */ |
michael@0 | 6651 | #include <malloc/malloc.h> |
michael@0 | 6652 | int |
michael@0 | 6653 | main () |
michael@0 | 6654 | { |
michael@0 | 6655 | static foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1] |
michael@0 | 6656 | |
michael@0 | 6657 | ; |
michael@0 | 6658 | return 0; |
michael@0 | 6659 | } |
michael@0 | 6660 | _ACEOF |
michael@0 | 6661 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6662 | JEMALLOC_ZONE_VERSION=3 |
michael@0 | 6663 | else |
michael@0 | 6664 | |
michael@0 | 6665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6666 | /* end confdefs.h. */ |
michael@0 | 6667 | #include <malloc/malloc.h> |
michael@0 | 6668 | int |
michael@0 | 6669 | main () |
michael@0 | 6670 | { |
michael@0 | 6671 | static foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1] |
michael@0 | 6672 | |
michael@0 | 6673 | ; |
michael@0 | 6674 | return 0; |
michael@0 | 6675 | } |
michael@0 | 6676 | _ACEOF |
michael@0 | 6677 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6678 | JEMALLOC_ZONE_VERSION=5 |
michael@0 | 6679 | else |
michael@0 | 6680 | |
michael@0 | 6681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6682 | /* end confdefs.h. */ |
michael@0 | 6683 | #include <malloc/malloc.h> |
michael@0 | 6684 | int |
michael@0 | 6685 | main () |
michael@0 | 6686 | { |
michael@0 | 6687 | static foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1] |
michael@0 | 6688 | |
michael@0 | 6689 | ; |
michael@0 | 6690 | return 0; |
michael@0 | 6691 | } |
michael@0 | 6692 | _ACEOF |
michael@0 | 6693 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6694 | |
michael@0 | 6695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6696 | /* end confdefs.h. */ |
michael@0 | 6697 | #include <malloc/malloc.h> |
michael@0 | 6698 | int |
michael@0 | 6699 | main () |
michael@0 | 6700 | { |
michael@0 | 6701 | static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1] |
michael@0 | 6702 | |
michael@0 | 6703 | ; |
michael@0 | 6704 | return 0; |
michael@0 | 6705 | } |
michael@0 | 6706 | _ACEOF |
michael@0 | 6707 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6708 | JEMALLOC_ZONE_VERSION=6 |
michael@0 | 6709 | else |
michael@0 | 6710 | |
michael@0 | 6711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6712 | /* end confdefs.h. */ |
michael@0 | 6713 | #include <malloc/malloc.h> |
michael@0 | 6714 | int |
michael@0 | 6715 | main () |
michael@0 | 6716 | { |
michael@0 | 6717 | static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1] |
michael@0 | 6718 | |
michael@0 | 6719 | ; |
michael@0 | 6720 | return 0; |
michael@0 | 6721 | } |
michael@0 | 6722 | _ACEOF |
michael@0 | 6723 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6724 | JEMALLOC_ZONE_VERSION=7 |
michael@0 | 6725 | else |
michael@0 | 6726 | JEMALLOC_ZONE_VERSION= |
michael@0 | 6727 | |
michael@0 | 6728 | fi |
michael@0 | 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6730 | fi |
michael@0 | 6731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6732 | else |
michael@0 | 6733 | |
michael@0 | 6734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6735 | /* end confdefs.h. */ |
michael@0 | 6736 | #include <malloc/malloc.h> |
michael@0 | 6737 | int |
michael@0 | 6738 | main () |
michael@0 | 6739 | { |
michael@0 | 6740 | static foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1] |
michael@0 | 6741 | |
michael@0 | 6742 | ; |
michael@0 | 6743 | return 0; |
michael@0 | 6744 | } |
michael@0 | 6745 | _ACEOF |
michael@0 | 6746 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6747 | JEMALLOC_ZONE_VERSION=8 |
michael@0 | 6748 | else |
michael@0 | 6749 | |
michael@0 | 6750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6751 | /* end confdefs.h. */ |
michael@0 | 6752 | #include <malloc/malloc.h> |
michael@0 | 6753 | int |
michael@0 | 6754 | main () |
michael@0 | 6755 | { |
michael@0 | 6756 | static foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1] |
michael@0 | 6757 | |
michael@0 | 6758 | ; |
michael@0 | 6759 | return 0; |
michael@0 | 6760 | } |
michael@0 | 6761 | _ACEOF |
michael@0 | 6762 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6763 | JEMALLOC_ZONE_VERSION=9 |
michael@0 | 6764 | else |
michael@0 | 6765 | JEMALLOC_ZONE_VERSION= |
michael@0 | 6766 | |
michael@0 | 6767 | fi |
michael@0 | 6768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6769 | fi |
michael@0 | 6770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6771 | fi |
michael@0 | 6772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6773 | fi |
michael@0 | 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6775 | fi |
michael@0 | 6776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6777 | if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then |
michael@0 | 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
michael@0 | 6779 | $as_echo "unsupported" >&6; } |
michael@0 | 6780 | as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5 |
michael@0 | 6781 | fi |
michael@0 | 6782 | if test "${JEMALLOC_ZONE_VERSION}" = 9; then |
michael@0 | 6783 | JEMALLOC_ZONE_VERSION=8 |
michael@0 | 6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5 |
michael@0 | 6785 | $as_echo "> 8" >&6; } |
michael@0 | 6786 | else |
michael@0 | 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5 |
michael@0 | 6788 | $as_echo "$JEMALLOC_ZONE_VERSION" >&6; } |
michael@0 | 6789 | fi |
michael@0 | 6790 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6791 | #define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION |
michael@0 | 6792 | _ACEOF |
michael@0 | 6793 | |
michael@0 | 6794 | fi |
michael@0 | 6795 | |
michael@0 | 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
michael@0 | 6797 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
michael@0 | 6798 | if ${ac_cv_header_stdbool_h+:} false; then : |
michael@0 | 6799 | $as_echo_n "(cached) " >&6 |
michael@0 | 6800 | else |
michael@0 | 6801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6802 | /* end confdefs.h. */ |
michael@0 | 6803 | |
michael@0 | 6804 | #include <stdbool.h> |
michael@0 | 6805 | #ifndef bool |
michael@0 | 6806 | "error: bool is not defined" |
michael@0 | 6807 | #endif |
michael@0 | 6808 | #ifndef false |
michael@0 | 6809 | "error: false is not defined" |
michael@0 | 6810 | #endif |
michael@0 | 6811 | #if false |
michael@0 | 6812 | "error: false is not 0" |
michael@0 | 6813 | #endif |
michael@0 | 6814 | #ifndef true |
michael@0 | 6815 | "error: true is not defined" |
michael@0 | 6816 | #endif |
michael@0 | 6817 | #if true != 1 |
michael@0 | 6818 | "error: true is not 1" |
michael@0 | 6819 | #endif |
michael@0 | 6820 | #ifndef __bool_true_false_are_defined |
michael@0 | 6821 | "error: __bool_true_false_are_defined is not defined" |
michael@0 | 6822 | #endif |
michael@0 | 6823 | |
michael@0 | 6824 | struct s { _Bool s: 1; _Bool t; } s; |
michael@0 | 6825 | |
michael@0 | 6826 | char a[true == 1 ? 1 : -1]; |
michael@0 | 6827 | char b[false == 0 ? 1 : -1]; |
michael@0 | 6828 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
michael@0 | 6829 | char d[(bool) 0.5 == true ? 1 : -1]; |
michael@0 | 6830 | /* See body of main program for 'e'. */ |
michael@0 | 6831 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
michael@0 | 6832 | char g[true]; |
michael@0 | 6833 | char h[sizeof (_Bool)]; |
michael@0 | 6834 | char i[sizeof s.t]; |
michael@0 | 6835 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
michael@0 | 6836 | /* The following fails for |
michael@0 | 6837 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
michael@0 | 6838 | _Bool n[m]; |
michael@0 | 6839 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
michael@0 | 6840 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
michael@0 | 6841 | /* Catch a bug in an HP-UX C compiler. See |
michael@0 | 6842 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
michael@0 | 6843 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
michael@0 | 6844 | */ |
michael@0 | 6845 | _Bool q = true; |
michael@0 | 6846 | _Bool *pq = &q; |
michael@0 | 6847 | |
michael@0 | 6848 | int |
michael@0 | 6849 | main () |
michael@0 | 6850 | { |
michael@0 | 6851 | |
michael@0 | 6852 | bool e = &s; |
michael@0 | 6853 | *pq |= q; |
michael@0 | 6854 | *pq |= ! q; |
michael@0 | 6855 | /* Refer to every declared value, to avoid compiler optimizations. */ |
michael@0 | 6856 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
michael@0 | 6857 | + !m + !n + !o + !p + !q + !pq); |
michael@0 | 6858 | |
michael@0 | 6859 | ; |
michael@0 | 6860 | return 0; |
michael@0 | 6861 | } |
michael@0 | 6862 | _ACEOF |
michael@0 | 6863 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6864 | ac_cv_header_stdbool_h=yes |
michael@0 | 6865 | else |
michael@0 | 6866 | ac_cv_header_stdbool_h=no |
michael@0 | 6867 | fi |
michael@0 | 6868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6869 | fi |
michael@0 | 6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
michael@0 | 6871 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
michael@0 | 6872 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
michael@0 | 6873 | if test "x$ac_cv_type__Bool" = xyes; then : |
michael@0 | 6874 | |
michael@0 | 6875 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6876 | #define HAVE__BOOL 1 |
michael@0 | 6877 | _ACEOF |
michael@0 | 6878 | |
michael@0 | 6879 | |
michael@0 | 6880 | fi |
michael@0 | 6881 | |
michael@0 | 6882 | |
michael@0 | 6883 | if test $ac_cv_header_stdbool_h = yes; then |
michael@0 | 6884 | |
michael@0 | 6885 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
michael@0 | 6886 | |
michael@0 | 6887 | fi |
michael@0 | 6888 | |
michael@0 | 6889 | |
michael@0 | 6890 | ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h" |
michael@0 | 6891 | |
michael@0 | 6892 | |
michael@0 | 6893 | |
michael@0 | 6894 | |
michael@0 | 6895 | ac_config_headers="$ac_config_headers $cfghdrs_tup" |
michael@0 | 6896 | |
michael@0 | 6897 | |
michael@0 | 6898 | ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc.sh" |
michael@0 | 6899 | |
michael@0 | 6900 | |
michael@0 | 6901 | |
michael@0 | 6902 | cat >confcache <<\_ACEOF |
michael@0 | 6903 | # This file is a shell script that caches the results of configure |
michael@0 | 6904 | # tests run on this system so they can be shared between configure |
michael@0 | 6905 | # scripts and configure runs, see configure's option --config-cache. |
michael@0 | 6906 | # It is not useful on other systems. If it contains results you don't |
michael@0 | 6907 | # want to keep, you may remove or edit it. |
michael@0 | 6908 | # |
michael@0 | 6909 | # config.status only pays attention to the cache file if you give it |
michael@0 | 6910 | # the --recheck option to rerun configure. |
michael@0 | 6911 | # |
michael@0 | 6912 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
michael@0 | 6913 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
michael@0 | 6914 | # following values. |
michael@0 | 6915 | |
michael@0 | 6916 | _ACEOF |
michael@0 | 6917 | |
michael@0 | 6918 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 6919 | # but we know of no workaround that is simple, portable, and efficient. |
michael@0 | 6920 | # So, we kill variables containing newlines. |
michael@0 | 6921 | # Ultrix sh set writes to stderr and can't be redirected directly, |
michael@0 | 6922 | # and sets the high bit in the cache file unless we assign to the vars. |
michael@0 | 6923 | ( |
michael@0 | 6924 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
michael@0 | 6925 | eval ac_val=\$$ac_var |
michael@0 | 6926 | case $ac_val in #( |
michael@0 | 6927 | *${as_nl}*) |
michael@0 | 6928 | case $ac_var in #( |
michael@0 | 6929 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 6930 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 6931 | esac |
michael@0 | 6932 | case $ac_var in #( |
michael@0 | 6933 | _ | IFS | as_nl) ;; #( |
michael@0 | 6934 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 6935 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 6936 | esac ;; |
michael@0 | 6937 | esac |
michael@0 | 6938 | done |
michael@0 | 6939 | |
michael@0 | 6940 | (set) 2>&1 | |
michael@0 | 6941 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
michael@0 | 6942 | *${as_nl}ac_space=\ *) |
michael@0 | 6943 | # `set' does not quote correctly, so add quotes: double-quote |
michael@0 | 6944 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
michael@0 | 6945 | sed -n \ |
michael@0 | 6946 | "s/'/'\\\\''/g; |
michael@0 | 6947 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
michael@0 | 6948 | ;; #( |
michael@0 | 6949 | *) |
michael@0 | 6950 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
michael@0 | 6951 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 6952 | ;; |
michael@0 | 6953 | esac | |
michael@0 | 6954 | sort |
michael@0 | 6955 | ) | |
michael@0 | 6956 | sed ' |
michael@0 | 6957 | /^ac_cv_env_/b end |
michael@0 | 6958 | t clear |
michael@0 | 6959 | :clear |
michael@0 | 6960 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
michael@0 | 6961 | t end |
michael@0 | 6962 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
michael@0 | 6963 | :end' >>confcache |
michael@0 | 6964 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
michael@0 | 6965 | if test -w "$cache_file"; then |
michael@0 | 6966 | if test "x$cache_file" != "x/dev/null"; then |
michael@0 | 6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
michael@0 | 6968 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
michael@0 | 6969 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
michael@0 | 6970 | cat confcache >"$cache_file" |
michael@0 | 6971 | else |
michael@0 | 6972 | case $cache_file in #( |
michael@0 | 6973 | */* | ?:*) |
michael@0 | 6974 | mv -f confcache "$cache_file"$$ && |
michael@0 | 6975 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
michael@0 | 6976 | *) |
michael@0 | 6977 | mv -f confcache "$cache_file" ;; |
michael@0 | 6978 | esac |
michael@0 | 6979 | fi |
michael@0 | 6980 | fi |
michael@0 | 6981 | else |
michael@0 | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
michael@0 | 6983 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
michael@0 | 6984 | fi |
michael@0 | 6985 | fi |
michael@0 | 6986 | rm -f confcache |
michael@0 | 6987 | |
michael@0 | 6988 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
michael@0 | 6989 | # Let make expand exec_prefix. |
michael@0 | 6990 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
michael@0 | 6991 | |
michael@0 | 6992 | DEFS=-DHAVE_CONFIG_H |
michael@0 | 6993 | |
michael@0 | 6994 | ac_libobjs= |
michael@0 | 6995 | ac_ltlibobjs= |
michael@0 | 6996 | U= |
michael@0 | 6997 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
michael@0 | 6998 | # 1. Remove the extension, and $U if already installed. |
michael@0 | 6999 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
michael@0 | 7000 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
michael@0 | 7001 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
michael@0 | 7002 | # will be set to the directory where LIBOBJS objects are built. |
michael@0 | 7003 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
michael@0 | 7004 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
michael@0 | 7005 | done |
michael@0 | 7006 | LIBOBJS=$ac_libobjs |
michael@0 | 7007 | |
michael@0 | 7008 | LTLIBOBJS=$ac_ltlibobjs |
michael@0 | 7009 | |
michael@0 | 7010 | |
michael@0 | 7011 | |
michael@0 | 7012 | : "${CONFIG_STATUS=./config.status}" |
michael@0 | 7013 | ac_write_fail=0 |
michael@0 | 7014 | ac_clean_files_save=$ac_clean_files |
michael@0 | 7015 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
michael@0 | 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
michael@0 | 7017 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
michael@0 | 7018 | as_write_fail=0 |
michael@0 | 7019 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
michael@0 | 7020 | #! $SHELL |
michael@0 | 7021 | # Generated by $as_me. |
michael@0 | 7022 | # Run this file to recreate the current configuration. |
michael@0 | 7023 | # Compiler output produced by configure, useful for debugging |
michael@0 | 7024 | # configure, is in config.log if it exists. |
michael@0 | 7025 | |
michael@0 | 7026 | debug=false |
michael@0 | 7027 | ac_cs_recheck=false |
michael@0 | 7028 | ac_cs_silent=false |
michael@0 | 7029 | |
michael@0 | 7030 | SHELL=\${CONFIG_SHELL-$SHELL} |
michael@0 | 7031 | export SHELL |
michael@0 | 7032 | _ASEOF |
michael@0 | 7033 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
michael@0 | 7034 | ## -------------------- ## |
michael@0 | 7035 | ## M4sh Initialization. ## |
michael@0 | 7036 | ## -------------------- ## |
michael@0 | 7037 | |
michael@0 | 7038 | # Be more Bourne compatible |
michael@0 | 7039 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 7040 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 7041 | emulate sh |
michael@0 | 7042 | NULLCMD=: |
michael@0 | 7043 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 7044 | # is contrary to our usage. Disable this feature. |
michael@0 | 7045 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 7046 | setopt NO_GLOB_SUBST |
michael@0 | 7047 | else |
michael@0 | 7048 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 7049 | *posix*) : |
michael@0 | 7050 | set -o posix ;; #( |
michael@0 | 7051 | *) : |
michael@0 | 7052 | ;; |
michael@0 | 7053 | esac |
michael@0 | 7054 | fi |
michael@0 | 7055 | |
michael@0 | 7056 | |
michael@0 | 7057 | as_nl=' |
michael@0 | 7058 | ' |
michael@0 | 7059 | export as_nl |
michael@0 | 7060 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 7061 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 7062 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 7063 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 7064 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 7065 | # but without wasting forks for bash or zsh. |
michael@0 | 7066 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 7067 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 7068 | as_echo='print -r --' |
michael@0 | 7069 | as_echo_n='print -rn --' |
michael@0 | 7070 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 7071 | as_echo='printf %s\n' |
michael@0 | 7072 | as_echo_n='printf %s' |
michael@0 | 7073 | else |
michael@0 | 7074 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 7075 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 7076 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 7077 | else |
michael@0 | 7078 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 7079 | as_echo_n_body='eval |
michael@0 | 7080 | arg=$1; |
michael@0 | 7081 | case $arg in #( |
michael@0 | 7082 | *"$as_nl"*) |
michael@0 | 7083 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 7084 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 7085 | esac; |
michael@0 | 7086 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 7087 | ' |
michael@0 | 7088 | export as_echo_n_body |
michael@0 | 7089 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 7090 | fi |
michael@0 | 7091 | export as_echo_body |
michael@0 | 7092 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 7093 | fi |
michael@0 | 7094 | |
michael@0 | 7095 | # The user is always right. |
michael@0 | 7096 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 7097 | PATH_SEPARATOR=: |
michael@0 | 7098 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 7099 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 7100 | PATH_SEPARATOR=';' |
michael@0 | 7101 | } |
michael@0 | 7102 | fi |
michael@0 | 7103 | |
michael@0 | 7104 | |
michael@0 | 7105 | # IFS |
michael@0 | 7106 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 7107 | # there to prevent editors from complaining about space-tab. |
michael@0 | 7108 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 7109 | # splitting by setting IFS to empty value.) |
michael@0 | 7110 | IFS=" "" $as_nl" |
michael@0 | 7111 | |
michael@0 | 7112 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 7113 | as_myself= |
michael@0 | 7114 | case $0 in #(( |
michael@0 | 7115 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 7116 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 7117 | for as_dir in $PATH |
michael@0 | 7118 | do |
michael@0 | 7119 | IFS=$as_save_IFS |
michael@0 | 7120 | test -z "$as_dir" && as_dir=. |
michael@0 | 7121 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 7122 | done |
michael@0 | 7123 | IFS=$as_save_IFS |
michael@0 | 7124 | |
michael@0 | 7125 | ;; |
michael@0 | 7126 | esac |
michael@0 | 7127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 7128 | # in which case we are not to be found in the path. |
michael@0 | 7129 | if test "x$as_myself" = x; then |
michael@0 | 7130 | as_myself=$0 |
michael@0 | 7131 | fi |
michael@0 | 7132 | if test ! -f "$as_myself"; then |
michael@0 | 7133 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 7134 | exit 1 |
michael@0 | 7135 | fi |
michael@0 | 7136 | |
michael@0 | 7137 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 7138 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 7139 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 7140 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 7141 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 7142 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 7143 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 7144 | done |
michael@0 | 7145 | PS1='$ ' |
michael@0 | 7146 | PS2='> ' |
michael@0 | 7147 | PS4='+ ' |
michael@0 | 7148 | |
michael@0 | 7149 | # NLS nuisances. |
michael@0 | 7150 | LC_ALL=C |
michael@0 | 7151 | export LC_ALL |
michael@0 | 7152 | LANGUAGE=C |
michael@0 | 7153 | export LANGUAGE |
michael@0 | 7154 | |
michael@0 | 7155 | # CDPATH. |
michael@0 | 7156 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 7157 | |
michael@0 | 7158 | |
michael@0 | 7159 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 7160 | # ---------------------------------------- |
michael@0 | 7161 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 7162 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 7163 | # script with STATUS, using 1 if that was 0. |
michael@0 | 7164 | as_fn_error () |
michael@0 | 7165 | { |
michael@0 | 7166 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 7167 | if test "$4"; then |
michael@0 | 7168 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 7169 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 7170 | fi |
michael@0 | 7171 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 7172 | as_fn_exit $as_status |
michael@0 | 7173 | } # as_fn_error |
michael@0 | 7174 | |
michael@0 | 7175 | |
michael@0 | 7176 | # as_fn_set_status STATUS |
michael@0 | 7177 | # ----------------------- |
michael@0 | 7178 | # Set $? to STATUS, without forking. |
michael@0 | 7179 | as_fn_set_status () |
michael@0 | 7180 | { |
michael@0 | 7181 | return $1 |
michael@0 | 7182 | } # as_fn_set_status |
michael@0 | 7183 | |
michael@0 | 7184 | # as_fn_exit STATUS |
michael@0 | 7185 | # ----------------- |
michael@0 | 7186 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 7187 | as_fn_exit () |
michael@0 | 7188 | { |
michael@0 | 7189 | set +e |
michael@0 | 7190 | as_fn_set_status $1 |
michael@0 | 7191 | exit $1 |
michael@0 | 7192 | } # as_fn_exit |
michael@0 | 7193 | |
michael@0 | 7194 | # as_fn_unset VAR |
michael@0 | 7195 | # --------------- |
michael@0 | 7196 | # Portably unset VAR. |
michael@0 | 7197 | as_fn_unset () |
michael@0 | 7198 | { |
michael@0 | 7199 | { eval $1=; unset $1;} |
michael@0 | 7200 | } |
michael@0 | 7201 | as_unset=as_fn_unset |
michael@0 | 7202 | # as_fn_append VAR VALUE |
michael@0 | 7203 | # ---------------------- |
michael@0 | 7204 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 7205 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 7206 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 7207 | # implementations. |
michael@0 | 7208 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 7209 | eval 'as_fn_append () |
michael@0 | 7210 | { |
michael@0 | 7211 | eval $1+=\$2 |
michael@0 | 7212 | }' |
michael@0 | 7213 | else |
michael@0 | 7214 | as_fn_append () |
michael@0 | 7215 | { |
michael@0 | 7216 | eval $1=\$$1\$2 |
michael@0 | 7217 | } |
michael@0 | 7218 | fi # as_fn_append |
michael@0 | 7219 | |
michael@0 | 7220 | # as_fn_arith ARG... |
michael@0 | 7221 | # ------------------ |
michael@0 | 7222 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 7223 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 7224 | # must be portable across $(()) and expr. |
michael@0 | 7225 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 7226 | eval 'as_fn_arith () |
michael@0 | 7227 | { |
michael@0 | 7228 | as_val=$(( $* )) |
michael@0 | 7229 | }' |
michael@0 | 7230 | else |
michael@0 | 7231 | as_fn_arith () |
michael@0 | 7232 | { |
michael@0 | 7233 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 7234 | } |
michael@0 | 7235 | fi # as_fn_arith |
michael@0 | 7236 | |
michael@0 | 7237 | |
michael@0 | 7238 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 7239 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 7240 | as_expr=expr |
michael@0 | 7241 | else |
michael@0 | 7242 | as_expr=false |
michael@0 | 7243 | fi |
michael@0 | 7244 | |
michael@0 | 7245 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 7246 | as_basename=basename |
michael@0 | 7247 | else |
michael@0 | 7248 | as_basename=false |
michael@0 | 7249 | fi |
michael@0 | 7250 | |
michael@0 | 7251 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 7252 | as_dirname=dirname |
michael@0 | 7253 | else |
michael@0 | 7254 | as_dirname=false |
michael@0 | 7255 | fi |
michael@0 | 7256 | |
michael@0 | 7257 | as_me=`$as_basename -- "$0" || |
michael@0 | 7258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 7259 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 7260 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 7261 | $as_echo X/"$0" | |
michael@0 | 7262 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 7263 | s//\1/ |
michael@0 | 7264 | q |
michael@0 | 7265 | } |
michael@0 | 7266 | /^X\/\(\/\/\)$/{ |
michael@0 | 7267 | s//\1/ |
michael@0 | 7268 | q |
michael@0 | 7269 | } |
michael@0 | 7270 | /^X\/\(\/\).*/{ |
michael@0 | 7271 | s//\1/ |
michael@0 | 7272 | q |
michael@0 | 7273 | } |
michael@0 | 7274 | s/.*/./; q'` |
michael@0 | 7275 | |
michael@0 | 7276 | # Avoid depending upon Character Ranges. |
michael@0 | 7277 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 7278 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 7279 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 7280 | as_cr_digits='0123456789' |
michael@0 | 7281 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 7282 | |
michael@0 | 7283 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 7284 | case `echo -n x` in #((((( |
michael@0 | 7285 | -n*) |
michael@0 | 7286 | case `echo 'xy\c'` in |
michael@0 | 7287 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 7288 | xy) ECHO_C='\c';; |
michael@0 | 7289 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 7290 | ECHO_T=' ';; |
michael@0 | 7291 | esac;; |
michael@0 | 7292 | *) |
michael@0 | 7293 | ECHO_N='-n';; |
michael@0 | 7294 | esac |
michael@0 | 7295 | |
michael@0 | 7296 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 7297 | if test -d conf$$.dir; then |
michael@0 | 7298 | rm -f conf$$.dir/conf$$.file |
michael@0 | 7299 | else |
michael@0 | 7300 | rm -f conf$$.dir |
michael@0 | 7301 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 7302 | fi |
michael@0 | 7303 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 7304 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 7305 | as_ln_s='ln -s' |
michael@0 | 7306 | # ... but there are two gotchas: |
michael@0 | 7307 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 7308 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 7309 | # In both cases, we have to default to `cp -pR'. |
michael@0 | 7310 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 7311 | as_ln_s='cp -pR' |
michael@0 | 7312 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 7313 | as_ln_s=ln |
michael@0 | 7314 | else |
michael@0 | 7315 | as_ln_s='cp -pR' |
michael@0 | 7316 | fi |
michael@0 | 7317 | else |
michael@0 | 7318 | as_ln_s='cp -pR' |
michael@0 | 7319 | fi |
michael@0 | 7320 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 7321 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 7322 | |
michael@0 | 7323 | |
michael@0 | 7324 | # as_fn_mkdir_p |
michael@0 | 7325 | # ------------- |
michael@0 | 7326 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 7327 | as_fn_mkdir_p () |
michael@0 | 7328 | { |
michael@0 | 7329 | |
michael@0 | 7330 | case $as_dir in #( |
michael@0 | 7331 | -*) as_dir=./$as_dir;; |
michael@0 | 7332 | esac |
michael@0 | 7333 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 7334 | as_dirs= |
michael@0 | 7335 | while :; do |
michael@0 | 7336 | case $as_dir in #( |
michael@0 | 7337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 7338 | *) as_qdir=$as_dir;; |
michael@0 | 7339 | esac |
michael@0 | 7340 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 7341 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 7342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 7343 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 7344 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 7345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 7346 | $as_echo X"$as_dir" | |
michael@0 | 7347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 7348 | s//\1/ |
michael@0 | 7349 | q |
michael@0 | 7350 | } |
michael@0 | 7351 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 7352 | s//\1/ |
michael@0 | 7353 | q |
michael@0 | 7354 | } |
michael@0 | 7355 | /^X\(\/\/\)$/{ |
michael@0 | 7356 | s//\1/ |
michael@0 | 7357 | q |
michael@0 | 7358 | } |
michael@0 | 7359 | /^X\(\/\).*/{ |
michael@0 | 7360 | s//\1/ |
michael@0 | 7361 | q |
michael@0 | 7362 | } |
michael@0 | 7363 | s/.*/./; q'` |
michael@0 | 7364 | test -d "$as_dir" && break |
michael@0 | 7365 | done |
michael@0 | 7366 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 7367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 7368 | |
michael@0 | 7369 | |
michael@0 | 7370 | } # as_fn_mkdir_p |
michael@0 | 7371 | if mkdir -p . 2>/dev/null; then |
michael@0 | 7372 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 7373 | else |
michael@0 | 7374 | test -d ./-p && rmdir ./-p |
michael@0 | 7375 | as_mkdir_p=false |
michael@0 | 7376 | fi |
michael@0 | 7377 | |
michael@0 | 7378 | |
michael@0 | 7379 | # as_fn_executable_p FILE |
michael@0 | 7380 | # ----------------------- |
michael@0 | 7381 | # Test if FILE is an executable regular file. |
michael@0 | 7382 | as_fn_executable_p () |
michael@0 | 7383 | { |
michael@0 | 7384 | test -f "$1" && test -x "$1" |
michael@0 | 7385 | } # as_fn_executable_p |
michael@0 | 7386 | as_test_x='test -x' |
michael@0 | 7387 | as_executable_p=as_fn_executable_p |
michael@0 | 7388 | |
michael@0 | 7389 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 7390 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 7391 | |
michael@0 | 7392 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 7393 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 7394 | |
michael@0 | 7395 | |
michael@0 | 7396 | exec 6>&1 |
michael@0 | 7397 | ## ----------------------------------- ## |
michael@0 | 7398 | ## Main body of $CONFIG_STATUS script. ## |
michael@0 | 7399 | ## ----------------------------------- ## |
michael@0 | 7400 | _ASEOF |
michael@0 | 7401 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 7402 | |
michael@0 | 7403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7404 | # Save the log message, to keep $0 and so on meaningful, and to |
michael@0 | 7405 | # report actual input values of CONFIG_FILES etc. instead of their |
michael@0 | 7406 | # values after options handling. |
michael@0 | 7407 | ac_log=" |
michael@0 | 7408 | This file was extended by $as_me, which was |
michael@0 | 7409 | generated by GNU Autoconf 2.69. Invocation command line was |
michael@0 | 7410 | |
michael@0 | 7411 | CONFIG_FILES = $CONFIG_FILES |
michael@0 | 7412 | CONFIG_HEADERS = $CONFIG_HEADERS |
michael@0 | 7413 | CONFIG_LINKS = $CONFIG_LINKS |
michael@0 | 7414 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
michael@0 | 7415 | $ $0 $@ |
michael@0 | 7416 | |
michael@0 | 7417 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 7418 | " |
michael@0 | 7419 | |
michael@0 | 7420 | _ACEOF |
michael@0 | 7421 | |
michael@0 | 7422 | case $ac_config_files in *" |
michael@0 | 7423 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
michael@0 | 7424 | esac |
michael@0 | 7425 | |
michael@0 | 7426 | case $ac_config_headers in *" |
michael@0 | 7427 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
michael@0 | 7428 | esac |
michael@0 | 7429 | |
michael@0 | 7430 | |
michael@0 | 7431 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7432 | # Files that config.status was made for. |
michael@0 | 7433 | config_files="$ac_config_files" |
michael@0 | 7434 | config_headers="$ac_config_headers" |
michael@0 | 7435 | config_commands="$ac_config_commands" |
michael@0 | 7436 | |
michael@0 | 7437 | _ACEOF |
michael@0 | 7438 | |
michael@0 | 7439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7440 | ac_cs_usage="\ |
michael@0 | 7441 | \`$as_me' instantiates files and other configuration actions |
michael@0 | 7442 | from templates according to the current configuration. Unless the files |
michael@0 | 7443 | and actions are specified as TAGs, all are instantiated by default. |
michael@0 | 7444 | |
michael@0 | 7445 | Usage: $0 [OPTION]... [TAG]... |
michael@0 | 7446 | |
michael@0 | 7447 | -h, --help print this help, then exit |
michael@0 | 7448 | -V, --version print version number and configuration settings, then exit |
michael@0 | 7449 | --config print configuration, then exit |
michael@0 | 7450 | -q, --quiet, --silent |
michael@0 | 7451 | do not print progress messages |
michael@0 | 7452 | -d, --debug don't remove temporary files |
michael@0 | 7453 | --recheck update $as_me by reconfiguring in the same conditions |
michael@0 | 7454 | --file=FILE[:TEMPLATE] |
michael@0 | 7455 | instantiate the configuration file FILE |
michael@0 | 7456 | --header=FILE[:TEMPLATE] |
michael@0 | 7457 | instantiate the configuration header FILE |
michael@0 | 7458 | |
michael@0 | 7459 | Configuration files: |
michael@0 | 7460 | $config_files |
michael@0 | 7461 | |
michael@0 | 7462 | Configuration headers: |
michael@0 | 7463 | $config_headers |
michael@0 | 7464 | |
michael@0 | 7465 | Configuration commands: |
michael@0 | 7466 | $config_commands |
michael@0 | 7467 | |
michael@0 | 7468 | Report bugs to the package provider." |
michael@0 | 7469 | |
michael@0 | 7470 | _ACEOF |
michael@0 | 7471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7472 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
michael@0 | 7473 | ac_cs_version="\\ |
michael@0 | 7474 | config.status |
michael@0 | 7475 | configured by $0, generated by GNU Autoconf 2.69, |
michael@0 | 7476 | with options \\"\$ac_cs_config\\" |
michael@0 | 7477 | |
michael@0 | 7478 | Copyright (C) 2012 Free Software Foundation, Inc. |
michael@0 | 7479 | This config.status script is free software; the Free Software Foundation |
michael@0 | 7480 | gives unlimited permission to copy, distribute and modify it." |
michael@0 | 7481 | |
michael@0 | 7482 | ac_pwd='$ac_pwd' |
michael@0 | 7483 | srcdir='$srcdir' |
michael@0 | 7484 | INSTALL='$INSTALL' |
michael@0 | 7485 | test -n "\$AWK" || AWK=awk |
michael@0 | 7486 | _ACEOF |
michael@0 | 7487 | |
michael@0 | 7488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7489 | # The default lists apply if the user does not specify any file. |
michael@0 | 7490 | ac_need_defaults=: |
michael@0 | 7491 | while test $# != 0 |
michael@0 | 7492 | do |
michael@0 | 7493 | case $1 in |
michael@0 | 7494 | --*=?*) |
michael@0 | 7495 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 7496 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
michael@0 | 7497 | ac_shift=: |
michael@0 | 7498 | ;; |
michael@0 | 7499 | --*=) |
michael@0 | 7500 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 7501 | ac_optarg= |
michael@0 | 7502 | ac_shift=: |
michael@0 | 7503 | ;; |
michael@0 | 7504 | *) |
michael@0 | 7505 | ac_option=$1 |
michael@0 | 7506 | ac_optarg=$2 |
michael@0 | 7507 | ac_shift=shift |
michael@0 | 7508 | ;; |
michael@0 | 7509 | esac |
michael@0 | 7510 | |
michael@0 | 7511 | case $ac_option in |
michael@0 | 7512 | # Handling of the options. |
michael@0 | 7513 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
michael@0 | 7514 | ac_cs_recheck=: ;; |
michael@0 | 7515 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
michael@0 | 7516 | $as_echo "$ac_cs_version"; exit ;; |
michael@0 | 7517 | --config | --confi | --conf | --con | --co | --c ) |
michael@0 | 7518 | $as_echo "$ac_cs_config"; exit ;; |
michael@0 | 7519 | --debug | --debu | --deb | --de | --d | -d ) |
michael@0 | 7520 | debug=: ;; |
michael@0 | 7521 | --file | --fil | --fi | --f ) |
michael@0 | 7522 | $ac_shift |
michael@0 | 7523 | case $ac_optarg in |
michael@0 | 7524 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 7525 | '') as_fn_error $? "missing file argument" ;; |
michael@0 | 7526 | esac |
michael@0 | 7527 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
michael@0 | 7528 | ac_need_defaults=false;; |
michael@0 | 7529 | --header | --heade | --head | --hea ) |
michael@0 | 7530 | $ac_shift |
michael@0 | 7531 | case $ac_optarg in |
michael@0 | 7532 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 7533 | esac |
michael@0 | 7534 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
michael@0 | 7535 | ac_need_defaults=false;; |
michael@0 | 7536 | --he | --h) |
michael@0 | 7537 | # Conflict between --help and --header |
michael@0 | 7538 | as_fn_error $? "ambiguous option: \`$1' |
michael@0 | 7539 | Try \`$0 --help' for more information.";; |
michael@0 | 7540 | --help | --hel | -h ) |
michael@0 | 7541 | $as_echo "$ac_cs_usage"; exit ;; |
michael@0 | 7542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 7543 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
michael@0 | 7544 | ac_cs_silent=: ;; |
michael@0 | 7545 | |
michael@0 | 7546 | # This is an error. |
michael@0 | 7547 | -*) as_fn_error $? "unrecognized option: \`$1' |
michael@0 | 7548 | Try \`$0 --help' for more information." ;; |
michael@0 | 7549 | |
michael@0 | 7550 | *) as_fn_append ac_config_targets " $1" |
michael@0 | 7551 | ac_need_defaults=false ;; |
michael@0 | 7552 | |
michael@0 | 7553 | esac |
michael@0 | 7554 | shift |
michael@0 | 7555 | done |
michael@0 | 7556 | |
michael@0 | 7557 | ac_configure_extra_args= |
michael@0 | 7558 | |
michael@0 | 7559 | if $ac_cs_silent; then |
michael@0 | 7560 | exec 6>/dev/null |
michael@0 | 7561 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
michael@0 | 7562 | fi |
michael@0 | 7563 | |
michael@0 | 7564 | _ACEOF |
michael@0 | 7565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7566 | if \$ac_cs_recheck; then |
michael@0 | 7567 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
michael@0 | 7568 | shift |
michael@0 | 7569 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
michael@0 | 7570 | CONFIG_SHELL='$SHELL' |
michael@0 | 7571 | export CONFIG_SHELL |
michael@0 | 7572 | exec "\$@" |
michael@0 | 7573 | fi |
michael@0 | 7574 | |
michael@0 | 7575 | _ACEOF |
michael@0 | 7576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7577 | exec 5>>config.log |
michael@0 | 7578 | { |
michael@0 | 7579 | echo |
michael@0 | 7580 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
michael@0 | 7581 | ## Running $as_me. ## |
michael@0 | 7582 | _ASBOX |
michael@0 | 7583 | $as_echo "$ac_log" |
michael@0 | 7584 | } >&5 |
michael@0 | 7585 | |
michael@0 | 7586 | _ACEOF |
michael@0 | 7587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7588 | _ACEOF |
michael@0 | 7589 | |
michael@0 | 7590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7591 | |
michael@0 | 7592 | # Handling of arguments. |
michael@0 | 7593 | for ac_config_target in $ac_config_targets |
michael@0 | 7594 | do |
michael@0 | 7595 | case $ac_config_target in |
michael@0 | 7596 | "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;; |
michael@0 | 7597 | "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;; |
michael@0 | 7598 | "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;; |
michael@0 | 7599 | "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;; |
michael@0 | 7600 | "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;; |
michael@0 | 7601 | |
michael@0 | 7602 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
michael@0 | 7603 | esac |
michael@0 | 7604 | done |
michael@0 | 7605 | |
michael@0 | 7606 | |
michael@0 | 7607 | # If the user did not use the arguments to specify the items to instantiate, |
michael@0 | 7608 | # then the envvar interface is used. Set only those that are not. |
michael@0 | 7609 | # We use the long form for the default assignment because of an extremely |
michael@0 | 7610 | # bizarre bug on SunOS 4.1.3. |
michael@0 | 7611 | if $ac_need_defaults; then |
michael@0 | 7612 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
michael@0 | 7613 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
michael@0 | 7614 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
michael@0 | 7615 | fi |
michael@0 | 7616 | |
michael@0 | 7617 | # Have a temporary directory for convenience. Make it in the build tree |
michael@0 | 7618 | # simply because there is no reason against having it here, and in addition, |
michael@0 | 7619 | # creating and moving files from /tmp can sometimes cause problems. |
michael@0 | 7620 | # Hook for its removal unless debugging. |
michael@0 | 7621 | # Note that there is a small window in which the directory will not be cleaned: |
michael@0 | 7622 | # after its creation but before its name has been assigned to `$tmp'. |
michael@0 | 7623 | $debug || |
michael@0 | 7624 | { |
michael@0 | 7625 | tmp= ac_tmp= |
michael@0 | 7626 | trap 'exit_status=$? |
michael@0 | 7627 | : "${ac_tmp:=$tmp}" |
michael@0 | 7628 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
michael@0 | 7629 | ' 0 |
michael@0 | 7630 | trap 'as_fn_exit 1' 1 2 13 15 |
michael@0 | 7631 | } |
michael@0 | 7632 | # Create a (secure) tmp directory for tmp files. |
michael@0 | 7633 | |
michael@0 | 7634 | { |
michael@0 | 7635 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
michael@0 | 7636 | test -d "$tmp" |
michael@0 | 7637 | } || |
michael@0 | 7638 | { |
michael@0 | 7639 | tmp=./conf$$-$RANDOM |
michael@0 | 7640 | (umask 077 && mkdir "$tmp") |
michael@0 | 7641 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
michael@0 | 7642 | ac_tmp=$tmp |
michael@0 | 7643 | |
michael@0 | 7644 | # Set up the scripts for CONFIG_FILES section. |
michael@0 | 7645 | # No need to generate them if there are no CONFIG_FILES. |
michael@0 | 7646 | # This happens for instance with `./config.status config.h'. |
michael@0 | 7647 | if test -n "$CONFIG_FILES"; then |
michael@0 | 7648 | |
michael@0 | 7649 | |
michael@0 | 7650 | ac_cr=`echo X | tr X '\015'` |
michael@0 | 7651 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
michael@0 | 7652 | # But we know of no other shell where ac_cr would be empty at this |
michael@0 | 7653 | # point, so we can use a bashism as a fallback. |
michael@0 | 7654 | if test "x$ac_cr" = x; then |
michael@0 | 7655 | eval ac_cr=\$\'\\r\' |
michael@0 | 7656 | fi |
michael@0 | 7657 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
michael@0 | 7658 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
michael@0 | 7659 | ac_cs_awk_cr='\\r' |
michael@0 | 7660 | else |
michael@0 | 7661 | ac_cs_awk_cr=$ac_cr |
michael@0 | 7662 | fi |
michael@0 | 7663 | |
michael@0 | 7664 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
michael@0 | 7665 | _ACEOF |
michael@0 | 7666 | |
michael@0 | 7667 | |
michael@0 | 7668 | { |
michael@0 | 7669 | echo "cat >conf$$subs.awk <<_ACEOF" && |
michael@0 | 7670 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
michael@0 | 7671 | echo "_ACEOF" |
michael@0 | 7672 | } >conf$$subs.sh || |
michael@0 | 7673 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 7674 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
michael@0 | 7675 | ac_delim='%!_!# ' |
michael@0 | 7676 | for ac_last_try in false false false false false :; do |
michael@0 | 7677 | . ./conf$$subs.sh || |
michael@0 | 7678 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 7679 | |
michael@0 | 7680 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
michael@0 | 7681 | if test $ac_delim_n = $ac_delim_num; then |
michael@0 | 7682 | break |
michael@0 | 7683 | elif $ac_last_try; then |
michael@0 | 7684 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 7685 | else |
michael@0 | 7686 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
michael@0 | 7687 | fi |
michael@0 | 7688 | done |
michael@0 | 7689 | rm -f conf$$subs.sh |
michael@0 | 7690 | |
michael@0 | 7691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7692 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
michael@0 | 7693 | _ACEOF |
michael@0 | 7694 | sed -n ' |
michael@0 | 7695 | h |
michael@0 | 7696 | s/^/S["/; s/!.*/"]=/ |
michael@0 | 7697 | p |
michael@0 | 7698 | g |
michael@0 | 7699 | s/^[^!]*!// |
michael@0 | 7700 | :repl |
michael@0 | 7701 | t repl |
michael@0 | 7702 | s/'"$ac_delim"'$// |
michael@0 | 7703 | t delim |
michael@0 | 7704 | :nl |
michael@0 | 7705 | h |
michael@0 | 7706 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 7707 | t more1 |
michael@0 | 7708 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
michael@0 | 7709 | p |
michael@0 | 7710 | n |
michael@0 | 7711 | b repl |
michael@0 | 7712 | :more1 |
michael@0 | 7713 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 7714 | p |
michael@0 | 7715 | g |
michael@0 | 7716 | s/.\{148\}// |
michael@0 | 7717 | t nl |
michael@0 | 7718 | :delim |
michael@0 | 7719 | h |
michael@0 | 7720 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 7721 | t more2 |
michael@0 | 7722 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
michael@0 | 7723 | p |
michael@0 | 7724 | b |
michael@0 | 7725 | :more2 |
michael@0 | 7726 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 7727 | p |
michael@0 | 7728 | g |
michael@0 | 7729 | s/.\{148\}// |
michael@0 | 7730 | t delim |
michael@0 | 7731 | ' <conf$$subs.awk | sed ' |
michael@0 | 7732 | /^[^""]/{ |
michael@0 | 7733 | N |
michael@0 | 7734 | s/\n// |
michael@0 | 7735 | } |
michael@0 | 7736 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 7737 | rm -f conf$$subs.awk |
michael@0 | 7738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7739 | _ACAWK |
michael@0 | 7740 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
michael@0 | 7741 | for (key in S) S_is_set[key] = 1 |
michael@0 | 7742 | FS = "" |
michael@0 | 7743 | |
michael@0 | 7744 | } |
michael@0 | 7745 | { |
michael@0 | 7746 | line = $ 0 |
michael@0 | 7747 | nfields = split(line, field, "@") |
michael@0 | 7748 | substed = 0 |
michael@0 | 7749 | len = length(field[1]) |
michael@0 | 7750 | for (i = 2; i < nfields; i++) { |
michael@0 | 7751 | key = field[i] |
michael@0 | 7752 | keylen = length(key) |
michael@0 | 7753 | if (S_is_set[key]) { |
michael@0 | 7754 | value = S[key] |
michael@0 | 7755 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
michael@0 | 7756 | len += length(value) + length(field[++i]) |
michael@0 | 7757 | substed = 1 |
michael@0 | 7758 | } else |
michael@0 | 7759 | len += 1 + keylen |
michael@0 | 7760 | } |
michael@0 | 7761 | |
michael@0 | 7762 | print line |
michael@0 | 7763 | } |
michael@0 | 7764 | |
michael@0 | 7765 | _ACAWK |
michael@0 | 7766 | _ACEOF |
michael@0 | 7767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7768 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
michael@0 | 7769 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
michael@0 | 7770 | else |
michael@0 | 7771 | cat |
michael@0 | 7772 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
michael@0 | 7773 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
michael@0 | 7774 | _ACEOF |
michael@0 | 7775 | |
michael@0 | 7776 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
michael@0 | 7777 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
michael@0 | 7778 | # trailing colons and then remove the whole line if VPATH becomes empty |
michael@0 | 7779 | # (actually we leave an empty line to preserve line numbers). |
michael@0 | 7780 | if test "x$srcdir" = x.; then |
michael@0 | 7781 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
michael@0 | 7782 | h |
michael@0 | 7783 | s/// |
michael@0 | 7784 | s/^/:/ |
michael@0 | 7785 | s/[ ]*$/:/ |
michael@0 | 7786 | s/:\$(srcdir):/:/g |
michael@0 | 7787 | s/:\${srcdir}:/:/g |
michael@0 | 7788 | s/:@srcdir@:/:/g |
michael@0 | 7789 | s/^:*// |
michael@0 | 7790 | s/:*$// |
michael@0 | 7791 | x |
michael@0 | 7792 | s/\(=[ ]*\).*/\1/ |
michael@0 | 7793 | G |
michael@0 | 7794 | s/\n// |
michael@0 | 7795 | s/^[^=]*=[ ]*$// |
michael@0 | 7796 | }' |
michael@0 | 7797 | fi |
michael@0 | 7798 | |
michael@0 | 7799 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7800 | fi # test -n "$CONFIG_FILES" |
michael@0 | 7801 | |
michael@0 | 7802 | # Set up the scripts for CONFIG_HEADERS section. |
michael@0 | 7803 | # No need to generate them if there are no CONFIG_HEADERS. |
michael@0 | 7804 | # This happens for instance with `./config.status Makefile'. |
michael@0 | 7805 | if test -n "$CONFIG_HEADERS"; then |
michael@0 | 7806 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
michael@0 | 7807 | BEGIN { |
michael@0 | 7808 | _ACEOF |
michael@0 | 7809 | |
michael@0 | 7810 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
michael@0 | 7811 | # here-document in config.status, that substitutes the proper values into |
michael@0 | 7812 | # config.h.in to produce config.h. |
michael@0 | 7813 | |
michael@0 | 7814 | # Create a delimiter string that does not exist in confdefs.h, to ease |
michael@0 | 7815 | # handling of long lines. |
michael@0 | 7816 | ac_delim='%!_!# ' |
michael@0 | 7817 | for ac_last_try in false false :; do |
michael@0 | 7818 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
michael@0 | 7819 | if test -z "$ac_tt"; then |
michael@0 | 7820 | break |
michael@0 | 7821 | elif $ac_last_try; then |
michael@0 | 7822 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
michael@0 | 7823 | else |
michael@0 | 7824 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
michael@0 | 7825 | fi |
michael@0 | 7826 | done |
michael@0 | 7827 | |
michael@0 | 7828 | # For the awk script, D is an array of macro values keyed by name, |
michael@0 | 7829 | # likewise P contains macro parameters if any. Preserve backslash |
michael@0 | 7830 | # newline sequences. |
michael@0 | 7831 | |
michael@0 | 7832 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
michael@0 | 7833 | sed -n ' |
michael@0 | 7834 | s/.\{148\}/&'"$ac_delim"'/g |
michael@0 | 7835 | t rset |
michael@0 | 7836 | :rset |
michael@0 | 7837 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
michael@0 | 7838 | t def |
michael@0 | 7839 | d |
michael@0 | 7840 | :def |
michael@0 | 7841 | s/\\$// |
michael@0 | 7842 | t bsnl |
michael@0 | 7843 | s/["\\]/\\&/g |
michael@0 | 7844 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
michael@0 | 7845 | D["\1"]=" \3"/p |
michael@0 | 7846 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
michael@0 | 7847 | d |
michael@0 | 7848 | :bsnl |
michael@0 | 7849 | s/["\\]/\\&/g |
michael@0 | 7850 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
michael@0 | 7851 | D["\1"]=" \3\\\\\\n"\\/p |
michael@0 | 7852 | t cont |
michael@0 | 7853 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
michael@0 | 7854 | t cont |
michael@0 | 7855 | d |
michael@0 | 7856 | :cont |
michael@0 | 7857 | n |
michael@0 | 7858 | s/.\{148\}/&'"$ac_delim"'/g |
michael@0 | 7859 | t clear |
michael@0 | 7860 | :clear |
michael@0 | 7861 | s/\\$// |
michael@0 | 7862 | t bsnlc |
michael@0 | 7863 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
michael@0 | 7864 | d |
michael@0 | 7865 | :bsnlc |
michael@0 | 7866 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
michael@0 | 7867 | b cont |
michael@0 | 7868 | ' <confdefs.h | sed ' |
michael@0 | 7869 | s/'"$ac_delim"'/"\\\ |
michael@0 | 7870 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 7871 | |
michael@0 | 7872 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 7873 | for (key in D) D_is_set[key] = 1 |
michael@0 | 7874 | FS = "" |
michael@0 | 7875 | } |
michael@0 | 7876 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
michael@0 | 7877 | line = \$ 0 |
michael@0 | 7878 | split(line, arg, " ") |
michael@0 | 7879 | if (arg[1] == "#") { |
michael@0 | 7880 | defundef = arg[2] |
michael@0 | 7881 | mac1 = arg[3] |
michael@0 | 7882 | } else { |
michael@0 | 7883 | defundef = substr(arg[1], 2) |
michael@0 | 7884 | mac1 = arg[2] |
michael@0 | 7885 | } |
michael@0 | 7886 | split(mac1, mac2, "(") #) |
michael@0 | 7887 | macro = mac2[1] |
michael@0 | 7888 | prefix = substr(line, 1, index(line, defundef) - 1) |
michael@0 | 7889 | if (D_is_set[macro]) { |
michael@0 | 7890 | # Preserve the white space surrounding the "#". |
michael@0 | 7891 | print prefix "define", macro P[macro] D[macro] |
michael@0 | 7892 | next |
michael@0 | 7893 | } else { |
michael@0 | 7894 | # Replace #undef with comments. This is necessary, for example, |
michael@0 | 7895 | # in the case of _POSIX_SOURCE, which is predefined and required |
michael@0 | 7896 | # on some systems where configure will not decide to define it. |
michael@0 | 7897 | if (defundef == "undef") { |
michael@0 | 7898 | print "/*", prefix defundef, macro, "*/" |
michael@0 | 7899 | next |
michael@0 | 7900 | } |
michael@0 | 7901 | } |
michael@0 | 7902 | } |
michael@0 | 7903 | { print } |
michael@0 | 7904 | _ACAWK |
michael@0 | 7905 | _ACEOF |
michael@0 | 7906 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 7907 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
michael@0 | 7908 | fi # test -n "$CONFIG_HEADERS" |
michael@0 | 7909 | |
michael@0 | 7910 | |
michael@0 | 7911 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
michael@0 | 7912 | shift |
michael@0 | 7913 | for ac_tag |
michael@0 | 7914 | do |
michael@0 | 7915 | case $ac_tag in |
michael@0 | 7916 | :[FHLC]) ac_mode=$ac_tag; continue;; |
michael@0 | 7917 | esac |
michael@0 | 7918 | case $ac_mode$ac_tag in |
michael@0 | 7919 | :[FHL]*:*);; |
michael@0 | 7920 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
michael@0 | 7921 | :[FH]-) ac_tag=-:-;; |
michael@0 | 7922 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
michael@0 | 7923 | esac |
michael@0 | 7924 | ac_save_IFS=$IFS |
michael@0 | 7925 | IFS=: |
michael@0 | 7926 | set x $ac_tag |
michael@0 | 7927 | IFS=$ac_save_IFS |
michael@0 | 7928 | shift |
michael@0 | 7929 | ac_file=$1 |
michael@0 | 7930 | shift |
michael@0 | 7931 | |
michael@0 | 7932 | case $ac_mode in |
michael@0 | 7933 | :L) ac_source=$1;; |
michael@0 | 7934 | :[FH]) |
michael@0 | 7935 | ac_file_inputs= |
michael@0 | 7936 | for ac_f |
michael@0 | 7937 | do |
michael@0 | 7938 | case $ac_f in |
michael@0 | 7939 | -) ac_f="$ac_tmp/stdin";; |
michael@0 | 7940 | *) # Look for the file first in the build tree, then in the source tree |
michael@0 | 7941 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
michael@0 | 7942 | # because $ac_f cannot contain `:'. |
michael@0 | 7943 | test -f "$ac_f" || |
michael@0 | 7944 | case $ac_f in |
michael@0 | 7945 | [\\/$]*) false;; |
michael@0 | 7946 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
michael@0 | 7947 | esac || |
michael@0 | 7948 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
michael@0 | 7949 | esac |
michael@0 | 7950 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
michael@0 | 7951 | as_fn_append ac_file_inputs " '$ac_f'" |
michael@0 | 7952 | done |
michael@0 | 7953 | |
michael@0 | 7954 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
michael@0 | 7955 | # use $as_me), people would be surprised to read: |
michael@0 | 7956 | # /* config.h. Generated by config.status. */ |
michael@0 | 7957 | configure_input='Generated from '` |
michael@0 | 7958 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
michael@0 | 7959 | `' by configure.' |
michael@0 | 7960 | if test x"$ac_file" != x-; then |
michael@0 | 7961 | configure_input="$ac_file. $configure_input" |
michael@0 | 7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
michael@0 | 7963 | $as_echo "$as_me: creating $ac_file" >&6;} |
michael@0 | 7964 | fi |
michael@0 | 7965 | # Neutralize special characters interpreted by sed in replacement strings. |
michael@0 | 7966 | case $configure_input in #( |
michael@0 | 7967 | *\&* | *\|* | *\\* ) |
michael@0 | 7968 | ac_sed_conf_input=`$as_echo "$configure_input" | |
michael@0 | 7969 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
michael@0 | 7970 | *) ac_sed_conf_input=$configure_input;; |
michael@0 | 7971 | esac |
michael@0 | 7972 | |
michael@0 | 7973 | case $ac_tag in |
michael@0 | 7974 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
michael@0 | 7975 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
michael@0 | 7976 | esac |
michael@0 | 7977 | ;; |
michael@0 | 7978 | esac |
michael@0 | 7979 | |
michael@0 | 7980 | ac_dir=`$as_dirname -- "$ac_file" || |
michael@0 | 7981 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 7982 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
michael@0 | 7983 | X"$ac_file" : 'X\(//\)$' \| \ |
michael@0 | 7984 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 7985 | $as_echo X"$ac_file" | |
michael@0 | 7986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 7987 | s//\1/ |
michael@0 | 7988 | q |
michael@0 | 7989 | } |
michael@0 | 7990 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 7991 | s//\1/ |
michael@0 | 7992 | q |
michael@0 | 7993 | } |
michael@0 | 7994 | /^X\(\/\/\)$/{ |
michael@0 | 7995 | s//\1/ |
michael@0 | 7996 | q |
michael@0 | 7997 | } |
michael@0 | 7998 | /^X\(\/\).*/{ |
michael@0 | 7999 | s//\1/ |
michael@0 | 8000 | q |
michael@0 | 8001 | } |
michael@0 | 8002 | s/.*/./; q'` |
michael@0 | 8003 | as_dir="$ac_dir"; as_fn_mkdir_p |
michael@0 | 8004 | ac_builddir=. |
michael@0 | 8005 | |
michael@0 | 8006 | case "$ac_dir" in |
michael@0 | 8007 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 8008 | *) |
michael@0 | 8009 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 8010 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 8011 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 8012 | case $ac_top_builddir_sub in |
michael@0 | 8013 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 8014 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 8015 | esac ;; |
michael@0 | 8016 | esac |
michael@0 | 8017 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 8018 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 8019 | # for backward compatibility: |
michael@0 | 8020 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 8021 | |
michael@0 | 8022 | case $srcdir in |
michael@0 | 8023 | .) # We are building in place. |
michael@0 | 8024 | ac_srcdir=. |
michael@0 | 8025 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 8026 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 8027 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 8028 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 8029 | ac_top_srcdir=$srcdir |
michael@0 | 8030 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 8031 | *) # Relative name. |
michael@0 | 8032 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 8033 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 8034 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 8035 | esac |
michael@0 | 8036 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 8037 | |
michael@0 | 8038 | |
michael@0 | 8039 | case $ac_mode in |
michael@0 | 8040 | :F) |
michael@0 | 8041 | # |
michael@0 | 8042 | # CONFIG_FILE |
michael@0 | 8043 | # |
michael@0 | 8044 | |
michael@0 | 8045 | case $INSTALL in |
michael@0 | 8046 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
michael@0 | 8047 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
michael@0 | 8048 | esac |
michael@0 | 8049 | _ACEOF |
michael@0 | 8050 | |
michael@0 | 8051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8052 | # If the template does not know about datarootdir, expand it. |
michael@0 | 8053 | # FIXME: This hack should be removed a few years after 2.60. |
michael@0 | 8054 | ac_datarootdir_hack=; ac_datarootdir_seen= |
michael@0 | 8055 | ac_sed_dataroot=' |
michael@0 | 8056 | /datarootdir/ { |
michael@0 | 8057 | p |
michael@0 | 8058 | q |
michael@0 | 8059 | } |
michael@0 | 8060 | /@datadir@/p |
michael@0 | 8061 | /@docdir@/p |
michael@0 | 8062 | /@infodir@/p |
michael@0 | 8063 | /@localedir@/p |
michael@0 | 8064 | /@mandir@/p' |
michael@0 | 8065 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
michael@0 | 8066 | *datarootdir*) ac_datarootdir_seen=yes;; |
michael@0 | 8067 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
michael@0 | 8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
michael@0 | 8069 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
michael@0 | 8070 | _ACEOF |
michael@0 | 8071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8072 | ac_datarootdir_hack=' |
michael@0 | 8073 | s&@datadir@&$datadir&g |
michael@0 | 8074 | s&@docdir@&$docdir&g |
michael@0 | 8075 | s&@infodir@&$infodir&g |
michael@0 | 8076 | s&@localedir@&$localedir&g |
michael@0 | 8077 | s&@mandir@&$mandir&g |
michael@0 | 8078 | s&\\\${datarootdir}&$datarootdir&g' ;; |
michael@0 | 8079 | esac |
michael@0 | 8080 | _ACEOF |
michael@0 | 8081 | |
michael@0 | 8082 | # Neutralize VPATH when `$srcdir' = `.'. |
michael@0 | 8083 | # Shell code in configure.ac might set extrasub. |
michael@0 | 8084 | # FIXME: do we really want to maintain this feature? |
michael@0 | 8085 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8086 | ac_sed_extra="$ac_vpsub |
michael@0 | 8087 | $extrasub |
michael@0 | 8088 | _ACEOF |
michael@0 | 8089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8090 | :t |
michael@0 | 8091 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
michael@0 | 8092 | s|@configure_input@|$ac_sed_conf_input|;t t |
michael@0 | 8093 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
michael@0 | 8094 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
michael@0 | 8095 | s&@srcdir@&$ac_srcdir&;t t |
michael@0 | 8096 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
michael@0 | 8097 | s&@top_srcdir@&$ac_top_srcdir&;t t |
michael@0 | 8098 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
michael@0 | 8099 | s&@builddir@&$ac_builddir&;t t |
michael@0 | 8100 | s&@abs_builddir@&$ac_abs_builddir&;t t |
michael@0 | 8101 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
michael@0 | 8102 | s&@INSTALL@&$ac_INSTALL&;t t |
michael@0 | 8103 | $ac_datarootdir_hack |
michael@0 | 8104 | " |
michael@0 | 8105 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
michael@0 | 8106 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8107 | |
michael@0 | 8108 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
michael@0 | 8109 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
michael@0 | 8110 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
michael@0 | 8111 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
michael@0 | 8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 8113 | which seems to be undefined. Please make sure it is defined" >&5 |
michael@0 | 8114 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 8115 | which seems to be undefined. Please make sure it is defined" >&2;} |
michael@0 | 8116 | |
michael@0 | 8117 | rm -f "$ac_tmp/stdin" |
michael@0 | 8118 | case $ac_file in |
michael@0 | 8119 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
michael@0 | 8120 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
michael@0 | 8121 | esac \ |
michael@0 | 8122 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8123 | ;; |
michael@0 | 8124 | :H) |
michael@0 | 8125 | # |
michael@0 | 8126 | # CONFIG_HEADER |
michael@0 | 8127 | # |
michael@0 | 8128 | if test x"$ac_file" != x-; then |
michael@0 | 8129 | { |
michael@0 | 8130 | $as_echo "/* $configure_input */" \ |
michael@0 | 8131 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
michael@0 | 8132 | } >"$ac_tmp/config.h" \ |
michael@0 | 8133 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8134 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
michael@0 | 8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
michael@0 | 8136 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
michael@0 | 8137 | else |
michael@0 | 8138 | rm -f "$ac_file" |
michael@0 | 8139 | mv "$ac_tmp/config.h" "$ac_file" \ |
michael@0 | 8140 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8141 | fi |
michael@0 | 8142 | else |
michael@0 | 8143 | $as_echo "/* $configure_input */" \ |
michael@0 | 8144 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
michael@0 | 8145 | || as_fn_error $? "could not create -" "$LINENO" 5 |
michael@0 | 8146 | fi |
michael@0 | 8147 | ;; |
michael@0 | 8148 | |
michael@0 | 8149 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
michael@0 | 8150 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
michael@0 | 8151 | ;; |
michael@0 | 8152 | esac |
michael@0 | 8153 | |
michael@0 | 8154 | |
michael@0 | 8155 | case $ac_file$ac_mode in |
michael@0 | 8156 | "include/jemalloc/internal/size_classes.h":C) |
michael@0 | 8157 | mkdir -p "include/jemalloc/internal" |
michael@0 | 8158 | "${srcdir}/include/jemalloc/internal/size_classes.sh" > "${objroot}include/jemalloc/internal/size_classes.h" |
michael@0 | 8159 | ;; |
michael@0 | 8160 | |
michael@0 | 8161 | esac |
michael@0 | 8162 | done # for ac_tag |
michael@0 | 8163 | |
michael@0 | 8164 | |
michael@0 | 8165 | as_fn_exit 0 |
michael@0 | 8166 | _ACEOF |
michael@0 | 8167 | ac_clean_files=$ac_clean_files_save |
michael@0 | 8168 | |
michael@0 | 8169 | test $ac_write_fail = 0 || |
michael@0 | 8170 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 8171 | |
michael@0 | 8172 | |
michael@0 | 8173 | # configure is writing to config.log, and then calls config.status. |
michael@0 | 8174 | # config.status does its own redirection, appending to config.log. |
michael@0 | 8175 | # Unfortunately, on DOS this fails, as config.log is still kept open |
michael@0 | 8176 | # by configure, so config.status won't be able to write to it; its |
michael@0 | 8177 | # output is simply discarded. So we exec the FD to /dev/null, |
michael@0 | 8178 | # effectively closing config.log, so it can be properly (re)opened and |
michael@0 | 8179 | # appended to by config.status. When coming back to configure, we |
michael@0 | 8180 | # need to make the FD available again. |
michael@0 | 8181 | if test "$no_create" != yes; then |
michael@0 | 8182 | ac_cs_success=: |
michael@0 | 8183 | ac_config_status_args= |
michael@0 | 8184 | test "$silent" = yes && |
michael@0 | 8185 | ac_config_status_args="$ac_config_status_args --quiet" |
michael@0 | 8186 | exec 5>/dev/null |
michael@0 | 8187 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
michael@0 | 8188 | exec 5>>config.log |
michael@0 | 8189 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
michael@0 | 8190 | # would make configure fail if this is the last instruction. |
michael@0 | 8191 | $ac_cs_success || as_fn_exit 1 |
michael@0 | 8192 | fi |
michael@0 | 8193 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
michael@0 | 8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
michael@0 | 8195 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
michael@0 | 8196 | fi |
michael@0 | 8197 | |
michael@0 | 8198 | |
michael@0 | 8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 |
michael@0 | 8200 | $as_echo "===============================================================================" >&6; } |
michael@0 | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5 |
michael@0 | 8202 | $as_echo "jemalloc version : ${jemalloc_version}" >&6; } |
michael@0 | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5 |
michael@0 | 8204 | $as_echo "library revision : ${rev}" >&6; } |
michael@0 | 8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
michael@0 | 8206 | $as_echo "" >&6; } |
michael@0 | 8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5 |
michael@0 | 8208 | $as_echo "CC : ${CC}" >&6; } |
michael@0 | 8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5 |
michael@0 | 8210 | $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; } |
michael@0 | 8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS : ${CFLAGS}" >&5 |
michael@0 | 8212 | $as_echo "CFLAGS : ${CFLAGS}" >&6; } |
michael@0 | 8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5 |
michael@0 | 8214 | $as_echo "LDFLAGS : ${LDFLAGS}" >&6; } |
michael@0 | 8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5 |
michael@0 | 8216 | $as_echo "LIBS : ${LIBS}" >&6; } |
michael@0 | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5 |
michael@0 | 8218 | $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; } |
michael@0 | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
michael@0 | 8220 | $as_echo "" >&6; } |
michael@0 | 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5 |
michael@0 | 8222 | $as_echo "XSLTPROC : ${XSLTPROC}" >&6; } |
michael@0 | 8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5 |
michael@0 | 8224 | $as_echo "XSLROOT : ${XSLROOT}" >&6; } |
michael@0 | 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
michael@0 | 8226 | $as_echo "" >&6; } |
michael@0 | 8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5 |
michael@0 | 8228 | $as_echo "PREFIX : ${PREFIX}" >&6; } |
michael@0 | 8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5 |
michael@0 | 8230 | $as_echo "BINDIR : ${BINDIR}" >&6; } |
michael@0 | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5 |
michael@0 | 8232 | $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; } |
michael@0 | 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5 |
michael@0 | 8234 | $as_echo "LIBDIR : ${LIBDIR}" >&6; } |
michael@0 | 8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5 |
michael@0 | 8236 | $as_echo "DATADIR : ${DATADIR}" >&6; } |
michael@0 | 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5 |
michael@0 | 8238 | $as_echo "MANDIR : ${MANDIR}" >&6; } |
michael@0 | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
michael@0 | 8240 | $as_echo "" >&6; } |
michael@0 | 8241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5 |
michael@0 | 8242 | $as_echo "srcroot : ${srcroot}" >&6; } |
michael@0 | 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5 |
michael@0 | 8244 | $as_echo "abs_srcroot : ${abs_srcroot}" >&6; } |
michael@0 | 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5 |
michael@0 | 8246 | $as_echo "objroot : ${objroot}" >&6; } |
michael@0 | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5 |
michael@0 | 8248 | $as_echo "abs_objroot : ${abs_objroot}" >&6; } |
michael@0 | 8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
michael@0 | 8250 | $as_echo "" >&6; } |
michael@0 | 8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5 |
michael@0 | 8252 | $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; } |
michael@0 | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5 |
michael@0 | 8254 | $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; } |
michael@0 | 8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5 |
michael@0 | 8256 | $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; } |
michael@0 | 8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5 |
michael@0 | 8258 | $as_echo "install_suffix : ${install_suffix}" >&6; } |
michael@0 | 8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5 |
michael@0 | 8260 | $as_echo "autogen : ${enable_autogen}" >&6; } |
michael@0 | 8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental : ${enable_experimental}" >&5 |
michael@0 | 8262 | $as_echo "experimental : ${enable_experimental}" >&6; } |
michael@0 | 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5 |
michael@0 | 8264 | $as_echo "cc-silence : ${enable_cc_silence}" >&6; } |
michael@0 | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5 |
michael@0 | 8266 | $as_echo "debug : ${enable_debug}" >&6; } |
michael@0 | 8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5 |
michael@0 | 8268 | $as_echo "stats : ${enable_stats}" >&6; } |
michael@0 | 8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5 |
michael@0 | 8270 | $as_echo "prof : ${enable_prof}" >&6; } |
michael@0 | 8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5 |
michael@0 | 8272 | $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; } |
michael@0 | 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5 |
michael@0 | 8274 | $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; } |
michael@0 | 8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5 |
michael@0 | 8276 | $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; } |
michael@0 | 8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5 |
michael@0 | 8278 | $as_echo "tcache : ${enable_tcache}" >&6; } |
michael@0 | 8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5 |
michael@0 | 8280 | $as_echo "fill : ${enable_fill}" >&6; } |
michael@0 | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5 |
michael@0 | 8282 | $as_echo "utrace : ${enable_utrace}" >&6; } |
michael@0 | 8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind : ${enable_valgrind}" >&5 |
michael@0 | 8284 | $as_echo "valgrind : ${enable_valgrind}" >&6; } |
michael@0 | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5 |
michael@0 | 8286 | $as_echo "xmalloc : ${enable_xmalloc}" >&6; } |
michael@0 | 8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mremap : ${enable_mremap}" >&5 |
michael@0 | 8288 | $as_echo "mremap : ${enable_mremap}" >&6; } |
michael@0 | 8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap : ${enable_munmap}" >&5 |
michael@0 | 8290 | $as_echo "munmap : ${enable_munmap}" >&6; } |
michael@0 | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dss : ${enable_dss}" >&5 |
michael@0 | 8292 | $as_echo "dss : ${enable_dss}" >&6; } |
michael@0 | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5 |
michael@0 | 8294 | $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; } |
michael@0 | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5 |
michael@0 | 8296 | $as_echo "tls : ${enable_tls}" >&6; } |
michael@0 | 8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 |
michael@0 | 8298 | $as_echo "===============================================================================" >&6; } |