memory/jemalloc/src/configure

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rwxr-xr-x

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.69.
     4 #
     5 #
     6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
     7 #
     8 #
     9 # This configure script is free software; the Free Software Foundation
    10 # gives unlimited permission to copy, distribute and modify it.
    11 ## -------------------- ##
    12 ## M4sh Initialization. ##
    13 ## -------------------- ##
    15 # Be more Bourne compatible
    16 DUALCASE=1; export DUALCASE # for MKS sh
    17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    18   emulate sh
    19   NULLCMD=:
    20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    21   # is contrary to our usage.  Disable this feature.
    22   alias -g '${1+"$@"}'='"$@"'
    23   setopt NO_GLOB_SUBST
    24 else
    25   case `(set -o) 2>/dev/null` in #(
    26   *posix*) :
    27     set -o posix ;; #(
    28   *) :
    29      ;;
    30 esac
    31 fi
    34 as_nl='
    35 '
    36 export as_nl
    37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
    38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    41 # Prefer a ksh shell builtin over an external printf program on Solaris,
    42 # but without wasting forks for bash or zsh.
    43 if test -z "$BASH_VERSION$ZSH_VERSION" \
    44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    45   as_echo='print -r --'
    46   as_echo_n='print -rn --'
    47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    48   as_echo='printf %s\n'
    49   as_echo_n='printf %s'
    50 else
    51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    53     as_echo_n='/usr/ucb/echo -n'
    54   else
    55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    56     as_echo_n_body='eval
    57       arg=$1;
    58       case $arg in #(
    59       *"$as_nl"*)
    60 	expr "X$arg" : "X\\(.*\\)$as_nl";
    61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    62       esac;
    63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    64     '
    65     export as_echo_n_body
    66     as_echo_n='sh -c $as_echo_n_body as_echo'
    67   fi
    68   export as_echo_body
    69   as_echo='sh -c $as_echo_body as_echo'
    70 fi
    72 # The user is always right.
    73 if test "${PATH_SEPARATOR+set}" != set; then
    74   PATH_SEPARATOR=:
    75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
    77       PATH_SEPARATOR=';'
    78   }
    79 fi
    82 # IFS
    83 # We need space, tab and new line, in precisely that order.  Quoting is
    84 # there to prevent editors from complaining about space-tab.
    85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    86 # splitting by setting IFS to empty value.)
    87 IFS=" ""	$as_nl"
    89 # Find who we are.  Look in the path if we contain no directory separator.
    90 as_myself=
    91 case $0 in #((
    92   *[\\/]* ) as_myself=$0 ;;
    93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    94 for as_dir in $PATH
    95 do
    96   IFS=$as_save_IFS
    97   test -z "$as_dir" && as_dir=.
    98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    99   done
   100 IFS=$as_save_IFS
   102      ;;
   103 esac
   104 # We did not find ourselves, most probably we were run as `sh COMMAND'
   105 # in which case we are not to be found in the path.
   106 if test "x$as_myself" = x; then
   107   as_myself=$0
   108 fi
   109 if test ! -f "$as_myself"; then
   110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   111   exit 1
   112 fi
   114 # Unset variables that we do not need and which cause bugs (e.g. in
   115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   116 # suppresses any "Segmentation fault" message there.  '((' could
   117 # trigger a bug in pdksh 5.2.14.
   118 for as_var in BASH_ENV ENV MAIL MAILPATH
   119 do eval test x\${$as_var+set} = xset \
   120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   121 done
   122 PS1='$ '
   123 PS2='> '
   124 PS4='+ '
   126 # NLS nuisances.
   127 LC_ALL=C
   128 export LC_ALL
   129 LANGUAGE=C
   130 export LANGUAGE
   132 # CDPATH.
   133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   135 # Use a proper internal environment variable to ensure we don't fall
   136   # into an infinite loop, continuously re-executing ourselves.
   137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
   138     _as_can_reexec=no; export _as_can_reexec;
   139     # We cannot yet assume a decent shell, so we have to provide a
   140 # neutralization value for shells without unset; and this also
   141 # works around shells that cannot unset nonexistent variables.
   142 # Preserve -v and -x to the replacement shell.
   143 BASH_ENV=/dev/null
   144 ENV=/dev/null
   145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   146 case $- in # ((((
   147   *v*x* | *x*v* ) as_opts=-vx ;;
   148   *v* ) as_opts=-v ;;
   149   *x* ) as_opts=-x ;;
   150   * ) as_opts= ;;
   151 esac
   152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   153 # Admittedly, this is quite paranoid, since all the known shells bail
   154 # out after a failed `exec'.
   155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   156 as_fn_exit 255
   157   fi
   158   # We don't want this to propagate to other subprocesses.
   159           { _as_can_reexec=; unset _as_can_reexec;}
   160 if test "x$CONFIG_SHELL" = x; then
   161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
   162   emulate sh
   163   NULLCMD=:
   164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
   165   # is contrary to our usage.  Disable this feature.
   166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
   167   setopt NO_GLOB_SUBST
   168 else
   169   case \`(set -o) 2>/dev/null\` in #(
   170   *posix*) :
   171     set -o posix ;; #(
   172   *) :
   173      ;;
   174 esac
   175 fi
   176 "
   177   as_required="as_fn_return () { (exit \$1); }
   178 as_fn_success () { as_fn_return 0; }
   179 as_fn_failure () { as_fn_return 1; }
   180 as_fn_ret_success () { return 0; }
   181 as_fn_ret_failure () { return 1; }
   183 exitcode=0
   184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
   185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
   186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
   187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
   188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
   190 else
   191   exitcode=1; echo positional parameters were not saved.
   192 fi
   193 test x\$exitcode = x0 || exit 1
   194 test -x / || exit 1"
   195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
   199 test \$(( 1 + 1 )) = 2 || exit 1"
   200   if (eval "$as_required") 2>/dev/null; then :
   201   as_have_required=yes
   202 else
   203   as_have_required=no
   204 fi
   205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
   207 else
   208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   209 as_found=false
   210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   211 do
   212   IFS=$as_save_IFS
   213   test -z "$as_dir" && as_dir=.
   214   as_found=:
   215   case $as_dir in #(
   216 	 /*)
   217 	   for as_base in sh bash ksh sh5; do
   218 	     # Try only shells that exist, to save several forks.
   219 	     as_shell=$as_dir/$as_base
   220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
   222   CONFIG_SHELL=$as_shell as_have_required=yes
   223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
   224   break 2
   225 fi
   226 fi
   227 	   done;;
   228        esac
   229   as_found=false
   230 done
   231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
   232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
   233   CONFIG_SHELL=$SHELL as_have_required=yes
   234 fi; }
   235 IFS=$as_save_IFS
   238       if test "x$CONFIG_SHELL" != x; then :
   239   export CONFIG_SHELL
   240              # We cannot yet assume a decent shell, so we have to provide a
   241 # neutralization value for shells without unset; and this also
   242 # works around shells that cannot unset nonexistent variables.
   243 # Preserve -v and -x to the replacement shell.
   244 BASH_ENV=/dev/null
   245 ENV=/dev/null
   246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   247 case $- in # ((((
   248   *v*x* | *x*v* ) as_opts=-vx ;;
   249   *v* ) as_opts=-v ;;
   250   *x* ) as_opts=-x ;;
   251   * ) as_opts= ;;
   252 esac
   253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   254 # Admittedly, this is quite paranoid, since all the known shells bail
   255 # out after a failed `exec'.
   256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   257 exit 255
   258 fi
   260     if test x$as_have_required = xno; then :
   261   $as_echo "$0: This script requires a shell more modern than all"
   262   $as_echo "$0: the shells that I found on your system."
   263   if test x${ZSH_VERSION+set} = xset ; then
   264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
   265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   266   else
   267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
   268 $0: including any error possibly output before this
   269 $0: message. Then install a modern shell, or manually run
   270 $0: the script under such a shell if you do have one."
   271   fi
   272   exit 1
   273 fi
   274 fi
   275 fi
   276 SHELL=${CONFIG_SHELL-/bin/sh}
   277 export SHELL
   278 # Unset more variables known to interfere with behavior of common tools.
   279 CLICOLOR_FORCE= GREP_OPTIONS=
   280 unset CLICOLOR_FORCE GREP_OPTIONS
   282 ## --------------------- ##
   283 ## M4sh Shell Functions. ##
   284 ## --------------------- ##
   285 # as_fn_unset VAR
   286 # ---------------
   287 # Portably unset VAR.
   288 as_fn_unset ()
   289 {
   290   { eval $1=; unset $1;}
   291 }
   292 as_unset=as_fn_unset
   294 # as_fn_set_status STATUS
   295 # -----------------------
   296 # Set $? to STATUS, without forking.
   297 as_fn_set_status ()
   298 {
   299   return $1
   300 } # as_fn_set_status
   302 # as_fn_exit STATUS
   303 # -----------------
   304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   305 as_fn_exit ()
   306 {
   307   set +e
   308   as_fn_set_status $1
   309   exit $1
   310 } # as_fn_exit
   312 # as_fn_mkdir_p
   313 # -------------
   314 # Create "$as_dir" as a directory, including parents if necessary.
   315 as_fn_mkdir_p ()
   316 {
   318   case $as_dir in #(
   319   -*) as_dir=./$as_dir;;
   320   esac
   321   test -d "$as_dir" || eval $as_mkdir_p || {
   322     as_dirs=
   323     while :; do
   324       case $as_dir in #(
   325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   326       *) as_qdir=$as_dir;;
   327       esac
   328       as_dirs="'$as_qdir' $as_dirs"
   329       as_dir=`$as_dirname -- "$as_dir" ||
   330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   332 	 X"$as_dir" : 'X\(//\)$' \| \
   333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   334 $as_echo X"$as_dir" |
   335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   336 	    s//\1/
   337 	    q
   338 	  }
   339 	  /^X\(\/\/\)[^/].*/{
   340 	    s//\1/
   341 	    q
   342 	  }
   343 	  /^X\(\/\/\)$/{
   344 	    s//\1/
   345 	    q
   346 	  }
   347 	  /^X\(\/\).*/{
   348 	    s//\1/
   349 	    q
   350 	  }
   351 	  s/.*/./; q'`
   352       test -d "$as_dir" && break
   353     done
   354     test -z "$as_dirs" || eval "mkdir $as_dirs"
   355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   358 } # as_fn_mkdir_p
   360 # as_fn_executable_p FILE
   361 # -----------------------
   362 # Test if FILE is an executable regular file.
   363 as_fn_executable_p ()
   364 {
   365   test -f "$1" && test -x "$1"
   366 } # as_fn_executable_p
   367 # as_fn_append VAR VALUE
   368 # ----------------------
   369 # Append the text in VALUE to the end of the definition contained in VAR. Take
   370 # advantage of any shell optimizations that allow amortized linear growth over
   371 # repeated appends, instead of the typical quadratic growth present in naive
   372 # implementations.
   373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   374   eval 'as_fn_append ()
   375   {
   376     eval $1+=\$2
   377   }'
   378 else
   379   as_fn_append ()
   380   {
   381     eval $1=\$$1\$2
   382   }
   383 fi # as_fn_append
   385 # as_fn_arith ARG...
   386 # ------------------
   387 # Perform arithmetic evaluation on the ARGs, and store the result in the
   388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   389 # must be portable across $(()) and expr.
   390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   391   eval 'as_fn_arith ()
   392   {
   393     as_val=$(( $* ))
   394   }'
   395 else
   396   as_fn_arith ()
   397   {
   398     as_val=`expr "$@" || test $? -eq 1`
   399   }
   400 fi # as_fn_arith
   403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   404 # ----------------------------------------
   405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   407 # script with STATUS, using 1 if that was 0.
   408 as_fn_error ()
   409 {
   410   as_status=$1; test $as_status -eq 0 && as_status=1
   411   if test "$4"; then
   412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   414   fi
   415   $as_echo "$as_me: error: $2" >&2
   416   as_fn_exit $as_status
   417 } # as_fn_error
   419 if expr a : '\(a\)' >/dev/null 2>&1 &&
   420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   421   as_expr=expr
   422 else
   423   as_expr=false
   424 fi
   426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   427   as_basename=basename
   428 else
   429   as_basename=false
   430 fi
   432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   433   as_dirname=dirname
   434 else
   435   as_dirname=false
   436 fi
   438 as_me=`$as_basename -- "$0" ||
   439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   440 	 X"$0" : 'X\(//\)$' \| \
   441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   442 $as_echo X/"$0" |
   443     sed '/^.*\/\([^/][^/]*\)\/*$/{
   444 	    s//\1/
   445 	    q
   446 	  }
   447 	  /^X\/\(\/\/\)$/{
   448 	    s//\1/
   449 	    q
   450 	  }
   451 	  /^X\/\(\/\).*/{
   452 	    s//\1/
   453 	    q
   454 	  }
   455 	  s/.*/./; q'`
   457 # Avoid depending upon Character Ranges.
   458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   461 as_cr_digits='0123456789'
   462 as_cr_alnum=$as_cr_Letters$as_cr_digits
   465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
   466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
   467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
   468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
   469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
   470   sed -n '
   471     p
   472     /[$]LINENO/=
   473   ' <$as_myself |
   474     sed '
   475       s/[$]LINENO.*/&-/
   476       t lineno
   477       b
   478       :lineno
   479       N
   480       :loop
   481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   482       t loop
   483       s/-\n.*//
   484     ' >$as_me.lineno &&
   485   chmod +x "$as_me.lineno" ||
   486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
   489   # already done that, so ensure we don't try to do so again and fall
   490   # in an infinite loop.  This has already happened in practice.
   491   _as_can_reexec=no; export _as_can_reexec
   492   # Don't try to exec as it changes $[0], causing all sort of problems
   493   # (the dirname of $[0] is not the place where we might find the
   494   # original and so on.  Autoconf is especially sensitive to this).
   495   . "./$as_me.lineno"
   496   # Exit status is that of the last command.
   497   exit
   498 }
   500 ECHO_C= ECHO_N= ECHO_T=
   501 case `echo -n x` in #(((((
   502 -n*)
   503   case `echo 'xy\c'` in
   504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   505   xy)  ECHO_C='\c';;
   506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   507        ECHO_T='	';;
   508   esac;;
   509 *)
   510   ECHO_N='-n';;
   511 esac
   513 rm -f conf$$ conf$$.exe conf$$.file
   514 if test -d conf$$.dir; then
   515   rm -f conf$$.dir/conf$$.file
   516 else
   517   rm -f conf$$.dir
   518   mkdir conf$$.dir 2>/dev/null
   519 fi
   520 if (echo >conf$$.file) 2>/dev/null; then
   521   if ln -s conf$$.file conf$$ 2>/dev/null; then
   522     as_ln_s='ln -s'
   523     # ... but there are two gotchas:
   524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   526     # In both cases, we have to default to `cp -pR'.
   527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   528       as_ln_s='cp -pR'
   529   elif ln conf$$.file conf$$ 2>/dev/null; then
   530     as_ln_s=ln
   531   else
   532     as_ln_s='cp -pR'
   533   fi
   534 else
   535   as_ln_s='cp -pR'
   536 fi
   537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   538 rmdir conf$$.dir 2>/dev/null
   540 if mkdir -p . 2>/dev/null; then
   541   as_mkdir_p='mkdir -p "$as_dir"'
   542 else
   543   test -d ./-p && rmdir ./-p
   544   as_mkdir_p=false
   545 fi
   547 as_test_x='test -x'
   548 as_executable_p=as_fn_executable_p
   550 # Sed expression to map a string onto a valid CPP name.
   551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   553 # Sed expression to map a string onto a valid variable name.
   554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   557 test -n "$DJDIR" || exec 7<&0 </dev/null
   558 exec 6>&1
   560 # Name of the host.
   561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
   562 # so uname gets run too.
   563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   565 #
   566 # Initializations.
   567 #
   568 ac_default_prefix=/usr/local
   569 ac_clean_files=
   570 ac_config_libobj_dir=.
   571 LIBOBJS=
   572 cross_compiling=no
   573 subdirs=
   574 MFLAGS=
   575 MAKEFLAGS=
   577 # Identity of this package.
   578 PACKAGE_NAME=
   579 PACKAGE_TARNAME=
   580 PACKAGE_VERSION=
   581 PACKAGE_STRING=
   582 PACKAGE_BUGREPORT=
   583 PACKAGE_URL=
   585 ac_unique_file="Makefile.in"
   586 # Factoring default headers for most tests.
   587 ac_includes_default="\
   588 #include <stdio.h>
   589 #ifdef HAVE_SYS_TYPES_H
   590 # include <sys/types.h>
   591 #endif
   592 #ifdef HAVE_SYS_STAT_H
   593 # include <sys/stat.h>
   594 #endif
   595 #ifdef STDC_HEADERS
   596 # include <stdlib.h>
   597 # include <stddef.h>
   598 #else
   599 # ifdef HAVE_STDLIB_H
   600 #  include <stdlib.h>
   601 # endif
   602 #endif
   603 #ifdef HAVE_STRING_H
   604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   605 #  include <memory.h>
   606 # endif
   607 # include <string.h>
   608 #endif
   609 #ifdef HAVE_STRINGS_H
   610 # include <strings.h>
   611 #endif
   612 #ifdef HAVE_INTTYPES_H
   613 # include <inttypes.h>
   614 #endif
   615 #ifdef HAVE_STDINT_H
   616 # include <stdint.h>
   617 #endif
   618 #ifdef HAVE_UNISTD_H
   619 # include <unistd.h>
   620 #endif"
   622 ac_subst_vars='LTLIBOBJS
   623 LIBOBJS
   624 cfgoutputs_out
   625 cfgoutputs_in
   626 cfghdrs_out
   627 cfghdrs_in
   628 enable_tls
   629 enable_lazy_lock
   630 jemalloc_version_gid
   631 jemalloc_version_nrev
   632 jemalloc_version_bugfix
   633 jemalloc_version_minor
   634 jemalloc_version_major
   635 jemalloc_version
   636 enable_xmalloc
   637 enable_valgrind
   638 enable_utrace
   639 enable_fill
   640 enable_dss
   641 enable_munmap
   642 enable_mremap
   643 enable_tcache
   644 enable_prof
   645 enable_stats
   646 enable_debug
   647 install_suffix
   648 enable_experimental
   649 AUTOCONF
   650 LD
   651 AR
   652 RANLIB
   653 INSTALL_DATA
   654 INSTALL_SCRIPT
   655 INSTALL_PROGRAM
   656 enable_autogen
   657 RPATH_EXTRA
   658 CC_MM
   659 MKLIB
   660 LDTARGET
   661 CTARGET
   662 PIC_CFLAGS
   663 SOREV
   664 EXTRA_LDFLAGS
   665 DSO_LDFLAGS
   666 libprefix
   667 exe
   668 a
   669 o
   670 importlib
   671 so
   672 LD_PRELOAD_VAR
   673 RPATH
   674 abi
   675 host_os
   676 host_vendor
   677 host_cpu
   678 host
   679 build_os
   680 build_vendor
   681 build_cpu
   682 build
   683 EGREP
   684 GREP
   685 CPP
   686 OBJEXT
   687 EXEEXT
   688 ac_ct_CC
   689 CPPFLAGS
   690 LDFLAGS
   691 CFLAGS
   692 CC
   693 XSLROOT
   694 XSLTPROC
   695 MANDIR
   696 DATADIR
   697 LIBDIR
   698 INCLUDEDIR
   699 BINDIR
   700 PREFIX
   701 abs_objroot
   702 objroot
   703 abs_srcroot
   704 srcroot
   705 rev
   706 target_alias
   707 host_alias
   708 build_alias
   709 LIBS
   710 ECHO_T
   711 ECHO_N
   712 ECHO_C
   713 DEFS
   714 mandir
   715 localedir
   716 libdir
   717 psdir
   718 pdfdir
   719 dvidir
   720 htmldir
   721 infodir
   722 docdir
   723 oldincludedir
   724 includedir
   725 localstatedir
   726 sharedstatedir
   727 sysconfdir
   728 datadir
   729 datarootdir
   730 libexecdir
   731 sbindir
   732 bindir
   733 program_transform_name
   734 prefix
   735 exec_prefix
   736 PACKAGE_URL
   737 PACKAGE_BUGREPORT
   738 PACKAGE_STRING
   739 PACKAGE_VERSION
   740 PACKAGE_TARNAME
   741 PACKAGE_NAME
   742 PATH_SEPARATOR
   743 SHELL'
   744 ac_subst_files=''
   745 ac_user_opts='
   746 enable_option_checking
   747 with_xslroot
   748 with_rpath
   749 enable_autogen
   750 enable_experimental
   751 with_mangling
   752 with_jemalloc_prefix
   753 with_export
   754 with_private_namespace
   755 with_install_suffix
   756 enable_cc_silence
   757 enable_debug
   758 enable_stats
   759 enable_prof
   760 enable_prof_libunwind
   761 with_static_libunwind
   762 enable_prof_libgcc
   763 enable_prof_gcc
   764 enable_tcache
   765 enable_mremap
   766 enable_munmap
   767 enable_dss
   768 enable_fill
   769 enable_utrace
   770 enable_valgrind
   771 enable_xmalloc
   772 enable_lazy_lock
   773 enable_tls
   774 '
   775       ac_precious_vars='build_alias
   776 host_alias
   777 target_alias
   778 CC
   779 CFLAGS
   780 LDFLAGS
   781 LIBS
   782 CPPFLAGS
   783 CPP'
   786 # Initialize some variables set by options.
   787 ac_init_help=
   788 ac_init_version=false
   789 ac_unrecognized_opts=
   790 ac_unrecognized_sep=
   791 # The variables have the same names as the options, with
   792 # dashes changed to underlines.
   793 cache_file=/dev/null
   794 exec_prefix=NONE
   795 no_create=
   796 no_recursion=
   797 prefix=NONE
   798 program_prefix=NONE
   799 program_suffix=NONE
   800 program_transform_name=s,x,x,
   801 silent=
   802 site=
   803 srcdir=
   804 verbose=
   805 x_includes=NONE
   806 x_libraries=NONE
   808 # Installation directory options.
   809 # These are left unexpanded so users can "make install exec_prefix=/foo"
   810 # and all the variables that are supposed to be based on exec_prefix
   811 # by default will actually change.
   812 # Use braces instead of parens because sh, perl, etc. also accept them.
   813 # (The list follows the same order as the GNU Coding Standards.)
   814 bindir='${exec_prefix}/bin'
   815 sbindir='${exec_prefix}/sbin'
   816 libexecdir='${exec_prefix}/libexec'
   817 datarootdir='${prefix}/share'
   818 datadir='${datarootdir}'
   819 sysconfdir='${prefix}/etc'
   820 sharedstatedir='${prefix}/com'
   821 localstatedir='${prefix}/var'
   822 includedir='${prefix}/include'
   823 oldincludedir='/usr/include'
   824 docdir='${datarootdir}/doc/${PACKAGE}'
   825 infodir='${datarootdir}/info'
   826 htmldir='${docdir}'
   827 dvidir='${docdir}'
   828 pdfdir='${docdir}'
   829 psdir='${docdir}'
   830 libdir='${exec_prefix}/lib'
   831 localedir='${datarootdir}/locale'
   832 mandir='${datarootdir}/man'
   834 ac_prev=
   835 ac_dashdash=
   836 for ac_option
   837 do
   838   # If the previous option needs an argument, assign it.
   839   if test -n "$ac_prev"; then
   840     eval $ac_prev=\$ac_option
   841     ac_prev=
   842     continue
   843   fi
   845   case $ac_option in
   846   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   847   *=)   ac_optarg= ;;
   848   *)    ac_optarg=yes ;;
   849   esac
   851   # Accept the important Cygnus configure options, so we can diagnose typos.
   853   case $ac_dashdash$ac_option in
   854   --)
   855     ac_dashdash=yes ;;
   857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   858     ac_prev=bindir ;;
   859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   860     bindir=$ac_optarg ;;
   862   -build | --build | --buil | --bui | --bu)
   863     ac_prev=build_alias ;;
   864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   865     build_alias=$ac_optarg ;;
   867   -cache-file | --cache-file | --cache-fil | --cache-fi \
   868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   869     ac_prev=cache_file ;;
   870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   872     cache_file=$ac_optarg ;;
   874   --config-cache | -C)
   875     cache_file=config.cache ;;
   877   -datadir | --datadir | --datadi | --datad)
   878     ac_prev=datadir ;;
   879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   880     datadir=$ac_optarg ;;
   882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   883   | --dataroo | --dataro | --datar)
   884     ac_prev=datarootdir ;;
   885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   887     datarootdir=$ac_optarg ;;
   889   -disable-* | --disable-*)
   890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   891     # Reject names that are not valid shell variable names.
   892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   893       as_fn_error $? "invalid feature name: $ac_useropt"
   894     ac_useropt_orig=$ac_useropt
   895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   896     case $ac_user_opts in
   897       *"
   898 "enable_$ac_useropt"
   899 "*) ;;
   900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   901 	 ac_unrecognized_sep=', ';;
   902     esac
   903     eval enable_$ac_useropt=no ;;
   905   -docdir | --docdir | --docdi | --doc | --do)
   906     ac_prev=docdir ;;
   907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   908     docdir=$ac_optarg ;;
   910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   911     ac_prev=dvidir ;;
   912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   913     dvidir=$ac_optarg ;;
   915   -enable-* | --enable-*)
   916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   917     # Reject names that are not valid shell variable names.
   918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   919       as_fn_error $? "invalid feature name: $ac_useropt"
   920     ac_useropt_orig=$ac_useropt
   921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   922     case $ac_user_opts in
   923       *"
   924 "enable_$ac_useropt"
   925 "*) ;;
   926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   927 	 ac_unrecognized_sep=', ';;
   928     esac
   929     eval enable_$ac_useropt=\$ac_optarg ;;
   931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   933   | --exec | --exe | --ex)
   934     ac_prev=exec_prefix ;;
   935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   937   | --exec=* | --exe=* | --ex=*)
   938     exec_prefix=$ac_optarg ;;
   940   -gas | --gas | --ga | --g)
   941     # Obsolete; use --with-gas.
   942     with_gas=yes ;;
   944   -help | --help | --hel | --he | -h)
   945     ac_init_help=long ;;
   946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   947     ac_init_help=recursive ;;
   948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   949     ac_init_help=short ;;
   951   -host | --host | --hos | --ho)
   952     ac_prev=host_alias ;;
   953   -host=* | --host=* | --hos=* | --ho=*)
   954     host_alias=$ac_optarg ;;
   956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   957     ac_prev=htmldir ;;
   958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   959   | --ht=*)
   960     htmldir=$ac_optarg ;;
   962   -includedir | --includedir | --includedi | --included | --include \
   963   | --includ | --inclu | --incl | --inc)
   964     ac_prev=includedir ;;
   965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   966   | --includ=* | --inclu=* | --incl=* | --inc=*)
   967     includedir=$ac_optarg ;;
   969   -infodir | --infodir | --infodi | --infod | --info | --inf)
   970     ac_prev=infodir ;;
   971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   972     infodir=$ac_optarg ;;
   974   -libdir | --libdir | --libdi | --libd)
   975     ac_prev=libdir ;;
   976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   977     libdir=$ac_optarg ;;
   979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   980   | --libexe | --libex | --libe)
   981     ac_prev=libexecdir ;;
   982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   983   | --libexe=* | --libex=* | --libe=*)
   984     libexecdir=$ac_optarg ;;
   986   -localedir | --localedir | --localedi | --localed | --locale)
   987     ac_prev=localedir ;;
   988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   989     localedir=$ac_optarg ;;
   991   -localstatedir | --localstatedir | --localstatedi | --localstated \
   992   | --localstate | --localstat | --localsta | --localst | --locals)
   993     ac_prev=localstatedir ;;
   994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   996     localstatedir=$ac_optarg ;;
   998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   999     ac_prev=mandir ;;
  1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1001     mandir=$ac_optarg ;;
  1003   -nfp | --nfp | --nf)
  1004     # Obsolete; use --without-fp.
  1005     with_fp=no ;;
  1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1008   | --no-cr | --no-c | -n)
  1009     no_create=yes ;;
  1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1013     no_recursion=yes ;;
  1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1017   | --oldin | --oldi | --old | --ol | --o)
  1018     ac_prev=oldincludedir ;;
  1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1022     oldincludedir=$ac_optarg ;;
  1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1025     ac_prev=prefix ;;
  1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1027     prefix=$ac_optarg ;;
  1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1030   | --program-pre | --program-pr | --program-p)
  1031     ac_prev=program_prefix ;;
  1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1034     program_prefix=$ac_optarg ;;
  1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037   | --program-suf | --program-su | --program-s)
  1038     ac_prev=program_suffix ;;
  1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041     program_suffix=$ac_optarg ;;
  1043   -program-transform-name | --program-transform-name \
  1044   | --program-transform-nam | --program-transform-na \
  1045   | --program-transform-n | --program-transform- \
  1046   | --program-transform | --program-transfor \
  1047   | --program-transfo | --program-transf \
  1048   | --program-trans | --program-tran \
  1049   | --progr-tra | --program-tr | --program-t)
  1050     ac_prev=program_transform_name ;;
  1051   -program-transform-name=* | --program-transform-name=* \
  1052   | --program-transform-nam=* | --program-transform-na=* \
  1053   | --program-transform-n=* | --program-transform-=* \
  1054   | --program-transform=* | --program-transfor=* \
  1055   | --program-transfo=* | --program-transf=* \
  1056   | --program-trans=* | --program-tran=* \
  1057   | --progr-tra=* | --program-tr=* | --program-t=*)
  1058     program_transform_name=$ac_optarg ;;
  1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1061     ac_prev=pdfdir ;;
  1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1063     pdfdir=$ac_optarg ;;
  1065   -psdir | --psdir | --psdi | --psd | --ps)
  1066     ac_prev=psdir ;;
  1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1068     psdir=$ac_optarg ;;
  1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1071   | -silent | --silent | --silen | --sile | --sil)
  1072     silent=yes ;;
  1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1075     ac_prev=sbindir ;;
  1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1077   | --sbi=* | --sb=*)
  1078     sbindir=$ac_optarg ;;
  1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1082   | --sharedst | --shareds | --shared | --share | --shar \
  1083   | --sha | --sh)
  1084     ac_prev=sharedstatedir ;;
  1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1088   | --sha=* | --sh=*)
  1089     sharedstatedir=$ac_optarg ;;
  1091   -site | --site | --sit)
  1092     ac_prev=site ;;
  1093   -site=* | --site=* | --sit=*)
  1094     site=$ac_optarg ;;
  1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1097     ac_prev=srcdir ;;
  1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1099     srcdir=$ac_optarg ;;
  1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1102   | --syscon | --sysco | --sysc | --sys | --sy)
  1103     ac_prev=sysconfdir ;;
  1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1106     sysconfdir=$ac_optarg ;;
  1108   -target | --target | --targe | --targ | --tar | --ta | --t)
  1109     ac_prev=target_alias ;;
  1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1111     target_alias=$ac_optarg ;;
  1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1114     verbose=yes ;;
  1116   -version | --version | --versio | --versi | --vers | -V)
  1117     ac_init_version=: ;;
  1119   -with-* | --with-*)
  1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1121     # Reject names that are not valid shell variable names.
  1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123       as_fn_error $? "invalid package name: $ac_useropt"
  1124     ac_useropt_orig=$ac_useropt
  1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126     case $ac_user_opts in
  1127       *"
  1128 "with_$ac_useropt"
  1129 "*) ;;
  1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131 	 ac_unrecognized_sep=', ';;
  1132     esac
  1133     eval with_$ac_useropt=\$ac_optarg ;;
  1135   -without-* | --without-*)
  1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137     # Reject names that are not valid shell variable names.
  1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1139       as_fn_error $? "invalid package name: $ac_useropt"
  1140     ac_useropt_orig=$ac_useropt
  1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142     case $ac_user_opts in
  1143       *"
  1144 "with_$ac_useropt"
  1145 "*) ;;
  1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1147 	 ac_unrecognized_sep=', ';;
  1148     esac
  1149     eval with_$ac_useropt=no ;;
  1151   --x)
  1152     # Obsolete; use --with-x.
  1153     with_x=yes ;;
  1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156   | --x-incl | --x-inc | --x-in | --x-i)
  1157     ac_prev=x_includes ;;
  1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160     x_includes=$ac_optarg ;;
  1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164     ac_prev=x_libraries ;;
  1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167     x_libraries=$ac_optarg ;;
  1169   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1170 Try \`$0 --help' for more information"
  1171     ;;
  1173   *=*)
  1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175     # Reject names that are not valid shell variable names.
  1176     case $ac_envvar in #(
  1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1178       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1179     esac
  1180     eval $ac_envvar=\$ac_optarg
  1181     export $ac_envvar ;;
  1183   *)
  1184     # FIXME: should be removed in autoconf 3.0.
  1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1189     ;;
  1191   esac
  1192 done
  1194 if test -n "$ac_prev"; then
  1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196   as_fn_error $? "missing argument to $ac_option"
  1197 fi
  1199 if test -n "$ac_unrecognized_opts"; then
  1200   case $enable_option_checking in
  1201     no) ;;
  1202     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1204   esac
  1205 fi
  1207 # Check all directory arguments for consistency.
  1208 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1210 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211 		libdir localedir mandir
  1212 do
  1213   eval ac_val=\$$ac_var
  1214   # Remove trailing slashes.
  1215   case $ac_val in
  1216     */ )
  1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218       eval $ac_var=\$ac_val;;
  1219   esac
  1220   # Be sure to have absolute directory names.
  1221   case $ac_val in
  1222     [\\/$]* | ?:[\\/]* )  continue;;
  1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224   esac
  1225   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1226 done
  1228 # There might be people who depend on the old broken behavior: `$host'
  1229 # used to hold the argument of --host etc.
  1230 # FIXME: To remove some day.
  1231 build=$build_alias
  1232 host=$host_alias
  1233 target=$target_alias
  1235 # FIXME: To remove some day.
  1236 if test "x$host_alias" != x; then
  1237   if test "x$build_alias" = x; then
  1238     cross_compiling=maybe
  1239   elif test "x$build_alias" != "x$host_alias"; then
  1240     cross_compiling=yes
  1241   fi
  1242 fi
  1244 ac_tool_prefix=
  1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1247 test "$silent" = yes && exec 6>/dev/null
  1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1251 ac_ls_di=`ls -di .` &&
  1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1253   as_fn_error $? "working directory cannot be determined"
  1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255   as_fn_error $? "pwd does not report name of working directory"
  1258 # Find the source files, if location was not specified.
  1259 if test -z "$srcdir"; then
  1260   ac_srcdir_defaulted=yes
  1261   # Try the directory containing this script, then the parent directory.
  1262   ac_confdir=`$as_dirname -- "$as_myself" ||
  1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1264 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1265 	 X"$as_myself" : 'X\(//\)$' \| \
  1266 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1267 $as_echo X"$as_myself" |
  1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1269 	    s//\1/
  1272 	  /^X\(\/\/\)[^/].*/{
  1273 	    s//\1/
  1276 	  /^X\(\/\/\)$/{
  1277 	    s//\1/
  1280 	  /^X\(\/\).*/{
  1281 	    s//\1/
  1284 	  s/.*/./; q'`
  1285   srcdir=$ac_confdir
  1286   if test ! -r "$srcdir/$ac_unique_file"; then
  1287     srcdir=..
  1288   fi
  1289 else
  1290   ac_srcdir_defaulted=no
  1291 fi
  1292 if test ! -r "$srcdir/$ac_unique_file"; then
  1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1294   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1295 fi
  1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1297 ac_abs_confdir=`(
  1298 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1299 	pwd)`
  1300 # When building in place, set srcdir=.
  1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1302   srcdir=.
  1303 fi
  1304 # Remove unnecessary trailing slashes from srcdir.
  1305 # Double slashes in file names in object file debugging info
  1306 # mess up M-x gdb in Emacs.
  1307 case $srcdir in
  1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1309 esac
  1310 for ac_var in $ac_precious_vars; do
  1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1312   eval ac_env_${ac_var}_value=\$${ac_var}
  1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1315 done
  1318 # Report the --help message.
  1320 if test "$ac_init_help" = "long"; then
  1321   # Omit some internal or obsolete options to make the list less imposing.
  1322   # This message is too long to be a string in the A/UX 3.1 sh.
  1323   cat <<_ACEOF
  1324 \`configure' configures this package to adapt to many kinds of systems.
  1326 Usage: $0 [OPTION]... [VAR=VALUE]...
  1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1331 Defaults for the options are specified in brackets.
  1333 Configuration:
  1334   -h, --help              display this help and exit
  1335       --help=short        display options specific to this package
  1336       --help=recursive    display the short help of all the included packages
  1337   -V, --version           display version information and exit
  1338   -q, --quiet, --silent   do not print \`checking ...' messages
  1339       --cache-file=FILE   cache test results in FILE [disabled]
  1340   -C, --config-cache      alias for \`--cache-file=config.cache'
  1341   -n, --no-create         do not create output files
  1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1344 Installation directories:
  1345   --prefix=PREFIX         install architecture-independent files in PREFIX
  1346                           [$ac_default_prefix]
  1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1348                           [PREFIX]
  1350 By default, \`make install' will install all the files in
  1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1353 for instance \`--prefix=\$HOME'.
  1355 For better control, use the options below.
  1357 Fine tuning of the installation directories:
  1358   --bindir=DIR            user executables [EPREFIX/bin]
  1359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1360   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1364   --libdir=DIR            object code libraries [EPREFIX/lib]
  1365   --includedir=DIR        C header files [PREFIX/include]
  1366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1369   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1371   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1372   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1373   --htmldir=DIR           html documentation [DOCDIR]
  1374   --dvidir=DIR            dvi documentation [DOCDIR]
  1375   --pdfdir=DIR            pdf documentation [DOCDIR]
  1376   --psdir=DIR             ps documentation [DOCDIR]
  1377 _ACEOF
  1379   cat <<\_ACEOF
  1381 System types:
  1382   --build=BUILD     configure for building on BUILD [guessed]
  1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1384 _ACEOF
  1385 fi
  1387 if test -n "$ac_init_help"; then
  1389   cat <<\_ACEOF
  1391 Optional Features:
  1392   --disable-option-checking  ignore unrecognized --enable/--with options
  1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1395   --enable-autogen        Automatically regenerate configure output
  1396   --disable-experimental  Disable support for the experimental API
  1397   --enable-cc-silence     Silence irrelevant compiler warnings
  1398   --enable-debug          Build debugging code
  1399   --disable-stats         Disable statistics calculation/reporting
  1400   --enable-prof           Enable allocation profiling
  1401   --enable-prof-libunwind Use libunwind for backtracing
  1402   --disable-prof-libgcc   Do not use libgcc for backtracing
  1403   --disable-prof-gcc      Do not use gcc intrinsics for backtracing
  1404   --disable-tcache        Disable per thread caches
  1405   --enable-mremap         Enable mremap(2) for huge realloc()
  1406   --disable-munmap        Disable VM deallocation via munmap(2)
  1407   --enable-dss            Enable allocation from DSS
  1408   --disable-fill          Disable support for junk/zero filling, quarantine,
  1409                           and redzones
  1410   --enable-utrace         Enable utrace(2)-based tracing
  1411   --disable-valgrind      Disable support for Valgrind
  1412   --enable-xmalloc        Support xmalloc option
  1413   --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
  1414   --disable-tls           Disable thread-local storage (__thread keyword)
  1416 Optional Packages:
  1417   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1418   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1419   --with-xslroot=<path>   XSL stylesheet root path
  1420   --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
  1421   --with-mangling=<map>   Mangle symbols in <map>
  1422   --with-jemalloc-prefix=<prefix>
  1423                           Prefix to prepend to all public APIs
  1424   --without-export        disable exporting jemalloc public APIs
  1425   --with-private-namespace=<prefix>
  1426                           Prefix to prepend to all library-private APIs
  1427   --with-install-suffix=<suffix>
  1428                           Suffix to append to all installed files
  1429   --with-static-libunwind=<libunwind.a>
  1430                           Path to static libunwind library; use rather than
  1431                           dynamically linking
  1433 Some influential environment variables:
  1434   CC          C compiler command
  1435   CFLAGS      C compiler flags
  1436   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1437               nonstandard directory <lib dir>
  1438   LIBS        libraries to pass to the linker, e.g. -l<library>
  1439   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1440               you have headers in a nonstandard directory <include dir>
  1441   CPP         C preprocessor
  1443 Use these variables to override the choices made by `configure' or to help
  1444 it to find libraries and programs with nonstandard names/locations.
  1446 Report bugs to the package provider.
  1447 _ACEOF
  1448 ac_status=$?
  1449 fi
  1451 if test "$ac_init_help" = "recursive"; then
  1452   # If there are subdirs, report their specific --help.
  1453   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1454     test -d "$ac_dir" ||
  1455       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1456       continue
  1457     ac_builddir=.
  1459 case "$ac_dir" in
  1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461 *)
  1462   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1463   # A ".." for each directory in $ac_dir_suffix.
  1464   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1465   case $ac_top_builddir_sub in
  1466   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1467   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1468   esac ;;
  1469 esac
  1470 ac_abs_top_builddir=$ac_pwd
  1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1472 # for backward compatibility:
  1473 ac_top_builddir=$ac_top_build_prefix
  1475 case $srcdir in
  1476   .)  # We are building in place.
  1477     ac_srcdir=.
  1478     ac_top_srcdir=$ac_top_builddir_sub
  1479     ac_abs_top_srcdir=$ac_pwd ;;
  1480   [\\/]* | ?:[\\/]* )  # Absolute name.
  1481     ac_srcdir=$srcdir$ac_dir_suffix;
  1482     ac_top_srcdir=$srcdir
  1483     ac_abs_top_srcdir=$srcdir ;;
  1484   *) # Relative name.
  1485     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1486     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1487     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1488 esac
  1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1491     cd "$ac_dir" || { ac_status=$?; continue; }
  1492     # Check for guested configure.
  1493     if test -f "$ac_srcdir/configure.gnu"; then
  1494       echo &&
  1495       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1496     elif test -f "$ac_srcdir/configure"; then
  1497       echo &&
  1498       $SHELL "$ac_srcdir/configure" --help=recursive
  1499     else
  1500       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1501     fi || ac_status=$?
  1502     cd "$ac_pwd" || { ac_status=$?; break; }
  1503   done
  1504 fi
  1506 test -n "$ac_init_help" && exit $ac_status
  1507 if $ac_init_version; then
  1508   cat <<\_ACEOF
  1509 configure
  1510 generated by GNU Autoconf 2.69
  1512 Copyright (C) 2012 Free Software Foundation, Inc.
  1513 This configure script is free software; the Free Software Foundation
  1514 gives unlimited permission to copy, distribute and modify it.
  1515 _ACEOF
  1516   exit
  1517 fi
  1519 ## ------------------------ ##
  1520 ## Autoconf initialization. ##
  1521 ## ------------------------ ##
  1523 # ac_fn_c_try_compile LINENO
  1524 # --------------------------
  1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1526 ac_fn_c_try_compile ()
  1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529   rm -f conftest.$ac_objext
  1530   if { { ac_try="$ac_compile"
  1531 case "(($ac_try" in
  1532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533   *) ac_try_echo=$ac_try;;
  1534 esac
  1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536 $as_echo "$ac_try_echo"; } >&5
  1537   (eval "$ac_compile") 2>conftest.err
  1538   ac_status=$?
  1539   if test -s conftest.err; then
  1540     grep -v '^ *+' conftest.err >conftest.er1
  1541     cat conftest.er1 >&5
  1542     mv -f conftest.er1 conftest.err
  1543   fi
  1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545   test $ac_status = 0; } && {
  1546 	 test -z "$ac_c_werror_flag" ||
  1547 	 test ! -s conftest.err
  1548        } && test -s conftest.$ac_objext; then :
  1549   ac_retval=0
  1550 else
  1551   $as_echo "$as_me: failed program was:" >&5
  1552 sed 's/^/| /' conftest.$ac_ext >&5
  1554 	ac_retval=1
  1555 fi
  1556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557   as_fn_set_status $ac_retval
  1559 } # ac_fn_c_try_compile
  1561 # ac_fn_c_try_cpp LINENO
  1562 # ----------------------
  1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1564 ac_fn_c_try_cpp ()
  1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1568 case "(($ac_try" in
  1569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570   *) ac_try_echo=$ac_try;;
  1571 esac
  1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573 $as_echo "$ac_try_echo"; } >&5
  1574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1575   ac_status=$?
  1576   if test -s conftest.err; then
  1577     grep -v '^ *+' conftest.err >conftest.er1
  1578     cat conftest.er1 >&5
  1579     mv -f conftest.er1 conftest.err
  1580   fi
  1581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582   test $ac_status = 0; } > conftest.i && {
  1583 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1584 	 test ! -s conftest.err
  1585        }; then :
  1586   ac_retval=0
  1587 else
  1588   $as_echo "$as_me: failed program was:" >&5
  1589 sed 's/^/| /' conftest.$ac_ext >&5
  1591     ac_retval=1
  1592 fi
  1593   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594   as_fn_set_status $ac_retval
  1596 } # ac_fn_c_try_cpp
  1598 # ac_fn_c_try_run LINENO
  1599 # ----------------------
  1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1601 # that executables *can* be run.
  1602 ac_fn_c_try_run ()
  1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605   if { { ac_try="$ac_link"
  1606 case "(($ac_try" in
  1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1608   *) ac_try_echo=$ac_try;;
  1609 esac
  1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1611 $as_echo "$ac_try_echo"; } >&5
  1612   (eval "$ac_link") 2>&5
  1613   ac_status=$?
  1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1616   { { case "(($ac_try" in
  1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1618   *) ac_try_echo=$ac_try;;
  1619 esac
  1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1621 $as_echo "$ac_try_echo"; } >&5
  1622   (eval "$ac_try") 2>&5
  1623   ac_status=$?
  1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1625   test $ac_status = 0; }; }; then :
  1626   ac_retval=0
  1627 else
  1628   $as_echo "$as_me: program exited with status $ac_status" >&5
  1629        $as_echo "$as_me: failed program was:" >&5
  1630 sed 's/^/| /' conftest.$ac_ext >&5
  1632        ac_retval=$ac_status
  1633 fi
  1634   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636   as_fn_set_status $ac_retval
  1638 } # ac_fn_c_try_run
  1640 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1641 # --------------------------------------------
  1642 # Tries to find the compile-time value of EXPR in a program that includes
  1643 # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1644 # computed
  1645 ac_fn_c_compute_int ()
  1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648   if test "$cross_compiling" = yes; then
  1649     # Depending upon the size, compute the lo and hi bounds.
  1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1651 /* end confdefs.h.  */
  1652 $4
  1653 int
  1654 main ()
  1656 static int test_array [1 - 2 * !(($2) >= 0)];
  1657 test_array [0] = 0;
  1658 return test_array [0];
  1661   return 0;
  1663 _ACEOF
  1664 if ac_fn_c_try_compile "$LINENO"; then :
  1665   ac_lo=0 ac_mid=0
  1666   while :; do
  1667     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1668 /* end confdefs.h.  */
  1669 $4
  1670 int
  1671 main ()
  1673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1674 test_array [0] = 0;
  1675 return test_array [0];
  1678   return 0;
  1680 _ACEOF
  1681 if ac_fn_c_try_compile "$LINENO"; then :
  1682   ac_hi=$ac_mid; break
  1683 else
  1684   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1685 			if test $ac_lo -le $ac_mid; then
  1686 			  ac_lo= ac_hi=
  1687 			  break
  1688 			fi
  1689 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1690 fi
  1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1692   done
  1693 else
  1694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1695 /* end confdefs.h.  */
  1696 $4
  1697 int
  1698 main ()
  1700 static int test_array [1 - 2 * !(($2) < 0)];
  1701 test_array [0] = 0;
  1702 return test_array [0];
  1705   return 0;
  1707 _ACEOF
  1708 if ac_fn_c_try_compile "$LINENO"; then :
  1709   ac_hi=-1 ac_mid=-1
  1710   while :; do
  1711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1712 /* end confdefs.h.  */
  1713 $4
  1714 int
  1715 main ()
  1717 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1718 test_array [0] = 0;
  1719 return test_array [0];
  1722   return 0;
  1724 _ACEOF
  1725 if ac_fn_c_try_compile "$LINENO"; then :
  1726   ac_lo=$ac_mid; break
  1727 else
  1728   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1729 			if test $ac_mid -le $ac_hi; then
  1730 			  ac_lo= ac_hi=
  1731 			  break
  1732 			fi
  1733 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1734 fi
  1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1736   done
  1737 else
  1738   ac_lo= ac_hi=
  1739 fi
  1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1741 fi
  1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1743 # Binary search between lo and hi bounds.
  1744 while test "x$ac_lo" != "x$ac_hi"; do
  1745   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747 /* end confdefs.h.  */
  1748 $4
  1749 int
  1750 main ()
  1752 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1753 test_array [0] = 0;
  1754 return test_array [0];
  1757   return 0;
  1759 _ACEOF
  1760 if ac_fn_c_try_compile "$LINENO"; then :
  1761   ac_hi=$ac_mid
  1762 else
  1763   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1764 fi
  1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766 done
  1767 case $ac_lo in #((
  1768 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1769 '') ac_retval=1 ;;
  1770 esac
  1771   else
  1772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773 /* end confdefs.h.  */
  1774 $4
  1775 static long int longval () { return $2; }
  1776 static unsigned long int ulongval () { return $2; }
  1777 #include <stdio.h>
  1778 #include <stdlib.h>
  1779 int
  1780 main ()
  1783   FILE *f = fopen ("conftest.val", "w");
  1784   if (! f)
  1785     return 1;
  1786   if (($2) < 0)
  1788       long int i = longval ();
  1789       if (i != ($2))
  1790 	return 1;
  1791       fprintf (f, "%ld", i);
  1793   else
  1795       unsigned long int i = ulongval ();
  1796       if (i != ($2))
  1797 	return 1;
  1798       fprintf (f, "%lu", i);
  1800   /* Do not output a trailing newline, as this causes \r\n confusion
  1801      on some platforms.  */
  1802   return ferror (f) || fclose (f) != 0;
  1805   return 0;
  1807 _ACEOF
  1808 if ac_fn_c_try_run "$LINENO"; then :
  1809   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1810 else
  1811   ac_retval=1
  1812 fi
  1813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1814   conftest.$ac_objext conftest.beam conftest.$ac_ext
  1815 rm -f conftest.val
  1817   fi
  1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1819   as_fn_set_status $ac_retval
  1821 } # ac_fn_c_compute_int
  1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1824 # -------------------------------------------------------
  1825 # Tests whether HEADER exists and can be compiled using the include files in
  1826 # INCLUDES, setting the cache variable VAR accordingly.
  1827 ac_fn_c_check_header_compile ()
  1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1831 $as_echo_n "checking for $2... " >&6; }
  1832 if eval \${$3+:} false; then :
  1833   $as_echo_n "(cached) " >&6
  1834 else
  1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1836 /* end confdefs.h.  */
  1837 $4
  1838 #include <$2>
  1839 _ACEOF
  1840 if ac_fn_c_try_compile "$LINENO"; then :
  1841   eval "$3=yes"
  1842 else
  1843   eval "$3=no"
  1844 fi
  1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1846 fi
  1847 eval ac_res=\$$3
  1848 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1849 $as_echo "$ac_res" >&6; }
  1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852 } # ac_fn_c_check_header_compile
  1854 # ac_fn_c_try_link LINENO
  1855 # -----------------------
  1856 # Try to link conftest.$ac_ext, and return whether this succeeded.
  1857 ac_fn_c_try_link ()
  1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860   rm -f conftest.$ac_objext conftest$ac_exeext
  1861   if { { ac_try="$ac_link"
  1862 case "(($ac_try" in
  1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864   *) ac_try_echo=$ac_try;;
  1865 esac
  1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867 $as_echo "$ac_try_echo"; } >&5
  1868   (eval "$ac_link") 2>conftest.err
  1869   ac_status=$?
  1870   if test -s conftest.err; then
  1871     grep -v '^ *+' conftest.err >conftest.er1
  1872     cat conftest.er1 >&5
  1873     mv -f conftest.er1 conftest.err
  1874   fi
  1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876   test $ac_status = 0; } && {
  1877 	 test -z "$ac_c_werror_flag" ||
  1878 	 test ! -s conftest.err
  1879        } && test -s conftest$ac_exeext && {
  1880 	 test "$cross_compiling" = yes ||
  1881 	 test -x conftest$ac_exeext
  1882        }; then :
  1883   ac_retval=0
  1884 else
  1885   $as_echo "$as_me: failed program was:" >&5
  1886 sed 's/^/| /' conftest.$ac_ext >&5
  1888 	ac_retval=1
  1889 fi
  1890   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1891   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1892   # interfere with the next link command; also delete a directory that is
  1893   # left behind by Apple's compiler.  We do this before executing the actions.
  1894   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896   as_fn_set_status $ac_retval
  1898 } # ac_fn_c_try_link
  1900 # ac_fn_c_check_func LINENO FUNC VAR
  1901 # ----------------------------------
  1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1903 ac_fn_c_check_func ()
  1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1907 $as_echo_n "checking for $2... " >&6; }
  1908 if eval \${$3+:} false; then :
  1909   $as_echo_n "(cached) " >&6
  1910 else
  1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912 /* end confdefs.h.  */
  1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1915 #define $2 innocuous_$2
  1917 /* System header to define __stub macros and hopefully few prototypes,
  1918     which can conflict with char $2 (); below.
  1919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1920     <limits.h> exists even on freestanding compilers.  */
  1922 #ifdef __STDC__
  1923 # include <limits.h>
  1924 #else
  1925 # include <assert.h>
  1926 #endif
  1928 #undef $2
  1930 /* Override any GCC internal prototype to avoid an error.
  1931    Use char because int might match the return type of a GCC
  1932    builtin and then its argument prototype would still apply.  */
  1933 #ifdef __cplusplus
  1934 extern "C"
  1935 #endif
  1936 char $2 ();
  1937 /* The GNU C library defines this for functions which it implements
  1938     to always fail with ENOSYS.  Some functions are actually named
  1939     something starting with __ and the normal name is an alias.  */
  1940 #if defined __stub_$2 || defined __stub___$2
  1941 choke me
  1942 #endif
  1944 int
  1945 main ()
  1947 return $2 ();
  1949   return 0;
  1951 _ACEOF
  1952 if ac_fn_c_try_link "$LINENO"; then :
  1953   eval "$3=yes"
  1954 else
  1955   eval "$3=no"
  1956 fi
  1957 rm -f core conftest.err conftest.$ac_objext \
  1958     conftest$ac_exeext conftest.$ac_ext
  1959 fi
  1960 eval ac_res=\$$3
  1961 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1962 $as_echo "$ac_res" >&6; }
  1963   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1965 } # ac_fn_c_check_func
  1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1968 # -------------------------------------------------------
  1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1970 # the include files in INCLUDES and setting the cache variable VAR
  1971 # accordingly.
  1972 ac_fn_c_check_header_mongrel ()
  1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1975   if eval \${$3+:} false; then :
  1976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1977 $as_echo_n "checking for $2... " >&6; }
  1978 if eval \${$3+:} false; then :
  1979   $as_echo_n "(cached) " >&6
  1980 fi
  1981 eval ac_res=\$$3
  1982 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983 $as_echo "$ac_res" >&6; }
  1984 else
  1985   # Is the header compilable?
  1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1987 $as_echo_n "checking $2 usability... " >&6; }
  1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989 /* end confdefs.h.  */
  1990 $4
  1991 #include <$2>
  1992 _ACEOF
  1993 if ac_fn_c_try_compile "$LINENO"; then :
  1994   ac_header_compiler=yes
  1995 else
  1996   ac_header_compiler=no
  1997 fi
  1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2000 $as_echo "$ac_header_compiler" >&6; }
  2002 # Is the header present?
  2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2004 $as_echo_n "checking $2 presence... " >&6; }
  2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2006 /* end confdefs.h.  */
  2007 #include <$2>
  2008 _ACEOF
  2009 if ac_fn_c_try_cpp "$LINENO"; then :
  2010   ac_header_preproc=yes
  2011 else
  2012   ac_header_preproc=no
  2013 fi
  2014 rm -f conftest.err conftest.i conftest.$ac_ext
  2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2016 $as_echo "$ac_header_preproc" >&6; }
  2018 # So?  What about this header?
  2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2020   yes:no: )
  2021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2025     ;;
  2026   no:yes:* )
  2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2030 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2034 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2037     ;;
  2038 esac
  2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2040 $as_echo_n "checking for $2... " >&6; }
  2041 if eval \${$3+:} false; then :
  2042   $as_echo_n "(cached) " >&6
  2043 else
  2044   eval "$3=\$ac_header_compiler"
  2045 fi
  2046 eval ac_res=\$$3
  2047 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2048 $as_echo "$ac_res" >&6; }
  2049 fi
  2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2052 } # ac_fn_c_check_header_mongrel
  2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2055 # -------------------------------------------
  2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
  2057 # variable VAR accordingly.
  2058 ac_fn_c_check_type ()
  2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2062 $as_echo_n "checking for $2... " >&6; }
  2063 if eval \${$3+:} false; then :
  2064   $as_echo_n "(cached) " >&6
  2065 else
  2066   eval "$3=no"
  2067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068 /* end confdefs.h.  */
  2069 $4
  2070 int
  2071 main ()
  2073 if (sizeof ($2))
  2074 	 return 0;
  2076   return 0;
  2078 _ACEOF
  2079 if ac_fn_c_try_compile "$LINENO"; then :
  2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081 /* end confdefs.h.  */
  2082 $4
  2083 int
  2084 main ()
  2086 if (sizeof (($2)))
  2087 	    return 0;
  2089   return 0;
  2091 _ACEOF
  2092 if ac_fn_c_try_compile "$LINENO"; then :
  2094 else
  2095   eval "$3=yes"
  2096 fi
  2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2098 fi
  2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2100 fi
  2101 eval ac_res=\$$3
  2102 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2103 $as_echo "$ac_res" >&6; }
  2104   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2106 } # ac_fn_c_check_type
  2107 cat >config.log <<_ACEOF
  2108 This file contains any messages produced by compilers while
  2109 running configure, to aid debugging if configure makes a mistake.
  2111 It was created by $as_me, which was
  2112 generated by GNU Autoconf 2.69.  Invocation command line was
  2114   $ $0 $@
  2116 _ACEOF
  2117 exec 5>>config.log
  2119 cat <<_ASUNAME
  2120 ## --------- ##
  2121 ## Platform. ##
  2122 ## --------- ##
  2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2131 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2133 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2134 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2136 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2137 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2138 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2139 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2141 _ASUNAME
  2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2144 for as_dir in $PATH
  2145 do
  2146   IFS=$as_save_IFS
  2147   test -z "$as_dir" && as_dir=.
  2148     $as_echo "PATH: $as_dir"
  2149   done
  2150 IFS=$as_save_IFS
  2152 } >&5
  2154 cat >&5 <<_ACEOF
  2157 ## ----------- ##
  2158 ## Core tests. ##
  2159 ## ----------- ##
  2161 _ACEOF
  2164 # Keep a trace of the command line.
  2165 # Strip out --no-create and --no-recursion so they do not pile up.
  2166 # Strip out --silent because we don't want to record it for future runs.
  2167 # Also quote any args containing shell meta-characters.
  2168 # Make two passes to allow for proper duplicate-argument suppression.
  2169 ac_configure_args=
  2170 ac_configure_args0=
  2171 ac_configure_args1=
  2172 ac_must_keep_next=false
  2173 for ac_pass in 1 2
  2174 do
  2175   for ac_arg
  2176   do
  2177     case $ac_arg in
  2178     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2179     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2180     | -silent | --silent | --silen | --sile | --sil)
  2181       continue ;;
  2182     *\'*)
  2183       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2184     esac
  2185     case $ac_pass in
  2186     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2187     2)
  2188       as_fn_append ac_configure_args1 " '$ac_arg'"
  2189       if test $ac_must_keep_next = true; then
  2190 	ac_must_keep_next=false # Got value, back to normal.
  2191       else
  2192 	case $ac_arg in
  2193 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  2194 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2195 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2196 	  | -with-* | --with-* | -without-* | --without-* | --x)
  2197 	    case "$ac_configure_args0 " in
  2198 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2199 	    esac
  2200 	    ;;
  2201 	  -* ) ac_must_keep_next=true ;;
  2202 	esac
  2203       fi
  2204       as_fn_append ac_configure_args " '$ac_arg'"
  2205       ;;
  2206     esac
  2207   done
  2208 done
  2209 { ac_configure_args0=; unset ac_configure_args0;}
  2210 { ac_configure_args1=; unset ac_configure_args1;}
  2212 # When interrupted or exit'd, cleanup temporary files, and complete
  2213 # config.log.  We remove comments because anyway the quotes in there
  2214 # would cause problems or look ugly.
  2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
  2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2217 trap 'exit_status=$?
  2218   # Save into config.log some information that might help in debugging.
  2220     echo
  2222     $as_echo "## ---------------- ##
  2223 ## Cache variables. ##
  2224 ## ---------------- ##"
  2225     echo
  2226     # The following way of writing the cache mishandles newlines in values,
  2228   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2229     eval ac_val=\$$ac_var
  2230     case $ac_val in #(
  2231     *${as_nl}*)
  2232       case $ac_var in #(
  2233       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2235       esac
  2236       case $ac_var in #(
  2237       _ | IFS | as_nl) ;; #(
  2238       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2239       *) { eval $ac_var=; unset $ac_var;} ;;
  2240       esac ;;
  2241     esac
  2242   done
  2243   (set) 2>&1 |
  2244     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2245     *${as_nl}ac_space=\ *)
  2246       sed -n \
  2247 	"s/'\''/'\''\\\\'\'''\''/g;
  2248 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2249       ;; #(
  2250     *)
  2251       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2252       ;;
  2253     esac |
  2254     sort
  2256     echo
  2258     $as_echo "## ----------------- ##
  2259 ## Output variables. ##
  2260 ## ----------------- ##"
  2261     echo
  2262     for ac_var in $ac_subst_vars
  2263     do
  2264       eval ac_val=\$$ac_var
  2265       case $ac_val in
  2266       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2267       esac
  2268       $as_echo "$ac_var='\''$ac_val'\''"
  2269     done | sort
  2270     echo
  2272     if test -n "$ac_subst_files"; then
  2273       $as_echo "## ------------------- ##
  2274 ## File substitutions. ##
  2275 ## ------------------- ##"
  2276       echo
  2277       for ac_var in $ac_subst_files
  2278       do
  2279 	eval ac_val=\$$ac_var
  2280 	case $ac_val in
  2281 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2282 	esac
  2283 	$as_echo "$ac_var='\''$ac_val'\''"
  2284       done | sort
  2285       echo
  2286     fi
  2288     if test -s confdefs.h; then
  2289       $as_echo "## ----------- ##
  2290 ## confdefs.h. ##
  2291 ## ----------- ##"
  2292       echo
  2293       cat confdefs.h
  2294       echo
  2295     fi
  2296     test "$ac_signal" != 0 &&
  2297       $as_echo "$as_me: caught signal $ac_signal"
  2298     $as_echo "$as_me: exit $exit_status"
  2299   } >&5
  2300   rm -f core *.core core.conftest.* &&
  2301     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2302     exit $exit_status
  2303 ' 0
  2304 for ac_signal in 1 2 13 15; do
  2305   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2306 done
  2307 ac_signal=0
  2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2310 rm -f -r conftest* confdefs.h
  2312 $as_echo "/* confdefs.h */" > confdefs.h
  2314 # Predefined preprocessor variables.
  2316 cat >>confdefs.h <<_ACEOF
  2317 #define PACKAGE_NAME "$PACKAGE_NAME"
  2318 _ACEOF
  2320 cat >>confdefs.h <<_ACEOF
  2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2322 _ACEOF
  2324 cat >>confdefs.h <<_ACEOF
  2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2326 _ACEOF
  2328 cat >>confdefs.h <<_ACEOF
  2329 #define PACKAGE_STRING "$PACKAGE_STRING"
  2330 _ACEOF
  2332 cat >>confdefs.h <<_ACEOF
  2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2334 _ACEOF
  2336 cat >>confdefs.h <<_ACEOF
  2337 #define PACKAGE_URL "$PACKAGE_URL"
  2338 _ACEOF
  2341 # Let the site file select an alternate cache file if it wants to.
  2342 # Prefer an explicitly selected file to automatically selected ones.
  2343 ac_site_file1=NONE
  2344 ac_site_file2=NONE
  2345 if test -n "$CONFIG_SITE"; then
  2346   # We do not want a PATH search for config.site.
  2347   case $CONFIG_SITE in #((
  2348     -*)  ac_site_file1=./$CONFIG_SITE;;
  2349     */*) ac_site_file1=$CONFIG_SITE;;
  2350     *)   ac_site_file1=./$CONFIG_SITE;;
  2351   esac
  2352 elif test "x$prefix" != xNONE; then
  2353   ac_site_file1=$prefix/share/config.site
  2354   ac_site_file2=$prefix/etc/config.site
  2355 else
  2356   ac_site_file1=$ac_default_prefix/share/config.site
  2357   ac_site_file2=$ac_default_prefix/etc/config.site
  2358 fi
  2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360 do
  2361   test "x$ac_site_file" = xNONE && continue
  2362   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365     sed 's/^/| /' "$ac_site_file" >&5
  2366     . "$ac_site_file" \
  2367       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369 as_fn_error $? "failed to load site script $ac_site_file
  2370 See \`config.log' for more details" "$LINENO" 5; }
  2371   fi
  2372 done
  2374 if test -r "$cache_file"; then
  2375   # Some versions of bash will fail to source /dev/null (special files
  2376   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2377   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2378     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2379 $as_echo "$as_me: loading cache $cache_file" >&6;}
  2380     case $cache_file in
  2381       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2382       *)                      . "./$cache_file";;
  2383     esac
  2384   fi
  2385 else
  2386   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2387 $as_echo "$as_me: creating cache $cache_file" >&6;}
  2388   >$cache_file
  2389 fi
  2391 # Check that the precious variables saved in the cache have kept the same
  2392 # value.
  2393 ac_cache_corrupted=false
  2394 for ac_var in $ac_precious_vars; do
  2395   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2396   eval ac_new_set=\$ac_env_${ac_var}_set
  2397   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2398   eval ac_new_val=\$ac_env_${ac_var}_value
  2399   case $ac_old_set,$ac_new_set in
  2400     set,)
  2401       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2402 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2403       ac_cache_corrupted=: ;;
  2404     ,set)
  2405       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2406 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2407       ac_cache_corrupted=: ;;
  2408     ,);;
  2409     *)
  2410       if test "x$ac_old_val" != "x$ac_new_val"; then
  2411 	# differences in whitespace do not lead to failure.
  2412 	ac_old_val_w=`echo x $ac_old_val`
  2413 	ac_new_val_w=`echo x $ac_new_val`
  2414 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2415 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2416 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2417 	  ac_cache_corrupted=:
  2418 	else
  2419 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2420 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2421 	  eval $ac_var=\$ac_old_val
  2422 	fi
  2423 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2424 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2425 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2426 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2427       fi;;
  2428   esac
  2429   # Pass precious variables to config.status.
  2430   if test "$ac_new_set" = set; then
  2431     case $ac_new_val in
  2432     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2433     *) ac_arg=$ac_var=$ac_new_val ;;
  2434     esac
  2435     case " $ac_configure_args " in
  2436       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2437       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2438     esac
  2439   fi
  2440 done
  2441 if $ac_cache_corrupted; then
  2442   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2444   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2445 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2446   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2447 fi
  2448 ## -------------------- ##
  2449 ## Main body of script. ##
  2450 ## -------------------- ##
  2452 ac_ext=c
  2453 ac_cpp='$CPP $CPPFLAGS'
  2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2466 rev=1
  2469 srcroot=$srcdir
  2470 if test "x${srcroot}" = "x." ; then
  2471   srcroot=""
  2472 else
  2473   srcroot="${srcroot}/"
  2474 fi
  2476 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
  2479 objroot=""
  2481 abs_objroot="`pwd`/"
  2484 if test "x$prefix" = "xNONE" ; then
  2485   prefix="/usr/local"
  2486 fi
  2487 if test "x$exec_prefix" = "xNONE" ; then
  2488   exec_prefix=$prefix
  2489 fi
  2490 PREFIX=$prefix
  2492 BINDIR=`eval echo $bindir`
  2493 BINDIR=`eval echo $BINDIR`
  2495 INCLUDEDIR=`eval echo $includedir`
  2496 INCLUDEDIR=`eval echo $INCLUDEDIR`
  2498 LIBDIR=`eval echo $libdir`
  2499 LIBDIR=`eval echo $LIBDIR`
  2501 DATADIR=`eval echo $datadir`
  2502 DATADIR=`eval echo $DATADIR`
  2504 MANDIR=`eval echo $mandir`
  2505 MANDIR=`eval echo $MANDIR`
  2508 # Extract the first word of "xsltproc", so it can be a program name with args.
  2509 set dummy xsltproc; ac_word=$2
  2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511 $as_echo_n "checking for $ac_word... " >&6; }
  2512 if ${ac_cv_path_XSLTPROC+:} false; then :
  2513   $as_echo_n "(cached) " >&6
  2514 else
  2515   case $XSLTPROC in
  2516   [\\/]* | ?:[\\/]*)
  2517   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  2518   ;;
  2519   *)
  2520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2521 for as_dir in $PATH
  2522 do
  2523   IFS=$as_save_IFS
  2524   test -z "$as_dir" && as_dir=.
  2525     for ac_exec_ext in '' $ac_executable_extensions; do
  2526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2527     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  2528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2529     break 2
  2530   fi
  2531 done
  2532   done
  2533 IFS=$as_save_IFS
  2535   ;;
  2536 esac
  2537 fi
  2538 XSLTPROC=$ac_cv_path_XSLTPROC
  2539 if test -n "$XSLTPROC"; then
  2540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  2541 $as_echo "$XSLTPROC" >&6; }
  2542 else
  2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544 $as_echo "no" >&6; }
  2545 fi
  2548 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
  2549   DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
  2550 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
  2551   DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
  2552 else
  2553     DEFAULT_XSLROOT=""
  2554 fi
  2556 # Check whether --with-xslroot was given.
  2557 if test "${with_xslroot+set}" = set; then :
  2558   withval=$with_xslroot;
  2559 if test "x$with_xslroot" = "xno" ; then
  2560   XSLROOT="${DEFAULT_XSLROOT}"
  2561 else
  2562   XSLROOT="${with_xslroot}"
  2563 fi
  2565 else
  2566   XSLROOT="${DEFAULT_XSLROOT}"
  2568 fi
  2572 CFLAGS=$CFLAGS
  2573 ac_ext=c
  2574 ac_cpp='$CPP $CPPFLAGS'
  2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2578 if test -n "$ac_tool_prefix"; then
  2579   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2582 $as_echo_n "checking for $ac_word... " >&6; }
  2583 if ${ac_cv_prog_CC+:} false; then :
  2584   $as_echo_n "(cached) " >&6
  2585 else
  2586   if test -n "$CC"; then
  2587   ac_cv_prog_CC="$CC" # Let the user override the test.
  2588 else
  2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2590 for as_dir in $PATH
  2591 do
  2592   IFS=$as_save_IFS
  2593   test -z "$as_dir" && as_dir=.
  2594     for ac_exec_ext in '' $ac_executable_extensions; do
  2595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2596     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2598     break 2
  2599   fi
  2600 done
  2601   done
  2602 IFS=$as_save_IFS
  2604 fi
  2605 fi
  2606 CC=$ac_cv_prog_CC
  2607 if test -n "$CC"; then
  2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2609 $as_echo "$CC" >&6; }
  2610 else
  2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2612 $as_echo "no" >&6; }
  2613 fi
  2616 fi
  2617 if test -z "$ac_cv_prog_CC"; then
  2618   ac_ct_CC=$CC
  2619   # Extract the first word of "gcc", so it can be a program name with args.
  2620 set dummy gcc; ac_word=$2
  2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2622 $as_echo_n "checking for $ac_word... " >&6; }
  2623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2624   $as_echo_n "(cached) " >&6
  2625 else
  2626   if test -n "$ac_ct_CC"; then
  2627   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2628 else
  2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2630 for as_dir in $PATH
  2631 do
  2632   IFS=$as_save_IFS
  2633   test -z "$as_dir" && as_dir=.
  2634     for ac_exec_ext in '' $ac_executable_extensions; do
  2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2636     ac_cv_prog_ac_ct_CC="gcc"
  2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2638     break 2
  2639   fi
  2640 done
  2641   done
  2642 IFS=$as_save_IFS
  2644 fi
  2645 fi
  2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2647 if test -n "$ac_ct_CC"; then
  2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2649 $as_echo "$ac_ct_CC" >&6; }
  2650 else
  2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652 $as_echo "no" >&6; }
  2653 fi
  2655   if test "x$ac_ct_CC" = x; then
  2656     CC=""
  2657   else
  2658     case $cross_compiling:$ac_tool_warned in
  2659 yes:)
  2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2662 ac_tool_warned=yes ;;
  2663 esac
  2664     CC=$ac_ct_CC
  2665   fi
  2666 else
  2667   CC="$ac_cv_prog_CC"
  2668 fi
  2670 if test -z "$CC"; then
  2671           if test -n "$ac_tool_prefix"; then
  2672     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2675 $as_echo_n "checking for $ac_word... " >&6; }
  2676 if ${ac_cv_prog_CC+:} false; then :
  2677   $as_echo_n "(cached) " >&6
  2678 else
  2679   if test -n "$CC"; then
  2680   ac_cv_prog_CC="$CC" # Let the user override the test.
  2681 else
  2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2683 for as_dir in $PATH
  2684 do
  2685   IFS=$as_save_IFS
  2686   test -z "$as_dir" && as_dir=.
  2687     for ac_exec_ext in '' $ac_executable_extensions; do
  2688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2689     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2691     break 2
  2692   fi
  2693 done
  2694   done
  2695 IFS=$as_save_IFS
  2697 fi
  2698 fi
  2699 CC=$ac_cv_prog_CC
  2700 if test -n "$CC"; then
  2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2702 $as_echo "$CC" >&6; }
  2703 else
  2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705 $as_echo "no" >&6; }
  2706 fi
  2709   fi
  2710 fi
  2711 if test -z "$CC"; then
  2712   # Extract the first word of "cc", so it can be a program name with args.
  2713 set dummy cc; ac_word=$2
  2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2715 $as_echo_n "checking for $ac_word... " >&6; }
  2716 if ${ac_cv_prog_CC+:} false; then :
  2717   $as_echo_n "(cached) " >&6
  2718 else
  2719   if test -n "$CC"; then
  2720   ac_cv_prog_CC="$CC" # Let the user override the test.
  2721 else
  2722   ac_prog_rejected=no
  2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724 for as_dir in $PATH
  2725 do
  2726   IFS=$as_save_IFS
  2727   test -z "$as_dir" && as_dir=.
  2728     for ac_exec_ext in '' $ac_executable_extensions; do
  2729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2731        ac_prog_rejected=yes
  2732        continue
  2733      fi
  2734     ac_cv_prog_CC="cc"
  2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736     break 2
  2737   fi
  2738 done
  2739   done
  2740 IFS=$as_save_IFS
  2742 if test $ac_prog_rejected = yes; then
  2743   # We found a bogon in the path, so make sure we never use it.
  2744   set dummy $ac_cv_prog_CC
  2745   shift
  2746   if test $# != 0; then
  2747     # We chose a different compiler from the bogus one.
  2748     # However, it has the same basename, so the bogon will be chosen
  2749     # first if we set CC to just the basename; use the full file name.
  2750     shift
  2751     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2752   fi
  2753 fi
  2754 fi
  2755 fi
  2756 CC=$ac_cv_prog_CC
  2757 if test -n "$CC"; then
  2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2759 $as_echo "$CC" >&6; }
  2760 else
  2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2762 $as_echo "no" >&6; }
  2763 fi
  2766 fi
  2767 if test -z "$CC"; then
  2768   if test -n "$ac_tool_prefix"; then
  2769   for ac_prog in cl.exe
  2770   do
  2771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774 $as_echo_n "checking for $ac_word... " >&6; }
  2775 if ${ac_cv_prog_CC+:} false; then :
  2776   $as_echo_n "(cached) " >&6
  2777 else
  2778   if test -n "$CC"; then
  2779   ac_cv_prog_CC="$CC" # Let the user override the test.
  2780 else
  2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782 for as_dir in $PATH
  2783 do
  2784   IFS=$as_save_IFS
  2785   test -z "$as_dir" && as_dir=.
  2786     for ac_exec_ext in '' $ac_executable_extensions; do
  2787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790     break 2
  2791   fi
  2792 done
  2793   done
  2794 IFS=$as_save_IFS
  2796 fi
  2797 fi
  2798 CC=$ac_cv_prog_CC
  2799 if test -n "$CC"; then
  2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2801 $as_echo "$CC" >&6; }
  2802 else
  2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804 $as_echo "no" >&6; }
  2805 fi
  2808     test -n "$CC" && break
  2809   done
  2810 fi
  2811 if test -z "$CC"; then
  2812   ac_ct_CC=$CC
  2813   for ac_prog in cl.exe
  2814 do
  2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2816 set dummy $ac_prog; ac_word=$2
  2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2818 $as_echo_n "checking for $ac_word... " >&6; }
  2819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2820   $as_echo_n "(cached) " >&6
  2821 else
  2822   if test -n "$ac_ct_CC"; then
  2823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2824 else
  2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2826 for as_dir in $PATH
  2827 do
  2828   IFS=$as_save_IFS
  2829   test -z "$as_dir" && as_dir=.
  2830     for ac_exec_ext in '' $ac_executable_extensions; do
  2831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2832     ac_cv_prog_ac_ct_CC="$ac_prog"
  2833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2834     break 2
  2835   fi
  2836 done
  2837   done
  2838 IFS=$as_save_IFS
  2840 fi
  2841 fi
  2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2843 if test -n "$ac_ct_CC"; then
  2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2845 $as_echo "$ac_ct_CC" >&6; }
  2846 else
  2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848 $as_echo "no" >&6; }
  2849 fi
  2852   test -n "$ac_ct_CC" && break
  2853 done
  2855   if test "x$ac_ct_CC" = x; then
  2856     CC=""
  2857   else
  2858     case $cross_compiling:$ac_tool_warned in
  2859 yes:)
  2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2862 ac_tool_warned=yes ;;
  2863 esac
  2864     CC=$ac_ct_CC
  2865   fi
  2866 fi
  2868 fi
  2871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873 as_fn_error $? "no acceptable C compiler found in \$PATH
  2874 See \`config.log' for more details" "$LINENO" 5; }
  2876 # Provide some information about the compiler.
  2877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2878 set X $ac_compile
  2879 ac_compiler=$2
  2880 for ac_option in --version -v -V -qversion; do
  2881   { { ac_try="$ac_compiler $ac_option >&5"
  2882 case "(($ac_try" in
  2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2884   *) ac_try_echo=$ac_try;;
  2885 esac
  2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2887 $as_echo "$ac_try_echo"; } >&5
  2888   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2889   ac_status=$?
  2890   if test -s conftest.err; then
  2891     sed '10a\
  2892 ... rest of stderr output deleted ...
  2893          10q' conftest.err >conftest.er1
  2894     cat conftest.er1 >&5
  2895   fi
  2896   rm -f conftest.er1 conftest.err
  2897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2898   test $ac_status = 0; }
  2899 done
  2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902 /* end confdefs.h.  */
  2904 int
  2905 main ()
  2909   return 0;
  2911 _ACEOF
  2912 ac_clean_files_save=$ac_clean_files
  2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2914 # Try to create an executable without -o first, disregard a.out.
  2915 # It will help us diagnose broken compilers, and finding out an intuition
  2916 # of exeext.
  2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2918 $as_echo_n "checking whether the C compiler works... " >&6; }
  2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2921 # The possible output files:
  2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2924 ac_rmfiles=
  2925 for ac_file in $ac_files
  2926 do
  2927   case $ac_file in
  2928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2929     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2930   esac
  2931 done
  2932 rm -f $ac_rmfiles
  2934 if { { ac_try="$ac_link_default"
  2935 case "(($ac_try" in
  2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2937   *) ac_try_echo=$ac_try;;
  2938 esac
  2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2940 $as_echo "$ac_try_echo"; } >&5
  2941   (eval "$ac_link_default") 2>&5
  2942   ac_status=$?
  2943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2944   test $ac_status = 0; }; then :
  2945   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2947 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2948 # so that the user can short-circuit this test for compilers unknown to
  2949 # Autoconf.
  2950 for ac_file in $ac_files ''
  2951 do
  2952   test -f "$ac_file" || continue
  2953   case $ac_file in
  2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2955 	;;
  2956     [ab].out )
  2957 	# We found the default executable, but exeext='' is most
  2958 	# certainly right.
  2959 	break;;
  2960     *.* )
  2961 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2962 	then :; else
  2963 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2964 	fi
  2965 	# We set ac_cv_exeext here because the later test for it is not
  2966 	# safe: cross compilers may not add the suffix if given an `-o'
  2967 	# argument, so we may need to know it at that point already.
  2968 	# Even if this section looks crufty: it has the advantage of
  2969 	# actually working.
  2970 	break;;
  2971     * )
  2972 	break;;
  2973   esac
  2974 done
  2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2977 else
  2978   ac_file=''
  2979 fi
  2980 if test -z "$ac_file"; then :
  2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982 $as_echo "no" >&6; }
  2983 $as_echo "$as_me: failed program was:" >&5
  2984 sed 's/^/| /' conftest.$ac_ext >&5
  2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2988 as_fn_error 77 "C compiler cannot create executables
  2989 See \`config.log' for more details" "$LINENO" 5; }
  2990 else
  2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2992 $as_echo "yes" >&6; }
  2993 fi
  2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2995 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2997 $as_echo "$ac_file" >&6; }
  2998 ac_exeext=$ac_cv_exeext
  3000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3001 ac_clean_files=$ac_clean_files_save
  3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3003 $as_echo_n "checking for suffix of executables... " >&6; }
  3004 if { { ac_try="$ac_link"
  3005 case "(($ac_try" in
  3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007   *) ac_try_echo=$ac_try;;
  3008 esac
  3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010 $as_echo "$ac_try_echo"; } >&5
  3011   (eval "$ac_link") 2>&5
  3012   ac_status=$?
  3013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014   test $ac_status = 0; }; then :
  3015   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3016 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3017 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3018 # `rm'.
  3019 for ac_file in conftest.exe conftest conftest.*; do
  3020   test -f "$ac_file" || continue
  3021   case $ac_file in
  3022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3023     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3024 	  break;;
  3025     * ) break;;
  3026   esac
  3027 done
  3028 else
  3029   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3031 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3032 See \`config.log' for more details" "$LINENO" 5; }
  3033 fi
  3034 rm -f conftest conftest$ac_cv_exeext
  3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3036 $as_echo "$ac_cv_exeext" >&6; }
  3038 rm -f conftest.$ac_ext
  3039 EXEEXT=$ac_cv_exeext
  3040 ac_exeext=$EXEEXT
  3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3042 /* end confdefs.h.  */
  3043 #include <stdio.h>
  3044 int
  3045 main ()
  3047 FILE *f = fopen ("conftest.out", "w");
  3048  return ferror (f) || fclose (f) != 0;
  3051   return 0;
  3053 _ACEOF
  3054 ac_clean_files="$ac_clean_files conftest.out"
  3055 # Check that the compiler produces executables we can run.  If not, either
  3056 # the compiler is broken, or we cross compile.
  3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3058 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3059 if test "$cross_compiling" != yes; then
  3060   { { ac_try="$ac_link"
  3061 case "(($ac_try" in
  3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063   *) ac_try_echo=$ac_try;;
  3064 esac
  3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3066 $as_echo "$ac_try_echo"; } >&5
  3067   (eval "$ac_link") 2>&5
  3068   ac_status=$?
  3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3070   test $ac_status = 0; }
  3071   if { ac_try='./conftest$ac_cv_exeext'
  3072   { { case "(($ac_try" in
  3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074   *) ac_try_echo=$ac_try;;
  3075 esac
  3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077 $as_echo "$ac_try_echo"; } >&5
  3078   (eval "$ac_try") 2>&5
  3079   ac_status=$?
  3080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081   test $ac_status = 0; }; }; then
  3082     cross_compiling=no
  3083   else
  3084     if test "$cross_compiling" = maybe; then
  3085 	cross_compiling=yes
  3086     else
  3087 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3089 as_fn_error $? "cannot run C compiled programs.
  3090 If you meant to cross compile, use \`--host'.
  3091 See \`config.log' for more details" "$LINENO" 5; }
  3092     fi
  3093   fi
  3094 fi
  3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3096 $as_echo "$cross_compiling" >&6; }
  3098 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3099 ac_clean_files=$ac_clean_files_save
  3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3101 $as_echo_n "checking for suffix of object files... " >&6; }
  3102 if ${ac_cv_objext+:} false; then :
  3103   $as_echo_n "(cached) " >&6
  3104 else
  3105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3106 /* end confdefs.h.  */
  3108 int
  3109 main ()
  3113   return 0;
  3115 _ACEOF
  3116 rm -f conftest.o conftest.obj
  3117 if { { ac_try="$ac_compile"
  3118 case "(($ac_try" in
  3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120   *) ac_try_echo=$ac_try;;
  3121 esac
  3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3123 $as_echo "$ac_try_echo"; } >&5
  3124   (eval "$ac_compile") 2>&5
  3125   ac_status=$?
  3126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3127   test $ac_status = 0; }; then :
  3128   for ac_file in conftest.o conftest.obj conftest.*; do
  3129   test -f "$ac_file" || continue;
  3130   case $ac_file in
  3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3133        break;;
  3134   esac
  3135 done
  3136 else
  3137   $as_echo "$as_me: failed program was:" >&5
  3138 sed 's/^/| /' conftest.$ac_ext >&5
  3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142 as_fn_error $? "cannot compute suffix of object files: cannot compile
  3143 See \`config.log' for more details" "$LINENO" 5; }
  3144 fi
  3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3146 fi
  3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3148 $as_echo "$ac_cv_objext" >&6; }
  3149 OBJEXT=$ac_cv_objext
  3150 ac_objext=$OBJEXT
  3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3153 if ${ac_cv_c_compiler_gnu+:} false; then :
  3154   $as_echo_n "(cached) " >&6
  3155 else
  3156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157 /* end confdefs.h.  */
  3159 int
  3160 main ()
  3162 #ifndef __GNUC__
  3163        choke me
  3164 #endif
  3167   return 0;
  3169 _ACEOF
  3170 if ac_fn_c_try_compile "$LINENO"; then :
  3171   ac_compiler_gnu=yes
  3172 else
  3173   ac_compiler_gnu=no
  3174 fi
  3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3178 fi
  3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3181 if test $ac_compiler_gnu = yes; then
  3182   GCC=yes
  3183 else
  3184   GCC=
  3185 fi
  3186 ac_test_CFLAGS=${CFLAGS+set}
  3187 ac_save_CFLAGS=$CFLAGS
  3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3190 if ${ac_cv_prog_cc_g+:} false; then :
  3191   $as_echo_n "(cached) " >&6
  3192 else
  3193   ac_save_c_werror_flag=$ac_c_werror_flag
  3194    ac_c_werror_flag=yes
  3195    ac_cv_prog_cc_g=no
  3196    CFLAGS="-g"
  3197    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198 /* end confdefs.h.  */
  3200 int
  3201 main ()
  3205   return 0;
  3207 _ACEOF
  3208 if ac_fn_c_try_compile "$LINENO"; then :
  3209   ac_cv_prog_cc_g=yes
  3210 else
  3211   CFLAGS=""
  3212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213 /* end confdefs.h.  */
  3215 int
  3216 main ()
  3220   return 0;
  3222 _ACEOF
  3223 if ac_fn_c_try_compile "$LINENO"; then :
  3225 else
  3226   ac_c_werror_flag=$ac_save_c_werror_flag
  3227 	 CFLAGS="-g"
  3228 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3229 /* end confdefs.h.  */
  3231 int
  3232 main ()
  3236   return 0;
  3238 _ACEOF
  3239 if ac_fn_c_try_compile "$LINENO"; then :
  3240   ac_cv_prog_cc_g=yes
  3241 fi
  3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3243 fi
  3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3245 fi
  3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3247    ac_c_werror_flag=$ac_save_c_werror_flag
  3248 fi
  3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3250 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3251 if test "$ac_test_CFLAGS" = set; then
  3252   CFLAGS=$ac_save_CFLAGS
  3253 elif test $ac_cv_prog_cc_g = yes; then
  3254   if test "$GCC" = yes; then
  3255     CFLAGS="-g -O2"
  3256   else
  3257     CFLAGS="-g"
  3258   fi
  3259 else
  3260   if test "$GCC" = yes; then
  3261     CFLAGS="-O2"
  3262   else
  3263     CFLAGS=
  3264   fi
  3265 fi
  3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3268 if ${ac_cv_prog_cc_c89+:} false; then :
  3269   $as_echo_n "(cached) " >&6
  3270 else
  3271   ac_cv_prog_cc_c89=no
  3272 ac_save_CC=$CC
  3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274 /* end confdefs.h.  */
  3275 #include <stdarg.h>
  3276 #include <stdio.h>
  3277 struct stat;
  3278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3279 struct buf { int x; };
  3280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3281 static char *e (p, i)
  3282      char **p;
  3283      int i;
  3285   return p[i];
  3287 static char *f (char * (*g) (char **, int), char **p, ...)
  3289   char *s;
  3290   va_list v;
  3291   va_start (v,p);
  3292   s = g (p, va_arg (v,int));
  3293   va_end (v);
  3294   return s;
  3297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3298    function prototypes and stuff, but not '\xHH' hex character constants.
  3299    These don't provoke an error unfortunately, instead are silently treated
  3300    as 'x'.  The following induces an error, until -std is added to get
  3301    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3302    array size at least.  It's necessary to write '\x00'==0 to get something
  3303    that's true only with -std.  */
  3304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3307    inside strings and character constants.  */
  3308 #define FOO(x) 'x'
  3309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3311 int test (int i, double x);
  3312 struct s1 {int (*f) (int a);};
  3313 struct s2 {int (*f) (double a);};
  3314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3315 int argc;
  3316 char **argv;
  3317 int
  3318 main ()
  3320 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3322   return 0;
  3324 _ACEOF
  3325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3326 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3327 do
  3328   CC="$ac_save_CC $ac_arg"
  3329   if ac_fn_c_try_compile "$LINENO"; then :
  3330   ac_cv_prog_cc_c89=$ac_arg
  3331 fi
  3332 rm -f core conftest.err conftest.$ac_objext
  3333   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3334 done
  3335 rm -f conftest.$ac_ext
  3336 CC=$ac_save_CC
  3338 fi
  3339 # AC_CACHE_VAL
  3340 case "x$ac_cv_prog_cc_c89" in
  3341   x)
  3342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3343 $as_echo "none needed" >&6; } ;;
  3344   xno)
  3345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3346 $as_echo "unsupported" >&6; } ;;
  3347   *)
  3348     CC="$CC $ac_cv_prog_cc_c89"
  3349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3350 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3351 esac
  3352 if test "x$ac_cv_prog_cc_c89" != xno; then :
  3354 fi
  3356 ac_ext=c
  3357 ac_cpp='$CPP $CPPFLAGS'
  3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3362 if test "x$GCC" != "xyes" ; then
  3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
  3365 $as_echo_n "checking whether compiler is MSVC... " >&6; }
  3366 if ${je_cv_msvc+:} false; then :
  3367   $as_echo_n "(cached) " >&6
  3368 else
  3369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370 /* end confdefs.h.  */
  3372 int
  3373 main ()
  3376 #ifndef _MSC_VER
  3377   int fail-1;
  3378 #endif
  3381   return 0;
  3383 _ACEOF
  3384 if ac_fn_c_try_compile "$LINENO"; then :
  3385   je_cv_msvc=yes
  3386 else
  3387   je_cv_msvc=no
  3388 fi
  3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3390 fi
  3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
  3392 $as_echo "$je_cv_msvc" >&6; }
  3393 fi
  3395 if test "x$CFLAGS" = "x" ; then
  3396   no_CFLAGS="yes"
  3397   if test "x$GCC" = "xyes" ; then
  3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
  3400 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
  3401 TCFLAGS="${CFLAGS}"
  3402 if test "x${CFLAGS}" = "x" ; then
  3403   CFLAGS="-std=gnu99"
  3404 else
  3405   CFLAGS="${CFLAGS} -std=gnu99"
  3406 fi
  3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3408 /* end confdefs.h.  */
  3411 int
  3412 main ()
  3415     return 0;
  3418   return 0;
  3420 _ACEOF
  3421 if ac_fn_c_try_compile "$LINENO"; then :
  3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3423 $as_echo "yes" >&6; }
  3424 else
  3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426 $as_echo "no" >&6; }
  3427               CFLAGS="${TCFLAGS}"
  3429 fi
  3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  3434 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
  3435 TCFLAGS="${CFLAGS}"
  3436 if test "x${CFLAGS}" = "x" ; then
  3437   CFLAGS="-Wall"
  3438 else
  3439   CFLAGS="${CFLAGS} -Wall"
  3440 fi
  3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3442 /* end confdefs.h.  */
  3445 int
  3446 main ()
  3449     return 0;
  3452   return 0;
  3454 _ACEOF
  3455 if ac_fn_c_try_compile "$LINENO"; then :
  3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3457 $as_echo "yes" >&6; }
  3458 else
  3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3460 $as_echo "no" >&6; }
  3461               CFLAGS="${TCFLAGS}"
  3463 fi
  3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
  3468 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
  3469 TCFLAGS="${CFLAGS}"
  3470 if test "x${CFLAGS}" = "x" ; then
  3471   CFLAGS="-pipe"
  3472 else
  3473   CFLAGS="${CFLAGS} -pipe"
  3474 fi
  3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3476 /* end confdefs.h.  */
  3479 int
  3480 main ()
  3483     return 0;
  3486   return 0;
  3488 _ACEOF
  3489 if ac_fn_c_try_compile "$LINENO"; then :
  3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3491 $as_echo "yes" >&6; }
  3492 else
  3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494 $as_echo "no" >&6; }
  3495               CFLAGS="${TCFLAGS}"
  3497 fi
  3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  3502 $as_echo_n "checking whether compiler supports -g3... " >&6; }
  3503 TCFLAGS="${CFLAGS}"
  3504 if test "x${CFLAGS}" = "x" ; then
  3505   CFLAGS="-g3"
  3506 else
  3507   CFLAGS="${CFLAGS} -g3"
  3508 fi
  3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3510 /* end confdefs.h.  */
  3513 int
  3514 main ()
  3517     return 0;
  3520   return 0;
  3522 _ACEOF
  3523 if ac_fn_c_try_compile "$LINENO"; then :
  3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3525 $as_echo "yes" >&6; }
  3526 else
  3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3528 $as_echo "no" >&6; }
  3529               CFLAGS="${TCFLAGS}"
  3531 fi
  3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3534   elif test "x$je_cv_msvc" = "xyes" ; then
  3535     CC="$CC -nologo"
  3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
  3538 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
  3539 TCFLAGS="${CFLAGS}"
  3540 if test "x${CFLAGS}" = "x" ; then
  3541   CFLAGS="-Zi"
  3542 else
  3543   CFLAGS="${CFLAGS} -Zi"
  3544 fi
  3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3546 /* end confdefs.h.  */
  3549 int
  3550 main ()
  3553     return 0;
  3556   return 0;
  3558 _ACEOF
  3559 if ac_fn_c_try_compile "$LINENO"; then :
  3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3561 $as_echo "yes" >&6; }
  3562 else
  3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3564 $as_echo "no" >&6; }
  3565               CFLAGS="${TCFLAGS}"
  3567 fi
  3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
  3572 $as_echo_n "checking whether compiler supports -MT... " >&6; }
  3573 TCFLAGS="${CFLAGS}"
  3574 if test "x${CFLAGS}" = "x" ; then
  3575   CFLAGS="-MT"
  3576 else
  3577   CFLAGS="${CFLAGS} -MT"
  3578 fi
  3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3580 /* end confdefs.h.  */
  3583 int
  3584 main ()
  3587     return 0;
  3590   return 0;
  3592 _ACEOF
  3593 if ac_fn_c_try_compile "$LINENO"; then :
  3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3595 $as_echo "yes" >&6; }
  3596 else
  3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3598 $as_echo "no" >&6; }
  3599               CFLAGS="${TCFLAGS}"
  3601 fi
  3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
  3606 $as_echo_n "checking whether compiler supports -W3... " >&6; }
  3607 TCFLAGS="${CFLAGS}"
  3608 if test "x${CFLAGS}" = "x" ; then
  3609   CFLAGS="-W3"
  3610 else
  3611   CFLAGS="${CFLAGS} -W3"
  3612 fi
  3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3614 /* end confdefs.h.  */
  3617 int
  3618 main ()
  3621     return 0;
  3624   return 0;
  3626 _ACEOF
  3627 if ac_fn_c_try_compile "$LINENO"; then :
  3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3629 $as_echo "yes" >&6; }
  3630 else
  3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3632 $as_echo "no" >&6; }
  3633               CFLAGS="${TCFLAGS}"
  3635 fi
  3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638     CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat"
  3639   fi
  3640 fi
  3641 if test "x$EXTRA_CFLAGS" != "x" ; then
  3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5
  3644 $as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; }
  3645 TCFLAGS="${CFLAGS}"
  3646 if test "x${CFLAGS}" = "x" ; then
  3647   CFLAGS="$EXTRA_CFLAGS"
  3648 else
  3649   CFLAGS="${CFLAGS} $EXTRA_CFLAGS"
  3650 fi
  3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3652 /* end confdefs.h.  */
  3655 int
  3656 main ()
  3659     return 0;
  3662   return 0;
  3664 _ACEOF
  3665 if ac_fn_c_try_compile "$LINENO"; then :
  3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3667 $as_echo "yes" >&6; }
  3668 else
  3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670 $as_echo "no" >&6; }
  3671               CFLAGS="${TCFLAGS}"
  3673 fi
  3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3676 fi
  3677 ac_ext=c
  3678 ac_cpp='$CPP $CPPFLAGS'
  3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3683 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3684 # On Suns, sometimes $CPP names a directory.
  3685 if test -n "$CPP" && test -d "$CPP"; then
  3686   CPP=
  3687 fi
  3688 if test -z "$CPP"; then
  3689   if ${ac_cv_prog_CPP+:} false; then :
  3690   $as_echo_n "(cached) " >&6
  3691 else
  3692       # Double quotes because CPP needs to be expanded
  3693     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3694     do
  3695       ac_preproc_ok=false
  3696 for ac_c_preproc_warn_flag in '' yes
  3697 do
  3698   # Use a header file that comes with gcc, so configuring glibc
  3699   # with a fresh cross-compiler works.
  3700   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3701   # <limits.h> exists even on freestanding compilers.
  3702   # On the NeXT, cc -E runs the code through the compiler's parser,
  3703   # not just through cpp. "Syntax error" is here to catch this case.
  3704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3705 /* end confdefs.h.  */
  3706 #ifdef __STDC__
  3707 # include <limits.h>
  3708 #else
  3709 # include <assert.h>
  3710 #endif
  3711 		     Syntax error
  3712 _ACEOF
  3713 if ac_fn_c_try_cpp "$LINENO"; then :
  3715 else
  3716   # Broken: fails on valid input.
  3717 continue
  3718 fi
  3719 rm -f conftest.err conftest.i conftest.$ac_ext
  3721   # OK, works on sane cases.  Now check whether nonexistent headers
  3722   # can be detected and how.
  3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3724 /* end confdefs.h.  */
  3725 #include <ac_nonexistent.h>
  3726 _ACEOF
  3727 if ac_fn_c_try_cpp "$LINENO"; then :
  3728   # Broken: success on invalid input.
  3729 continue
  3730 else
  3731   # Passes both tests.
  3732 ac_preproc_ok=:
  3733 break
  3734 fi
  3735 rm -f conftest.err conftest.i conftest.$ac_ext
  3737 done
  3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3739 rm -f conftest.i conftest.err conftest.$ac_ext
  3740 if $ac_preproc_ok; then :
  3741   break
  3742 fi
  3744     done
  3745     ac_cv_prog_CPP=$CPP
  3747 fi
  3748   CPP=$ac_cv_prog_CPP
  3749 else
  3750   ac_cv_prog_CPP=$CPP
  3751 fi
  3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3753 $as_echo "$CPP" >&6; }
  3754 ac_preproc_ok=false
  3755 for ac_c_preproc_warn_flag in '' yes
  3756 do
  3757   # Use a header file that comes with gcc, so configuring glibc
  3758   # with a fresh cross-compiler works.
  3759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3760   # <limits.h> exists even on freestanding compilers.
  3761   # On the NeXT, cc -E runs the code through the compiler's parser,
  3762   # not just through cpp. "Syntax error" is here to catch this case.
  3763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3764 /* end confdefs.h.  */
  3765 #ifdef __STDC__
  3766 # include <limits.h>
  3767 #else
  3768 # include <assert.h>
  3769 #endif
  3770 		     Syntax error
  3771 _ACEOF
  3772 if ac_fn_c_try_cpp "$LINENO"; then :
  3774 else
  3775   # Broken: fails on valid input.
  3776 continue
  3777 fi
  3778 rm -f conftest.err conftest.i conftest.$ac_ext
  3780   # OK, works on sane cases.  Now check whether nonexistent headers
  3781   # can be detected and how.
  3782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3783 /* end confdefs.h.  */
  3784 #include <ac_nonexistent.h>
  3785 _ACEOF
  3786 if ac_fn_c_try_cpp "$LINENO"; then :
  3787   # Broken: success on invalid input.
  3788 continue
  3789 else
  3790   # Passes both tests.
  3791 ac_preproc_ok=:
  3792 break
  3793 fi
  3794 rm -f conftest.err conftest.i conftest.$ac_ext
  3796 done
  3797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3798 rm -f conftest.i conftest.err conftest.$ac_ext
  3799 if $ac_preproc_ok; then :
  3801 else
  3802   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3804 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3805 See \`config.log' for more details" "$LINENO" 5; }
  3806 fi
  3808 ac_ext=c
  3809 ac_cpp='$CPP $CPPFLAGS'
  3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3817 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3818 if ${ac_cv_path_GREP+:} false; then :
  3819   $as_echo_n "(cached) " >&6
  3820 else
  3821   if test -z "$GREP"; then
  3822   ac_path_GREP_found=false
  3823   # Loop through the user's path and test for each of PROGNAME-LIST
  3824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3826 do
  3827   IFS=$as_save_IFS
  3828   test -z "$as_dir" && as_dir=.
  3829     for ac_prog in grep ggrep; do
  3830     for ac_exec_ext in '' $ac_executable_extensions; do
  3831       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3832       as_fn_executable_p "$ac_path_GREP" || continue
  3833 # Check for GNU ac_path_GREP and select it if it is found.
  3834   # Check for GNU $ac_path_GREP
  3835 case `"$ac_path_GREP" --version 2>&1` in
  3836 *GNU*)
  3837   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3838 *)
  3839   ac_count=0
  3840   $as_echo_n 0123456789 >"conftest.in"
  3841   while :
  3842   do
  3843     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3844     mv "conftest.tmp" "conftest.in"
  3845     cp "conftest.in" "conftest.nl"
  3846     $as_echo 'GREP' >> "conftest.nl"
  3847     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3849     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3850     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3851       # Best one so far, save it but keep looking for a better one
  3852       ac_cv_path_GREP="$ac_path_GREP"
  3853       ac_path_GREP_max=$ac_count
  3854     fi
  3855     # 10*(2^10) chars as input seems more than enough
  3856     test $ac_count -gt 10 && break
  3857   done
  3858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3859 esac
  3861       $ac_path_GREP_found && break 3
  3862     done
  3863   done
  3864   done
  3865 IFS=$as_save_IFS
  3866   if test -z "$ac_cv_path_GREP"; then
  3867     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3868   fi
  3869 else
  3870   ac_cv_path_GREP=$GREP
  3871 fi
  3873 fi
  3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3875 $as_echo "$ac_cv_path_GREP" >&6; }
  3876  GREP="$ac_cv_path_GREP"
  3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3880 $as_echo_n "checking for egrep... " >&6; }
  3881 if ${ac_cv_path_EGREP+:} false; then :
  3882   $as_echo_n "(cached) " >&6
  3883 else
  3884   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3885    then ac_cv_path_EGREP="$GREP -E"
  3886    else
  3887      if test -z "$EGREP"; then
  3888   ac_path_EGREP_found=false
  3889   # Loop through the user's path and test for each of PROGNAME-LIST
  3890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3892 do
  3893   IFS=$as_save_IFS
  3894   test -z "$as_dir" && as_dir=.
  3895     for ac_prog in egrep; do
  3896     for ac_exec_ext in '' $ac_executable_extensions; do
  3897       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3898       as_fn_executable_p "$ac_path_EGREP" || continue
  3899 # Check for GNU ac_path_EGREP and select it if it is found.
  3900   # Check for GNU $ac_path_EGREP
  3901 case `"$ac_path_EGREP" --version 2>&1` in
  3902 *GNU*)
  3903   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3904 *)
  3905   ac_count=0
  3906   $as_echo_n 0123456789 >"conftest.in"
  3907   while :
  3908   do
  3909     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3910     mv "conftest.tmp" "conftest.in"
  3911     cp "conftest.in" "conftest.nl"
  3912     $as_echo 'EGREP' >> "conftest.nl"
  3913     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3915     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3916     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3917       # Best one so far, save it but keep looking for a better one
  3918       ac_cv_path_EGREP="$ac_path_EGREP"
  3919       ac_path_EGREP_max=$ac_count
  3920     fi
  3921     # 10*(2^10) chars as input seems more than enough
  3922     test $ac_count -gt 10 && break
  3923   done
  3924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3925 esac
  3927       $ac_path_EGREP_found && break 3
  3928     done
  3929   done
  3930   done
  3931 IFS=$as_save_IFS
  3932   if test -z "$ac_cv_path_EGREP"; then
  3933     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3934   fi
  3935 else
  3936   ac_cv_path_EGREP=$EGREP
  3937 fi
  3939    fi
  3940 fi
  3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3942 $as_echo "$ac_cv_path_EGREP" >&6; }
  3943  EGREP="$ac_cv_path_EGREP"
  3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3947 $as_echo_n "checking for ANSI C header files... " >&6; }
  3948 if ${ac_cv_header_stdc+:} false; then :
  3949   $as_echo_n "(cached) " >&6
  3950 else
  3951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952 /* end confdefs.h.  */
  3953 #include <stdlib.h>
  3954 #include <stdarg.h>
  3955 #include <string.h>
  3956 #include <float.h>
  3958 int
  3959 main ()
  3963   return 0;
  3965 _ACEOF
  3966 if ac_fn_c_try_compile "$LINENO"; then :
  3967   ac_cv_header_stdc=yes
  3968 else
  3969   ac_cv_header_stdc=no
  3970 fi
  3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3973 if test $ac_cv_header_stdc = yes; then
  3974   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976 /* end confdefs.h.  */
  3977 #include <string.h>
  3979 _ACEOF
  3980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3981   $EGREP "memchr" >/dev/null 2>&1; then :
  3983 else
  3984   ac_cv_header_stdc=no
  3985 fi
  3986 rm -f conftest*
  3988 fi
  3990 if test $ac_cv_header_stdc = yes; then
  3991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3993 /* end confdefs.h.  */
  3994 #include <stdlib.h>
  3996 _ACEOF
  3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3998   $EGREP "free" >/dev/null 2>&1; then :
  4000 else
  4001   ac_cv_header_stdc=no
  4002 fi
  4003 rm -f conftest*
  4005 fi
  4007 if test $ac_cv_header_stdc = yes; then
  4008   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4009   if test "$cross_compiling" = yes; then :
  4011 else
  4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013 /* end confdefs.h.  */
  4014 #include <ctype.h>
  4015 #include <stdlib.h>
  4016 #if ((' ' & 0x0FF) == 0x020)
  4017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4019 #else
  4020 # define ISLOWER(c) \
  4021 		   (('a' <= (c) && (c) <= 'i') \
  4022 		     || ('j' <= (c) && (c) <= 'r') \
  4023 		     || ('s' <= (c) && (c) <= 'z'))
  4024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4025 #endif
  4027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4028 int
  4029 main ()
  4031   int i;
  4032   for (i = 0; i < 256; i++)
  4033     if (XOR (islower (i), ISLOWER (i))
  4034 	|| toupper (i) != TOUPPER (i))
  4035       return 2;
  4036   return 0;
  4038 _ACEOF
  4039 if ac_fn_c_try_run "$LINENO"; then :
  4041 else
  4042   ac_cv_header_stdc=no
  4043 fi
  4044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4045   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4046 fi
  4048 fi
  4049 fi
  4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4051 $as_echo "$ac_cv_header_stdc" >&6; }
  4052 if test $ac_cv_header_stdc = yes; then
  4054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4056 fi
  4058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4060 		  inttypes.h stdint.h unistd.h
  4061 do :
  4062   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4066   cat >>confdefs.h <<_ACEOF
  4067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4068 _ACEOF
  4070 fi
  4072 done
  4075 # The cast to long int works around a bug in the HP C Compiler
  4076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4078 # This bug is HP SR number 8606223364.
  4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  4080 $as_echo_n "checking size of void *... " >&6; }
  4081 if ${ac_cv_sizeof_void_p+:} false; then :
  4082   $as_echo_n "(cached) " >&6
  4083 else
  4084   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
  4086 else
  4087   if test "$ac_cv_type_void_p" = yes; then
  4088      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4090 as_fn_error 77 "cannot compute sizeof (void *)
  4091 See \`config.log' for more details" "$LINENO" 5; }
  4092    else
  4093      ac_cv_sizeof_void_p=0
  4094    fi
  4095 fi
  4097 fi
  4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  4099 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  4103 cat >>confdefs.h <<_ACEOF
  4104 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  4105 _ACEOF
  4108 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
  4109   LG_SIZEOF_PTR=3
  4110 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
  4111   LG_SIZEOF_PTR=2
  4112 else
  4113   as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
  4114 fi
  4115 cat >>confdefs.h <<_ACEOF
  4116 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
  4117 _ACEOF
  4120 # The cast to long int works around a bug in the HP C Compiler
  4121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4123 # This bug is HP SR number 8606223364.
  4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4125 $as_echo_n "checking size of int... " >&6; }
  4126 if ${ac_cv_sizeof_int+:} false; then :
  4127   $as_echo_n "(cached) " >&6
  4128 else
  4129   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
  4131 else
  4132   if test "$ac_cv_type_int" = yes; then
  4133      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4135 as_fn_error 77 "cannot compute sizeof (int)
  4136 See \`config.log' for more details" "$LINENO" 5; }
  4137    else
  4138      ac_cv_sizeof_int=0
  4139    fi
  4140 fi
  4142 fi
  4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4144 $as_echo "$ac_cv_sizeof_int" >&6; }
  4148 cat >>confdefs.h <<_ACEOF
  4149 #define SIZEOF_INT $ac_cv_sizeof_int
  4150 _ACEOF
  4153 if test "x${ac_cv_sizeof_int}" = "x8" ; then
  4154   LG_SIZEOF_INT=3
  4155 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
  4156   LG_SIZEOF_INT=2
  4157 else
  4158   as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
  4159 fi
  4160 cat >>confdefs.h <<_ACEOF
  4161 #define LG_SIZEOF_INT $LG_SIZEOF_INT
  4162 _ACEOF
  4165 # The cast to long int works around a bug in the HP C Compiler
  4166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4168 # This bug is HP SR number 8606223364.
  4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4170 $as_echo_n "checking size of long... " >&6; }
  4171 if ${ac_cv_sizeof_long+:} false; then :
  4172   $as_echo_n "(cached) " >&6
  4173 else
  4174   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
  4176 else
  4177   if test "$ac_cv_type_long" = yes; then
  4178      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4180 as_fn_error 77 "cannot compute sizeof (long)
  4181 See \`config.log' for more details" "$LINENO" 5; }
  4182    else
  4183      ac_cv_sizeof_long=0
  4184    fi
  4185 fi
  4187 fi
  4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4189 $as_echo "$ac_cv_sizeof_long" >&6; }
  4193 cat >>confdefs.h <<_ACEOF
  4194 #define SIZEOF_LONG $ac_cv_sizeof_long
  4195 _ACEOF
  4198 if test "x${ac_cv_sizeof_long}" = "x8" ; then
  4199   LG_SIZEOF_LONG=3
  4200 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
  4201   LG_SIZEOF_LONG=2
  4202 else
  4203   as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
  4204 fi
  4205 cat >>confdefs.h <<_ACEOF
  4206 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
  4207 _ACEOF
  4210 # The cast to long int works around a bug in the HP C Compiler
  4211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4213 # This bug is HP SR number 8606223364.
  4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
  4215 $as_echo_n "checking size of intmax_t... " >&6; }
  4216 if ${ac_cv_sizeof_intmax_t+:} false; then :
  4217   $as_echo_n "(cached) " >&6
  4218 else
  4219   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
  4221 else
  4222   if test "$ac_cv_type_intmax_t" = yes; then
  4223      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4225 as_fn_error 77 "cannot compute sizeof (intmax_t)
  4226 See \`config.log' for more details" "$LINENO" 5; }
  4227    else
  4228      ac_cv_sizeof_intmax_t=0
  4229    fi
  4230 fi
  4232 fi
  4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
  4234 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  4238 cat >>confdefs.h <<_ACEOF
  4239 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  4240 _ACEOF
  4243 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
  4244   LG_SIZEOF_INTMAX_T=4
  4245 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
  4246   LG_SIZEOF_INTMAX_T=3
  4247 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
  4248   LG_SIZEOF_INTMAX_T=2
  4249 else
  4250   as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
  4251 fi
  4252 cat >>confdefs.h <<_ACEOF
  4253 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
  4254 _ACEOF
  4257 ac_aux_dir=
  4258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4259   if test -f "$ac_dir/install-sh"; then
  4260     ac_aux_dir=$ac_dir
  4261     ac_install_sh="$ac_aux_dir/install-sh -c"
  4262     break
  4263   elif test -f "$ac_dir/install.sh"; then
  4264     ac_aux_dir=$ac_dir
  4265     ac_install_sh="$ac_aux_dir/install.sh -c"
  4266     break
  4267   elif test -f "$ac_dir/shtool"; then
  4268     ac_aux_dir=$ac_dir
  4269     ac_install_sh="$ac_aux_dir/shtool install -c"
  4270     break
  4271   fi
  4272 done
  4273 if test -z "$ac_aux_dir"; then
  4274   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4275 fi
  4277 # These three variables are undocumented and unsupported,
  4278 # and are intended to be withdrawn in a future Autoconf release.
  4279 # They can cause serious problems if a builder's source tree is in a directory
  4280 # whose full name contains unusual characters.
  4281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  4282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  4283 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  4286 # Make sure we can run config.sub.
  4287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4288   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4291 $as_echo_n "checking build system type... " >&6; }
  4292 if ${ac_cv_build+:} false; then :
  4293   $as_echo_n "(cached) " >&6
  4294 else
  4295   ac_build_alias=$build_alias
  4296 test "x$ac_build_alias" = x &&
  4297   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4298 test "x$ac_build_alias" = x &&
  4299   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4301   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4303 fi
  4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4305 $as_echo "$ac_cv_build" >&6; }
  4306 case $ac_cv_build in
  4307 *-*-*) ;;
  4308 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4309 esac
  4310 build=$ac_cv_build
  4311 ac_save_IFS=$IFS; IFS='-'
  4312 set x $ac_cv_build
  4313 shift
  4314 build_cpu=$1
  4315 build_vendor=$2
  4316 shift; shift
  4317 # Remember, the first character of IFS is used to create $*,
  4318 # except with old shells:
  4319 build_os=$*
  4320 IFS=$ac_save_IFS
  4321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4325 $as_echo_n "checking host system type... " >&6; }
  4326 if ${ac_cv_host+:} false; then :
  4327   $as_echo_n "(cached) " >&6
  4328 else
  4329   if test "x$host_alias" = x; then
  4330   ac_cv_host=$ac_cv_build
  4331 else
  4332   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4333     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4334 fi
  4336 fi
  4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4338 $as_echo "$ac_cv_host" >&6; }
  4339 case $ac_cv_host in
  4340 *-*-*) ;;
  4341 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4342 esac
  4343 host=$ac_cv_host
  4344 ac_save_IFS=$IFS; IFS='-'
  4345 set x $ac_cv_host
  4346 shift
  4347 host_cpu=$1
  4348 host_vendor=$2
  4349 shift; shift
  4350 # Remember, the first character of IFS is used to create $*,
  4351 # except with old shells:
  4352 host_os=$*
  4353 IFS=$ac_save_IFS
  4354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4357 CPU_SPINWAIT=""
  4358 case "${host_cpu}" in
  4359   i[345]86)
  4360 	;;
  4361   i686)
  4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ is compilable" >&5
  4364 $as_echo_n "checking whether __asm__ is compilable... " >&6; }
  4365 if ${je_cv_asm+:} false; then :
  4366   $as_echo_n "(cached) " >&6
  4367 else
  4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369 /* end confdefs.h.  */
  4371 int
  4372 main ()
  4374 __asm__ volatile("pause"); return 0;
  4376   return 0;
  4378 _ACEOF
  4379 if ac_fn_c_try_link "$LINENO"; then :
  4380   je_cv_asm=yes
  4381 else
  4382   je_cv_asm=no
  4383 fi
  4384 rm -f core conftest.err conftest.$ac_objext \
  4385     conftest$ac_exeext conftest.$ac_ext
  4386 fi
  4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5
  4388 $as_echo "$je_cv_asm" >&6; }
  4390 	if test "x${je_cv_asm}" = "xyes" ; then
  4391 	    CPU_SPINWAIT='__asm__ volatile("pause")'
  4392 	fi
  4393 	;;
  4394   x86_64)
  4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ syntax is compilable" >&5
  4397 $as_echo_n "checking whether __asm__ syntax is compilable... " >&6; }
  4398 if ${je_cv_asm+:} false; then :
  4399   $as_echo_n "(cached) " >&6
  4400 else
  4401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402 /* end confdefs.h.  */
  4404 int
  4405 main ()
  4407 __asm__ volatile("pause"); return 0;
  4409   return 0;
  4411 _ACEOF
  4412 if ac_fn_c_try_link "$LINENO"; then :
  4413   je_cv_asm=yes
  4414 else
  4415   je_cv_asm=no
  4416 fi
  4417 rm -f core conftest.err conftest.$ac_objext \
  4418     conftest$ac_exeext conftest.$ac_ext
  4419 fi
  4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5
  4421 $as_echo "$je_cv_asm" >&6; }
  4423 	if test "x${je_cv_asm}" = "xyes" ; then
  4424 	    CPU_SPINWAIT='__asm__ volatile("pause")'
  4425 	fi
  4426 	;;
  4427   *)
  4428 	;;
  4429 esac
  4430 cat >>confdefs.h <<_ACEOF
  4431 #define CPU_SPINWAIT $CPU_SPINWAIT
  4432 _ACEOF
  4435 LD_PRELOAD_VAR="LD_PRELOAD"
  4436 so="so"
  4437 importlib="${so}"
  4438 o="$ac_objext"
  4439 a="a"
  4440 exe="$ac_exeext"
  4441 libprefix="lib"
  4442 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
  4443 RPATH='-Wl,-rpath,$(1)'
  4444 SOREV="${so}.${rev}"
  4445 PIC_CFLAGS='-fPIC -DPIC'
  4446 CTARGET='-o $@'
  4447 LDTARGET='-o $@'
  4448 EXTRA_LDFLAGS=
  4449 MKLIB='ar crus $@'
  4450 CC_MM=1
  4452 default_munmap="1"
  4453 JEMALLOC_USABLE_SIZE_CONST="const"
  4454 case "${host}" in
  4455   *-*-darwin*)
  4456 	CFLAGS="$CFLAGS"
  4457 	abi="macho"
  4458 	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
  4460 	RPATH=""
  4461 	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
  4462 	so="dylib"
  4463 	importlib="${so}"
  4464 	force_tls="0"
  4465 	DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
  4466 	SOREV="${rev}.${so}"
  4467 	;;
  4468   *-*-freebsd*)
  4469 	CFLAGS="$CFLAGS"
  4470 	abi="elf"
  4471 	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
  4473 	force_lazy_lock="1"
  4474 	;;
  4475   *-*-linux*)
  4476 	CFLAGS="$CFLAGS"
  4477 	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  4478 	abi="elf"
  4479 	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
  4481 	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
  4483 	JEMALLOC_USABLE_SIZE_CONST=""
  4484 	default_munmap="0"
  4485 	;;
  4486   *-*-netbsd*)
  4487 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
  4488 $as_echo_n "checking ABI... " >&6; }
  4489         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490 /* end confdefs.h.  */
  4491 #ifdef __ELF__
  4492 /* ELF */
  4493 #else
  4494 #error aout
  4495 #endif
  4497 int
  4498 main ()
  4502   return 0;
  4504 _ACEOF
  4505 if ac_fn_c_try_compile "$LINENO"; then :
  4506   CFLAGS="$CFLAGS"; abi="elf"
  4507 else
  4508   abi="aout"
  4509 fi
  4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4511 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
  4512 $as_echo "$abi" >&6; }
  4513 	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
  4515 	;;
  4516   *-*-solaris2*)
  4517 	CFLAGS="$CFLAGS"
  4518 	abi="elf"
  4519 	RPATH='-Wl,-R,$(1)'
  4520 		CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
  4521 	LIBS="$LIBS -lposix4 -lsocket -lnsl"
  4522 	;;
  4523   *-ibm-aix*)
  4524 	if "$LG_SIZEOF_PTR" = "8"; then
  4525 	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
  4526 	else
  4527 	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
  4528 	fi
  4529 	abi="xcoff"
  4530 	;;
  4531   *-*-mingw*)
  4532 	abi="pecoff"
  4533 	force_tls="0"
  4534 	RPATH=""
  4535 	so="dll"
  4536 	if test "x$je_cv_msvc" = "xyes" ; then
  4537 	  importlib="lib"
  4538 	  DSO_LDFLAGS="-LD"
  4539 	  EXTRA_LDFLAGS="-link -DEBUG"
  4540 	  CTARGET='-Fo$@'
  4541 	  LDTARGET='-Fe$@'
  4542 	  MKLIB='lib -nologo -out:$@'
  4543 	  CC_MM=
  4544         else
  4545 	  importlib="${so}"
  4546 	  DSO_LDFLAGS="-shared"
  4547 	fi
  4548 	a="lib"
  4549 	libprefix=""
  4550 	SOREV="${so}"
  4551 	PIC_CFLAGS=""
  4552 	;;
  4553   *)
  4554 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
  4555 $as_echo "Unsupported operating system: ${host}" >&6; }
  4556 	abi="elf"
  4557 	;;
  4558 esac
  4559 cat >>confdefs.h <<_ACEOF
  4560 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
  4561 _ACEOF
  4581 if test "x$abi" != "xpecoff"; then
  4582     LIBS="$LIBS -lm"
  4583 fi
  4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
  4587 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
  4588 if ${je_cv_attribute+:} false; then :
  4589   $as_echo_n "(cached) " >&6
  4590 else
  4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4592 /* end confdefs.h.  */
  4593 static __attribute__((unused)) void foo(void){}
  4594 int
  4595 main ()
  4599   return 0;
  4601 _ACEOF
  4602 if ac_fn_c_try_link "$LINENO"; then :
  4603   je_cv_attribute=yes
  4604 else
  4605   je_cv_attribute=no
  4606 fi
  4607 rm -f core conftest.err conftest.$ac_objext \
  4608     conftest$ac_exeext conftest.$ac_ext
  4609 fi
  4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
  4611 $as_echo "$je_cv_attribute" >&6; }
  4613 if test "x${je_cv_attribute}" = "xyes" ; then
  4614   $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
  4616   if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
  4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  4619 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
  4620 TCFLAGS="${CFLAGS}"
  4621 if test "x${CFLAGS}" = "x" ; then
  4622   CFLAGS="-fvisibility=hidden"
  4623 else
  4624   CFLAGS="${CFLAGS} -fvisibility=hidden"
  4625 fi
  4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627 /* end confdefs.h.  */
  4630 int
  4631 main ()
  4634     return 0;
  4637   return 0;
  4639 _ACEOF
  4640 if ac_fn_c_try_compile "$LINENO"; then :
  4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4642 $as_echo "yes" >&6; }
  4643 else
  4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4645 $as_echo "no" >&6; }
  4646               CFLAGS="${TCFLAGS}"
  4648 fi
  4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4651   fi
  4652 fi
  4653 SAVED_CFLAGS="${CFLAGS}"
  4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  4656 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  4657 TCFLAGS="${CFLAGS}"
  4658 if test "x${CFLAGS}" = "x" ; then
  4659   CFLAGS="-Werror"
  4660 else
  4661   CFLAGS="${CFLAGS} -Werror"
  4662 fi
  4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4664 /* end confdefs.h.  */
  4667 int
  4668 main ()
  4671     return 0;
  4674   return 0;
  4676 _ACEOF
  4677 if ac_fn_c_try_compile "$LINENO"; then :
  4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4679 $as_echo "yes" >&6; }
  4680 else
  4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4682 $as_echo "no" >&6; }
  4683               CFLAGS="${TCFLAGS}"
  4685 fi
  4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
  4690 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
  4691 if ${je_cv_tls_model+:} false; then :
  4692   $as_echo_n "(cached) " >&6
  4693 else
  4694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4695 /* end confdefs.h.  */
  4697 int
  4698 main ()
  4700 static __thread int
  4701                __attribute__((tls_model("initial-exec"))) foo;
  4702                foo = 0;
  4704   return 0;
  4706 _ACEOF
  4707 if ac_fn_c_try_link "$LINENO"; then :
  4708   je_cv_tls_model=yes
  4709 else
  4710   je_cv_tls_model=no
  4711 fi
  4712 rm -f core conftest.err conftest.$ac_objext \
  4713     conftest$ac_exeext conftest.$ac_ext
  4714 fi
  4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
  4716 $as_echo "$je_cv_tls_model" >&6; }
  4718 CFLAGS="${SAVED_CFLAGS}"
  4719 if test "x${je_cv_tls_model}" = "xyes" ; then
  4720   $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
  4722 else
  4723   $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
  4725 fi
  4728 # Check whether --with-rpath was given.
  4729 if test "${with_rpath+set}" = set; then :
  4730   withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
  4731   RPATH_EXTRA=
  4732 else
  4733   RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
  4734 fi
  4735 else
  4736   RPATH_EXTRA=
  4738 fi
  4742 # Check whether --enable-autogen was given.
  4743 if test "${enable_autogen+set}" = set; then :
  4744   enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
  4745   enable_autogen="0"
  4746 else
  4747   enable_autogen="1"
  4748 fi
  4750 else
  4751   enable_autogen="0"
  4753 fi
  4757 # Find a good install program.  We prefer a C program (faster),
  4758 # so one script is as good as another.  But avoid the broken or
  4759 # incompatible versions:
  4760 # SysV /etc/install, /usr/sbin/install
  4761 # SunOS /usr/etc/install
  4762 # IRIX /sbin/install
  4763 # AIX /bin/install
  4764 # AmigaOS /C/install, which installs bootblocks on floppy discs
  4765 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4766 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4767 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4768 # OS/2's system install, which has a completely different semantic
  4769 # ./install, which can be erroneously created by make from ./install.sh.
  4770 # Reject install programs that cannot install multiple files.
  4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4772 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4773 if test -z "$INSTALL"; then
  4774 if ${ac_cv_path_install+:} false; then :
  4775   $as_echo_n "(cached) " >&6
  4776 else
  4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4778 for as_dir in $PATH
  4779 do
  4780   IFS=$as_save_IFS
  4781   test -z "$as_dir" && as_dir=.
  4782     # Account for people who put trailing slashes in PATH elements.
  4783 case $as_dir/ in #((
  4784   ./ | .// | /[cC]/* | \
  4785   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4786   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4787   /usr/ucb/* ) ;;
  4788   *)
  4789     # OSF1 and SCO ODT 3.0 have their own names for install.
  4790     # Don't use installbsd from OSF since it installs stuff as root
  4791     # by default.
  4792     for ac_prog in ginstall scoinst install; do
  4793       for ac_exec_ext in '' $ac_executable_extensions; do
  4794 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4795 	  if test $ac_prog = install &&
  4796 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4797 	    # AIX install.  It has an incompatible calling convention.
  4799 	  elif test $ac_prog = install &&
  4800 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4801 	    # program-specific install script used by HP pwplus--don't use.
  4803 	  else
  4804 	    rm -rf conftest.one conftest.two conftest.dir
  4805 	    echo one > conftest.one
  4806 	    echo two > conftest.two
  4807 	    mkdir conftest.dir
  4808 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4809 	      test -s conftest.one && test -s conftest.two &&
  4810 	      test -s conftest.dir/conftest.one &&
  4811 	      test -s conftest.dir/conftest.two
  4812 	    then
  4813 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4814 	      break 3
  4815 	    fi
  4816 	  fi
  4817 	fi
  4818       done
  4819     done
  4820     ;;
  4821 esac
  4823   done
  4824 IFS=$as_save_IFS
  4826 rm -rf conftest.one conftest.two conftest.dir
  4828 fi
  4829   if test "${ac_cv_path_install+set}" = set; then
  4830     INSTALL=$ac_cv_path_install
  4831   else
  4832     # As a last resort, use the slow shell script.  Don't cache a
  4833     # value for INSTALL within a source directory, because that will
  4834     # break other packages using the cache if that directory is
  4835     # removed, or if the value is a relative name.
  4836     INSTALL=$ac_install_sh
  4837   fi
  4838 fi
  4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4840 $as_echo "$INSTALL" >&6; }
  4842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4843 # It thinks the first close brace ends the variable substitution.
  4844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4850 if test -n "$ac_tool_prefix"; then
  4851   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4854 $as_echo_n "checking for $ac_word... " >&6; }
  4855 if ${ac_cv_prog_RANLIB+:} false; then :
  4856   $as_echo_n "(cached) " >&6
  4857 else
  4858   if test -n "$RANLIB"; then
  4859   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4860 else
  4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4862 for as_dir in $PATH
  4863 do
  4864   IFS=$as_save_IFS
  4865   test -z "$as_dir" && as_dir=.
  4866     for ac_exec_ext in '' $ac_executable_extensions; do
  4867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4870     break 2
  4871   fi
  4872 done
  4873   done
  4874 IFS=$as_save_IFS
  4876 fi
  4877 fi
  4878 RANLIB=$ac_cv_prog_RANLIB
  4879 if test -n "$RANLIB"; then
  4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4881 $as_echo "$RANLIB" >&6; }
  4882 else
  4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4884 $as_echo "no" >&6; }
  4885 fi
  4888 fi
  4889 if test -z "$ac_cv_prog_RANLIB"; then
  4890   ac_ct_RANLIB=$RANLIB
  4891   # Extract the first word of "ranlib", so it can be a program name with args.
  4892 set dummy ranlib; ac_word=$2
  4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894 $as_echo_n "checking for $ac_word... " >&6; }
  4895 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4896   $as_echo_n "(cached) " >&6
  4897 else
  4898   if test -n "$ac_ct_RANLIB"; then
  4899   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4900 else
  4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902 for as_dir in $PATH
  4903 do
  4904   IFS=$as_save_IFS
  4905   test -z "$as_dir" && as_dir=.
  4906     for ac_exec_ext in '' $ac_executable_extensions; do
  4907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4908     ac_cv_prog_ac_ct_RANLIB="ranlib"
  4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910     break 2
  4911   fi
  4912 done
  4913   done
  4914 IFS=$as_save_IFS
  4916 fi
  4917 fi
  4918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4919 if test -n "$ac_ct_RANLIB"; then
  4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4921 $as_echo "$ac_ct_RANLIB" >&6; }
  4922 else
  4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924 $as_echo "no" >&6; }
  4925 fi
  4927   if test "x$ac_ct_RANLIB" = x; then
  4928     RANLIB=":"
  4929   else
  4930     case $cross_compiling:$ac_tool_warned in
  4931 yes:)
  4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4934 ac_tool_warned=yes ;;
  4935 esac
  4936     RANLIB=$ac_ct_RANLIB
  4937   fi
  4938 else
  4939   RANLIB="$ac_cv_prog_RANLIB"
  4940 fi
  4942 # Extract the first word of "ar", so it can be a program name with args.
  4943 set dummy ar; ac_word=$2
  4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4945 $as_echo_n "checking for $ac_word... " >&6; }
  4946 if ${ac_cv_path_AR+:} false; then :
  4947   $as_echo_n "(cached) " >&6
  4948 else
  4949   case $AR in
  4950   [\\/]* | ?:[\\/]*)
  4951   ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4952   ;;
  4953   *)
  4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955 for as_dir in $PATH
  4956 do
  4957   IFS=$as_save_IFS
  4958   test -z "$as_dir" && as_dir=.
  4959     for ac_exec_ext in '' $ac_executable_extensions; do
  4960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4961     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963     break 2
  4964   fi
  4965 done
  4966   done
  4967 IFS=$as_save_IFS
  4969   ;;
  4970 esac
  4971 fi
  4972 AR=$ac_cv_path_AR
  4973 if test -n "$AR"; then
  4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4975 $as_echo "$AR" >&6; }
  4976 else
  4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4978 $as_echo "no" >&6; }
  4979 fi
  4982 # Extract the first word of "ld", so it can be a program name with args.
  4983 set dummy ld; ac_word=$2
  4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4985 $as_echo_n "checking for $ac_word... " >&6; }
  4986 if ${ac_cv_path_LD+:} false; then :
  4987   $as_echo_n "(cached) " >&6
  4988 else
  4989   case $LD in
  4990   [\\/]* | ?:[\\/]*)
  4991   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  4992   ;;
  4993   *)
  4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995 for as_dir in $PATH
  4996 do
  4997   IFS=$as_save_IFS
  4998   test -z "$as_dir" && as_dir=.
  4999     for ac_exec_ext in '' $ac_executable_extensions; do
  5000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5001     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  5002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5003     break 2
  5004   fi
  5005 done
  5006   done
  5007 IFS=$as_save_IFS
  5009   ;;
  5010 esac
  5011 fi
  5012 LD=$ac_cv_path_LD
  5013 if test -n "$LD"; then
  5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5015 $as_echo "$LD" >&6; }
  5016 else
  5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5018 $as_echo "no" >&6; }
  5019 fi
  5022 # Extract the first word of "autoconf", so it can be a program name with args.
  5023 set dummy autoconf; ac_word=$2
  5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5025 $as_echo_n "checking for $ac_word... " >&6; }
  5026 if ${ac_cv_path_AUTOCONF+:} false; then :
  5027   $as_echo_n "(cached) " >&6
  5028 else
  5029   case $AUTOCONF in
  5030   [\\/]* | ?:[\\/]*)
  5031   ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
  5032   ;;
  5033   *)
  5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5035 for as_dir in $PATH
  5036 do
  5037   IFS=$as_save_IFS
  5038   test -z "$as_dir" && as_dir=.
  5039     for ac_exec_ext in '' $ac_executable_extensions; do
  5040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5041     ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
  5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5043     break 2
  5044   fi
  5045 done
  5046   done
  5047 IFS=$as_save_IFS
  5049   ;;
  5050 esac
  5051 fi
  5052 AUTOCONF=$ac_cv_path_AUTOCONF
  5053 if test -n "$AUTOCONF"; then
  5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  5055 $as_echo "$AUTOCONF" >&6; }
  5056 else
  5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058 $as_echo "no" >&6; }
  5059 fi
  5063 public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free malloc_usable_size malloc_stats_print mallctl mallctlnametomib mallctlbymib"
  5065 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
  5066 if test "x$ac_cv_func_memalign" = xyes; then :
  5067   $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
  5069 	       public_syms="${public_syms} memalign"
  5070 fi
  5072 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
  5073 if test "x$ac_cv_func_valloc" = xyes; then :
  5074   $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
  5076 	       public_syms="${public_syms} valloc"
  5077 fi
  5080 # Check whether --enable-experimental was given.
  5081 if test "${enable_experimental+set}" = set; then :
  5082   enableval=$enable_experimental; if test "x$enable_experimental" = "xno" ; then
  5083   enable_experimental="0"
  5084 else
  5085   enable_experimental="1"
  5086 fi
  5088 else
  5089   enable_experimental="1"
  5091 fi
  5093 if test "x$enable_experimental" = "x1" ; then
  5094   $as_echo "#define JEMALLOC_EXPERIMENTAL  " >>confdefs.h
  5096   public_syms="${public_syms} allocm dallocm nallocm rallocm sallocm"
  5097 fi
  5101 # Check whether --with-mangling was given.
  5102 if test "${with_mangling+set}" = set; then :
  5103   withval=$with_mangling; mangling_map="$with_mangling"
  5104 else
  5105   mangling_map=""
  5106 fi
  5108 for nm in `echo ${mangling_map} |tr ',' ' '` ; do
  5109   k="`echo ${nm} |tr ':' ' ' |awk '{print $1}'`"
  5110   n="je_${k}"
  5111   m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
  5112   cat >>confdefs.h <<_ACEOF
  5113 #define ${n} ${m}
  5114 _ACEOF
  5116     public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${k}\$" |tr '\n' ' '`
  5117 done
  5120 # Check whether --with-jemalloc_prefix was given.
  5121 if test "${with_jemalloc_prefix+set}" = set; then :
  5122   withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
  5123 else
  5124   if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
  5125   JEMALLOC_PREFIX=""
  5126 else
  5127   JEMALLOC_PREFIX="je_"
  5128 fi
  5130 fi
  5132 if test "x$JEMALLOC_PREFIX" != "x" ; then
  5133   JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
  5134   cat >>confdefs.h <<_ACEOF
  5135 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
  5136 _ACEOF
  5138   cat >>confdefs.h <<_ACEOF
  5139 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
  5140 _ACEOF
  5142 fi
  5143 for stem in ${public_syms}; do
  5144   n="je_${stem}"
  5145   m="${JEMALLOC_PREFIX}${stem}"
  5146   cat >>confdefs.h <<_ACEOF
  5147 #define ${n} ${m}
  5148 _ACEOF
  5150 done
  5153 # Check whether --with-export was given.
  5154 if test "${with_export+set}" = set; then :
  5155   withval=$with_export; if test "x$with_export" = "xno"; then
  5156   $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
  5158 fi
  5160 fi
  5164 # Check whether --with-private_namespace was given.
  5165 if test "${with_private_namespace+set}" = set; then :
  5166   withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="$with_private_namespace"
  5167 else
  5168   JEMALLOC_PRIVATE_NAMESPACE=""
  5170 fi
  5172 cat >>confdefs.h <<_ACEOF
  5173 #define JEMALLOC_PRIVATE_NAMESPACE "$JEMALLOC_PRIVATE_NAMESPACE"
  5174 _ACEOF
  5176 if test "x$JEMALLOC_PRIVATE_NAMESPACE" != "x" ; then
  5177   cat >>confdefs.h <<_ACEOF
  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
  5179 _ACEOF
  5181 else
  5182   cat >>confdefs.h <<_ACEOF
  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
  5184 _ACEOF
  5186 fi
  5189 # Check whether --with-install_suffix was given.
  5190 if test "${with_install_suffix+set}" = set; then :
  5191   withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
  5192 else
  5193   INSTALL_SUFFIX=
  5195 fi
  5197 install_suffix="$INSTALL_SUFFIX"
  5200 cfgoutputs_in="${srcroot}Makefile.in"
  5201 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in"
  5202 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in"
  5203 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in"
  5204 cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc.h.in"
  5205 cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in"
  5206 cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/jemalloc_test.h.in"
  5208 cfgoutputs_out="Makefile"
  5209 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
  5210 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
  5211 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc${install_suffix}.xml"
  5212 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h"
  5213 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
  5214 cfgoutputs_out="${cfgoutputs_out} test/jemalloc_test.h"
  5216 cfgoutputs_tup="Makefile"
  5217 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
  5218 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
  5219 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc${install_suffix}.xml:doc/jemalloc.xml.in"
  5220 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in"
  5221 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
  5222 cfgoutputs_tup="${cfgoutputs_tup} test/jemalloc_test.h:test/jemalloc_test.h.in"
  5224 cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in"
  5225 cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/size_classes.sh"
  5227 cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h"
  5228 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
  5230 cfghdrs_tup="include/jemalloc/jemalloc_defs${install_suffix}.h:include/jemalloc/jemalloc_defs.h.in"
  5232 # Check whether --enable-cc-silence was given.
  5233 if test "${enable_cc_silence+set}" = set; then :
  5234   enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
  5235   enable_cc_silence="0"
  5236 else
  5237   enable_cc_silence="1"
  5238 fi
  5240 else
  5241   enable_cc_silence="0"
  5243 fi
  5245 if test "x$enable_cc_silence" = "x1" ; then
  5246   $as_echo "#define JEMALLOC_CC_SILENCE  " >>confdefs.h
  5248 fi
  5250 # Check whether --enable-debug was given.
  5251 if test "${enable_debug+set}" = set; then :
  5252   enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
  5253   enable_debug="0"
  5254 else
  5255   enable_debug="1"
  5256 fi
  5258 else
  5259   enable_debug="0"
  5261 fi
  5263 if test "x$enable_debug" = "x1" ; then
  5264   $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
  5266   $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
  5268 fi
  5271 if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
  5272     optimize="no"
  5273   echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes"
  5274   if test "x${optimize}" = "xyes" ; then
  5275     if test "x$GCC" = "xyes" ; then
  5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  5278 $as_echo_n "checking whether compiler supports -O3... " >&6; }
  5279 TCFLAGS="${CFLAGS}"
  5280 if test "x${CFLAGS}" = "x" ; then
  5281   CFLAGS="-O3"
  5282 else
  5283   CFLAGS="${CFLAGS} -O3"
  5284 fi
  5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5286 /* end confdefs.h.  */
  5289 int
  5290 main ()
  5293     return 0;
  5296   return 0;
  5298 _ACEOF
  5299 if ac_fn_c_try_compile "$LINENO"; then :
  5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5301 $as_echo "yes" >&6; }
  5302 else
  5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5304 $as_echo "no" >&6; }
  5305               CFLAGS="${TCFLAGS}"
  5307 fi
  5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
  5312 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
  5313 TCFLAGS="${CFLAGS}"
  5314 if test "x${CFLAGS}" = "x" ; then
  5315   CFLAGS="-funroll-loops"
  5316 else
  5317   CFLAGS="${CFLAGS} -funroll-loops"
  5318 fi
  5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5320 /* end confdefs.h.  */
  5323 int
  5324 main ()
  5327     return 0;
  5330   return 0;
  5332 _ACEOF
  5333 if ac_fn_c_try_compile "$LINENO"; then :
  5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5335 $as_echo "yes" >&6; }
  5336 else
  5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5338 $as_echo "no" >&6; }
  5339               CFLAGS="${TCFLAGS}"
  5341 fi
  5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5344     elif test "x$je_cv_msvc" = "xyes" ; then
  5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  5347 $as_echo_n "checking whether compiler supports -O2... " >&6; }
  5348 TCFLAGS="${CFLAGS}"
  5349 if test "x${CFLAGS}" = "x" ; then
  5350   CFLAGS="-O2"
  5351 else
  5352   CFLAGS="${CFLAGS} -O2"
  5353 fi
  5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355 /* end confdefs.h.  */
  5358 int
  5359 main ()
  5362     return 0;
  5365   return 0;
  5367 _ACEOF
  5368 if ac_fn_c_try_compile "$LINENO"; then :
  5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5370 $as_echo "yes" >&6; }
  5371 else
  5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5373 $as_echo "no" >&6; }
  5374               CFLAGS="${TCFLAGS}"
  5376 fi
  5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5379     else
  5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  5382 $as_echo_n "checking whether compiler supports -O... " >&6; }
  5383 TCFLAGS="${CFLAGS}"
  5384 if test "x${CFLAGS}" = "x" ; then
  5385   CFLAGS="-O"
  5386 else
  5387   CFLAGS="${CFLAGS} -O"
  5388 fi
  5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5390 /* end confdefs.h.  */
  5393 int
  5394 main ()
  5397     return 0;
  5400   return 0;
  5402 _ACEOF
  5403 if ac_fn_c_try_compile "$LINENO"; then :
  5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5405 $as_echo "yes" >&6; }
  5406 else
  5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408 $as_echo "no" >&6; }
  5409               CFLAGS="${TCFLAGS}"
  5411 fi
  5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5414     fi
  5415   fi
  5416 fi
  5418 # Check whether --enable-stats was given.
  5419 if test "${enable_stats+set}" = set; then :
  5420   enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
  5421   enable_stats="0"
  5422 else
  5423   enable_stats="1"
  5424 fi
  5426 else
  5427   enable_stats="1"
  5429 fi
  5431 if test "x$enable_stats" = "x1" ; then
  5432   $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
  5434 fi
  5437 # Check whether --enable-prof was given.
  5438 if test "${enable_prof+set}" = set; then :
  5439   enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
  5440   enable_prof="0"
  5441 else
  5442   enable_prof="1"
  5443 fi
  5445 else
  5446   enable_prof="0"
  5448 fi
  5450 if test "x$enable_prof" = "x1" ; then
  5451   backtrace_method=""
  5452 else
  5453   backtrace_method="N/A"
  5454 fi
  5456 # Check whether --enable-prof-libunwind was given.
  5457 if test "${enable_prof_libunwind+set}" = set; then :
  5458   enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
  5459   enable_prof_libunwind="0"
  5460 else
  5461   enable_prof_libunwind="1"
  5462 fi
  5464 else
  5465   enable_prof_libunwind="0"
  5467 fi
  5470 # Check whether --with-static_libunwind was given.
  5471 if test "${with_static_libunwind+set}" = set; then :
  5472   withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
  5473   LUNWIND="-lunwind"
  5474 else
  5475   if test ! -f "$with_static_libunwind" ; then
  5476     as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
  5477   fi
  5478   LUNWIND="$with_static_libunwind"
  5479 fi
  5480 else
  5481   LUNWIND="-lunwind"
  5483 fi
  5485 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
  5486   for ac_header in libunwind.h
  5487 do :
  5488   ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  5489 if test "x$ac_cv_header_libunwind_h" = xyes; then :
  5490   cat >>confdefs.h <<_ACEOF
  5491 #define HAVE_LIBUNWIND_H 1
  5492 _ACEOF
  5494 else
  5495   enable_prof_libunwind="0"
  5496 fi
  5498 done
  5500   if test "x$LUNWIND" = "x-lunwind" ; then
  5501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  5502 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  5503 if ${ac_cv_lib_unwind_backtrace+:} false; then :
  5504   $as_echo_n "(cached) " >&6
  5505 else
  5506   ac_check_lib_save_LIBS=$LIBS
  5507 LIBS="-lunwind  $LIBS"
  5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5509 /* end confdefs.h.  */
  5511 /* Override any GCC internal prototype to avoid an error.
  5512    Use char because int might match the return type of a GCC
  5513    builtin and then its argument prototype would still apply.  */
  5514 #ifdef __cplusplus
  5515 extern "C"
  5516 #endif
  5517 char backtrace ();
  5518 int
  5519 main ()
  5521 return backtrace ();
  5523   return 0;
  5525 _ACEOF
  5526 if ac_fn_c_try_link "$LINENO"; then :
  5527   ac_cv_lib_unwind_backtrace=yes
  5528 else
  5529   ac_cv_lib_unwind_backtrace=no
  5530 fi
  5531 rm -f core conftest.err conftest.$ac_objext \
  5532     conftest$ac_exeext conftest.$ac_ext
  5533 LIBS=$ac_check_lib_save_LIBS
  5534 fi
  5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  5536 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  5537 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
  5538   LIBS="$LIBS $LUNWIND"
  5539 else
  5540   enable_prof_libunwind="0"
  5541 fi
  5543   else
  5544     LIBS="$LIBS $LUNWIND"
  5545   fi
  5546   if test "x${enable_prof_libunwind}" = "x1" ; then
  5547     backtrace_method="libunwind"
  5548     $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
  5550   fi
  5551 fi
  5553 # Check whether --enable-prof-libgcc was given.
  5554 if test "${enable_prof_libgcc+set}" = set; then :
  5555   enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
  5556   enable_prof_libgcc="0"
  5557 else
  5558   enable_prof_libgcc="1"
  5559 fi
  5561 else
  5562   enable_prof_libgcc="1"
  5564 fi
  5566 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
  5567      -a "x$GCC" = "xyes" ; then
  5568   for ac_header in unwind.h
  5569 do :
  5570   ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  5571 if test "x$ac_cv_header_unwind_h" = xyes; then :
  5572   cat >>confdefs.h <<_ACEOF
  5573 #define HAVE_UNWIND_H 1
  5574 _ACEOF
  5576 else
  5577   enable_prof_libgcc="0"
  5578 fi
  5580 done
  5582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
  5583 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
  5584 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
  5585   $as_echo_n "(cached) " >&6
  5586 else
  5587   ac_check_lib_save_LIBS=$LIBS
  5588 LIBS="-lgcc  $LIBS"
  5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5590 /* end confdefs.h.  */
  5592 /* Override any GCC internal prototype to avoid an error.
  5593    Use char because int might match the return type of a GCC
  5594    builtin and then its argument prototype would still apply.  */
  5595 #ifdef __cplusplus
  5596 extern "C"
  5597 #endif
  5598 char _Unwind_Backtrace ();
  5599 int
  5600 main ()
  5602 return _Unwind_Backtrace ();
  5604   return 0;
  5606 _ACEOF
  5607 if ac_fn_c_try_link "$LINENO"; then :
  5608   ac_cv_lib_gcc__Unwind_Backtrace=yes
  5609 else
  5610   ac_cv_lib_gcc__Unwind_Backtrace=no
  5611 fi
  5612 rm -f core conftest.err conftest.$ac_objext \
  5613     conftest$ac_exeext conftest.$ac_ext
  5614 LIBS=$ac_check_lib_save_LIBS
  5615 fi
  5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
  5617 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
  5618 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
  5619   LIBS="$LIBS -lgcc"
  5620 else
  5621   enable_prof_libgcc="0"
  5622 fi
  5624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcc-based backtracing reliability on ${host_cpu}" >&5
  5625 $as_echo_n "checking libgcc-based backtracing reliability on ${host_cpu}... " >&6; }
  5626   case "${host_cpu}" in
  5627     i[3456]86)
  5628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
  5629 $as_echo "unreliable" >&6; }
  5630       enable_prof_libgcc="0";
  5631       ;;
  5632     x86_64)
  5633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: reliable" >&5
  5634 $as_echo "reliable" >&6; }
  5635       ;;
  5636     *)
  5637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
  5638 $as_echo "unreliable" >&6; }
  5639       enable_prof_libgcc="0";
  5640       ;;
  5641   esac
  5642   if test "x${enable_prof_libgcc}" = "x1" ; then
  5643     backtrace_method="libgcc"
  5644     $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
  5646   fi
  5647 else
  5648   enable_prof_libgcc="0"
  5649 fi
  5651 # Check whether --enable-prof-gcc was given.
  5652 if test "${enable_prof_gcc+set}" = set; then :
  5653   enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
  5654   enable_prof_gcc="0"
  5655 else
  5656   enable_prof_gcc="1"
  5657 fi
  5659 else
  5660   enable_prof_gcc="1"
  5662 fi
  5664 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
  5665      -a "x$GCC" = "xyes" ; then
  5666   backtrace_method="gcc intrinsics"
  5667   $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
  5669 else
  5670   enable_prof_gcc="0"
  5671 fi
  5673 if test "x$backtrace_method" = "x" ; then
  5674   backtrace_method="none (disabling profiling)"
  5675   enable_prof="0"
  5676 fi
  5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
  5678 $as_echo_n "checking configured backtracing method... " >&6; }
  5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
  5680 $as_echo "$backtrace_method" >&6; }
  5681 if test "x$enable_prof" = "x1" ; then
  5682   if test "x${force_tls}" = "x0" ; then
  5683     as_fn_error $? "Heap profiling requires TLS" "$LINENO" 5;
  5684   fi
  5685   force_tls="1"
  5686   $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
  5688 fi
  5691 # Check whether --enable-tcache was given.
  5692 if test "${enable_tcache+set}" = set; then :
  5693   enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
  5694   enable_tcache="0"
  5695 else
  5696   enable_tcache="1"
  5697 fi
  5699 else
  5700   enable_tcache="1"
  5702 fi
  5704 if test "x$enable_tcache" = "x1" ; then
  5705   $as_echo "#define JEMALLOC_TCACHE  " >>confdefs.h
  5707 fi
  5710 # Check whether --enable-mremap was given.
  5711 if test "${enable_mremap+set}" = set; then :
  5712   enableval=$enable_mremap; if test "x$enable_mremap" = "xno" ; then
  5713   enable_mremap="0"
  5714 else
  5715   enable_mremap="1"
  5716 fi
  5718 else
  5719   enable_mremap="0"
  5721 fi
  5723 if test "x$enable_mremap" = "x1" ; then
  5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mremap(...MREMAP_FIXED...) is compilable" >&5
  5726 $as_echo_n "checking whether mremap(...MREMAP_FIXED...) is compilable... " >&6; }
  5727 if ${je_cv_mremap_fixed+:} false; then :
  5728   $as_echo_n "(cached) " >&6
  5729 else
  5730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5731 /* end confdefs.h.  */
  5733 #define _GNU_SOURCE
  5734 #include <sys/mman.h>
  5736 int
  5737 main ()
  5740 void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0);
  5743   return 0;
  5745 _ACEOF
  5746 if ac_fn_c_try_link "$LINENO"; then :
  5747   je_cv_mremap_fixed=yes
  5748 else
  5749   je_cv_mremap_fixed=no
  5750 fi
  5751 rm -f core conftest.err conftest.$ac_objext \
  5752     conftest$ac_exeext conftest.$ac_ext
  5753 fi
  5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mremap_fixed" >&5
  5755 $as_echo "$je_cv_mremap_fixed" >&6; }
  5757   if test "x${je_cv_mremap_fixed}" = "xno" ; then
  5758     enable_mremap="0"
  5759   fi
  5760 fi
  5761 if test "x$enable_mremap" = "x1" ; then
  5762   $as_echo "#define JEMALLOC_MREMAP  " >>confdefs.h
  5764 fi
  5767 # Check whether --enable-munmap was given.
  5768 if test "${enable_munmap+set}" = set; then :
  5769   enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then
  5770   enable_munmap="0"
  5771 else
  5772   enable_munmap="1"
  5773 fi
  5775 else
  5776   enable_munmap="${default_munmap}"
  5778 fi
  5780 if test "x$enable_munmap" = "x1" ; then
  5781   $as_echo "#define JEMALLOC_MUNMAP  " >>confdefs.h
  5783 fi
  5786 # Check whether --enable-dss was given.
  5787 if test "${enable_dss+set}" = set; then :
  5788   enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then
  5789   enable_dss="0"
  5790 else
  5791   enable_dss="1"
  5792 fi
  5794 else
  5795   enable_dss="0"
  5797 fi
  5799 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  5800 if test "x$ac_cv_func_sbrk" = xyes; then :
  5801   have_sbrk="1"
  5802 else
  5803   have_sbrk="0"
  5804 fi
  5806 if test "x$have_sbrk" = "x1" ; then
  5807   $as_echo "#define JEMALLOC_HAVE_SBRK  " >>confdefs.h
  5809 else
  5810   enable_dss="0"
  5811 fi
  5813 if test "x$enable_dss" = "x1" ; then
  5814   $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
  5816 fi
  5819 # Check whether --enable-fill was given.
  5820 if test "${enable_fill+set}" = set; then :
  5821   enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
  5822   enable_fill="0"
  5823 else
  5824   enable_fill="1"
  5825 fi
  5827 else
  5828   enable_fill="1"
  5830 fi
  5832 if test "x$enable_fill" = "x1" ; then
  5833   $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
  5835 fi
  5838 # Check whether --enable-utrace was given.
  5839 if test "${enable_utrace+set}" = set; then :
  5840   enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
  5841   enable_utrace="0"
  5842 else
  5843   enable_utrace="1"
  5844 fi
  5846 else
  5847   enable_utrace="0"
  5849 fi
  5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
  5853 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
  5854 if ${je_cv_utrace+:} false; then :
  5855   $as_echo_n "(cached) " >&6
  5856 else
  5857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5858 /* end confdefs.h.  */
  5860 #include <sys/types.h>
  5861 #include <sys/param.h>
  5862 #include <sys/time.h>
  5863 #include <sys/uio.h>
  5864 #include <sys/ktrace.h>
  5866 int
  5867 main ()
  5870 	utrace((void *)0, 0);
  5873   return 0;
  5875 _ACEOF
  5876 if ac_fn_c_try_link "$LINENO"; then :
  5877   je_cv_utrace=yes
  5878 else
  5879   je_cv_utrace=no
  5880 fi
  5881 rm -f core conftest.err conftest.$ac_objext \
  5882     conftest$ac_exeext conftest.$ac_ext
  5883 fi
  5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
  5885 $as_echo "$je_cv_utrace" >&6; }
  5887 if test "x${je_cv_utrace}" = "xno" ; then
  5888   enable_utrace="0"
  5889 fi
  5890 if test "x$enable_utrace" = "x1" ; then
  5891   $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
  5893 fi
  5896 # Check whether --enable-valgrind was given.
  5897 if test "${enable_valgrind+set}" = set; then :
  5898   enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then
  5899   enable_valgrind="0"
  5900 else
  5901   enable_valgrind="1"
  5902 fi
  5904 else
  5905   enable_valgrind="1"
  5907 fi
  5909 if test "x$enable_valgrind" = "x1" ; then
  5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5
  5912 $as_echo_n "checking whether valgrind is compilable... " >&6; }
  5913 if ${je_cv_valgrind+:} false; then :
  5914   $as_echo_n "(cached) " >&6
  5915 else
  5916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917 /* end confdefs.h.  */
  5919 #include <valgrind/valgrind.h>
  5920 #include <valgrind/memcheck.h>
  5922 #if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
  5923 #  error "Incompatible Valgrind version"
  5924 #endif
  5926 int
  5927 main ()
  5931   return 0;
  5933 _ACEOF
  5934 if ac_fn_c_try_link "$LINENO"; then :
  5935   je_cv_valgrind=yes
  5936 else
  5937   je_cv_valgrind=no
  5938 fi
  5939 rm -f core conftest.err conftest.$ac_objext \
  5940     conftest$ac_exeext conftest.$ac_ext
  5941 fi
  5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5
  5943 $as_echo "$je_cv_valgrind" >&6; }
  5945   if test "x${je_cv_valgrind}" = "xno" ; then
  5946     enable_valgrind="0"
  5947   fi
  5948   if test "x$enable_valgrind" = "x1" ; then
  5949     $as_echo "#define JEMALLOC_VALGRIND  " >>confdefs.h
  5951   fi
  5952 fi
  5955 # Check whether --enable-xmalloc was given.
  5956 if test "${enable_xmalloc+set}" = set; then :
  5957   enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
  5958   enable_xmalloc="0"
  5959 else
  5960   enable_xmalloc="1"
  5961 fi
  5963 else
  5964   enable_xmalloc="0"
  5966 fi
  5968 if test "x$enable_xmalloc" = "x1" ; then
  5969   $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
  5971 fi
  5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking STATIC_PAGE_SHIFT" >&5
  5975 $as_echo_n "checking STATIC_PAGE_SHIFT... " >&6; }
  5976 if ${je_cv_static_page_shift+:} false; then :
  5977   $as_echo_n "(cached) " >&6
  5978 else
  5979   if test "$cross_compiling" = yes; then :
  5980   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5982 as_fn_error $? "cannot run test program while cross compiling
  5983 See \`config.log' for more details" "$LINENO" 5; }
  5984 else
  5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5986 /* end confdefs.h.  */
  5988 #include <strings.h>
  5989 #ifdef _WIN32
  5990 #include <windows.h>
  5991 #else
  5992 #include <unistd.h>
  5993 #endif
  5994 #include <stdio.h>
  5996 int
  5997 main ()
  6000     long result;
  6001     FILE *f;
  6003 #ifdef _WIN32
  6004     SYSTEM_INFO si;
  6005     GetSystemInfo(&si);
  6006     result = si.dwPageSize;
  6007 #else
  6008     result = sysconf(_SC_PAGESIZE);
  6009 #endif
  6010     if (result == -1) {
  6011 	return 1;
  6013     result = ffsl(result) - 1;
  6015     f = fopen("conftest.out", "w");
  6016     if (f == NULL) {
  6017 	return 1;
  6019     fprintf(f, "%u\n", result);
  6020     fclose(f);
  6022     return 0;
  6025   return 0;
  6027 _ACEOF
  6028 if ac_fn_c_try_run "$LINENO"; then :
  6029   je_cv_static_page_shift=`cat conftest.out`
  6030 else
  6031   je_cv_static_page_shift=undefined
  6032 fi
  6033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6034   conftest.$ac_objext conftest.beam conftest.$ac_ext
  6035 fi
  6037 fi
  6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_static_page_shift" >&5
  6039 $as_echo "$je_cv_static_page_shift" >&6; }
  6041 if test "x$je_cv_static_page_shift" != "xundefined"; then
  6042    cat >>confdefs.h <<_ACEOF
  6043 #define STATIC_PAGE_SHIFT $je_cv_static_page_shift
  6044 _ACEOF
  6046 else
  6047    as_fn_error $? "cannot determine value for STATIC_PAGE_SHIFT" "$LINENO" 5
  6048 fi
  6051 if test -d "${srcroot}.git" ; then
  6052   git describe --long --abbrev=40 > ${srcroot}VERSION
  6053 fi
  6054 jemalloc_version=`cat ${srcroot}VERSION`
  6055 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
  6056 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
  6057 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
  6058 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
  6059 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
  6068 if test "x$abi" != "xpecoff" ; then
  6069   for ac_header in pthread.h
  6070 do :
  6071   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  6072 if test "x$ac_cv_header_pthread_h" = xyes; then :
  6073   cat >>confdefs.h <<_ACEOF
  6074 #define HAVE_PTHREAD_H 1
  6075 _ACEOF
  6077 else
  6078   as_fn_error $? "pthread.h is missing" "$LINENO" 5
  6079 fi
  6081 done
  6083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  6084 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  6085 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  6086   $as_echo_n "(cached) " >&6
  6087 else
  6088   ac_check_lib_save_LIBS=$LIBS
  6089 LIBS="-lpthread  $LIBS"
  6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091 /* end confdefs.h.  */
  6093 /* Override any GCC internal prototype to avoid an error.
  6094    Use char because int might match the return type of a GCC
  6095    builtin and then its argument prototype would still apply.  */
  6096 #ifdef __cplusplus
  6097 extern "C"
  6098 #endif
  6099 char pthread_create ();
  6100 int
  6101 main ()
  6103 return pthread_create ();
  6105   return 0;
  6107 _ACEOF
  6108 if ac_fn_c_try_link "$LINENO"; then :
  6109   ac_cv_lib_pthread_pthread_create=yes
  6110 else
  6111   ac_cv_lib_pthread_pthread_create=no
  6112 fi
  6113 rm -f core conftest.err conftest.$ac_objext \
  6114     conftest$ac_exeext conftest.$ac_ext
  6115 LIBS=$ac_check_lib_save_LIBS
  6116 fi
  6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  6118 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  6119 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  6120   LIBS="$LIBS -lpthread"
  6121 else
  6122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  6123 $as_echo_n "checking for library containing pthread_create... " >&6; }
  6124 if ${ac_cv_search_pthread_create+:} false; then :
  6125   $as_echo_n "(cached) " >&6
  6126 else
  6127   ac_func_search_save_LIBS=$LIBS
  6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6129 /* end confdefs.h.  */
  6131 /* Override any GCC internal prototype to avoid an error.
  6132    Use char because int might match the return type of a GCC
  6133    builtin and then its argument prototype would still apply.  */
  6134 #ifdef __cplusplus
  6135 extern "C"
  6136 #endif
  6137 char pthread_create ();
  6138 int
  6139 main ()
  6141 return pthread_create ();
  6143   return 0;
  6145 _ACEOF
  6146 for ac_lib in '' ; do
  6147   if test -z "$ac_lib"; then
  6148     ac_res="none required"
  6149   else
  6150     ac_res=-l$ac_lib
  6151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6152   fi
  6153   if ac_fn_c_try_link "$LINENO"; then :
  6154   ac_cv_search_pthread_create=$ac_res
  6155 fi
  6156 rm -f core conftest.err conftest.$ac_objext \
  6157     conftest$ac_exeext
  6158   if ${ac_cv_search_pthread_create+:} false; then :
  6159   break
  6160 fi
  6161 done
  6162 if ${ac_cv_search_pthread_create+:} false; then :
  6164 else
  6165   ac_cv_search_pthread_create=no
  6166 fi
  6167 rm conftest.$ac_ext
  6168 LIBS=$ac_func_search_save_LIBS
  6169 fi
  6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  6171 $as_echo "$ac_cv_search_pthread_create" >&6; }
  6172 ac_res=$ac_cv_search_pthread_create
  6173 if test "$ac_res" != no; then :
  6174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6176 else
  6177   as_fn_error $? "libpthread is missing" "$LINENO" 5
  6178 fi
  6180 fi
  6182 fi
  6184 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  6186 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
  6187 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
  6188   have__malloc_thread_cleanup="1"
  6189 else
  6190   have__malloc_thread_cleanup="0"
  6192 fi
  6194 if test "x$have__malloc_thread_cleanup" = "x1" ; then
  6195   $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
  6197   force_tls="1"
  6198 fi
  6200 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
  6201 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
  6202   have__pthread_mutex_init_calloc_cb="1"
  6203 else
  6204   have__pthread_mutex_init_calloc_cb="0"
  6206 fi
  6208 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
  6209   $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
  6211 fi
  6213 # Check whether --enable-lazy_lock was given.
  6214 if test "${enable_lazy_lock+set}" = set; then :
  6215   enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
  6216   enable_lazy_lock="0"
  6217 else
  6218   enable_lazy_lock="1"
  6219 fi
  6221 else
  6222   enable_lazy_lock="0"
  6224 fi
  6226 if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then
  6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
  6228 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
  6229   enable_lazy_lock="1"
  6230 fi
  6231 if test "x$enable_lazy_lock" = "x1" ; then
  6232   if test "x$abi" != "xpecoff" ; then
  6233     for ac_header in dlfcn.h
  6234 do :
  6235   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  6236 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6237   cat >>confdefs.h <<_ACEOF
  6238 #define HAVE_DLFCN_H 1
  6239 _ACEOF
  6241 else
  6242   as_fn_error $? "dlfcn.h is missing" "$LINENO" 5
  6243 fi
  6245 done
  6247     ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  6248 if test "x$ac_cv_func_dlsym" = xyes; then :
  6250 else
  6251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  6252 $as_echo_n "checking for dlsym in -ldl... " >&6; }
  6253 if ${ac_cv_lib_dl_dlsym+:} false; then :
  6254   $as_echo_n "(cached) " >&6
  6255 else
  6256   ac_check_lib_save_LIBS=$LIBS
  6257 LIBS="-ldl  $LIBS"
  6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259 /* end confdefs.h.  */
  6261 /* Override any GCC internal prototype to avoid an error.
  6262    Use char because int might match the return type of a GCC
  6263    builtin and then its argument prototype would still apply.  */
  6264 #ifdef __cplusplus
  6265 extern "C"
  6266 #endif
  6267 char dlsym ();
  6268 int
  6269 main ()
  6271 return dlsym ();
  6273   return 0;
  6275 _ACEOF
  6276 if ac_fn_c_try_link "$LINENO"; then :
  6277   ac_cv_lib_dl_dlsym=yes
  6278 else
  6279   ac_cv_lib_dl_dlsym=no
  6280 fi
  6281 rm -f core conftest.err conftest.$ac_objext \
  6282     conftest$ac_exeext conftest.$ac_ext
  6283 LIBS=$ac_check_lib_save_LIBS
  6284 fi
  6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  6286 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  6287 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  6288   LIBS="$LIBS -ldl"
  6289 else
  6290   as_fn_error $? "libdl is missing" "$LINENO" 5
  6291 fi
  6294 fi
  6296   fi
  6297   $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
  6299 fi
  6302 # Check whether --enable-tls was given.
  6303 if test "${enable_tls+set}" = set; then :
  6304   enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then
  6305   enable_tls="0"
  6306 else
  6307   enable_tls="1"
  6308 fi
  6310 else
  6311   enable_tls="1"
  6313 fi
  6315 if test "x${enable_tls}" = "x0" -a "x${force_tls}" = "x1" ; then
  6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5
  6317 $as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; }
  6318   enable_tls="1"
  6319 fi
  6320 if test "x${enable_tls}" = "x1" -a "x${force_tls}" = "x0" ; then
  6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5
  6322 $as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; }
  6323   enable_tls="0"
  6324 fi
  6325 if test "x${enable_tls}" = "x1" ; then
  6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
  6327 $as_echo_n "checking for TLS... " >&6; }
  6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329 /* end confdefs.h.  */
  6331     __thread int x;
  6333 int
  6334 main ()
  6337     x = 42;
  6339     return 0;
  6342   return 0;
  6344 _ACEOF
  6345 if ac_fn_c_try_compile "$LINENO"; then :
  6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6347 $as_echo "yes" >&6; }
  6348 else
  6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350 $as_echo "no" >&6; }
  6351               enable_tls="0"
  6352 fi
  6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6354 fi
  6356 if test "x${enable_tls}" = "x1" ; then
  6357   cat >>confdefs.h <<_ACEOF
  6358 #define JEMALLOC_TLS
  6359 _ACEOF
  6361 elif test "x${force_tls}" = "x1" ; then
  6362   as_fn_error $? "Failed to configure TLS, which is mandatory for correct function" "$LINENO" 5
  6363 fi
  6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
  6367 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
  6368 if ${je_cv_function_ffsl+:} false; then :
  6369   $as_echo_n "(cached) " >&6
  6370 else
  6371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6372 /* end confdefs.h.  */
  6374 #include <strings.h>
  6375 #include <string.h>
  6377 int
  6378 main ()
  6382 		int rv = ffsl(0x08);
  6386   return 0;
  6388 _ACEOF
  6389 if ac_fn_c_try_link "$LINENO"; then :
  6390   je_cv_function_ffsl=yes
  6391 else
  6392   je_cv_function_ffsl=no
  6393 fi
  6394 rm -f core conftest.err conftest.$ac_objext \
  6395     conftest$ac_exeext conftest.$ac_ext
  6396 fi
  6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
  6398 $as_echo "$je_cv_function_ffsl" >&6; }
  6400 if test "x${je_cv_function_ffsl}" != "xyes" ; then
  6401    as_fn_error $? "Cannot build without ffsl(3)" "$LINENO" 5
  6402 fi
  6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5
  6407 $as_echo_n "checking whether atomic(9) is compilable... " >&6; }
  6408 if ${je_cv_atomic9+:} false; then :
  6409   $as_echo_n "(cached) " >&6
  6410 else
  6411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6412 /* end confdefs.h.  */
  6414 #include <sys/types.h>
  6415 #include <machine/atomic.h>
  6416 #include <inttypes.h>
  6418 int
  6419 main ()
  6423 		uint32_t x32 = 0;
  6424 		volatile uint32_t *x32p = &x32;
  6425 		atomic_fetchadd_32(x32p, 1);
  6428 		unsigned long xlong = 0;
  6429 		volatile unsigned long *xlongp = &xlong;
  6430 		atomic_fetchadd_long(xlongp, 1);
  6434   return 0;
  6436 _ACEOF
  6437 if ac_fn_c_try_link "$LINENO"; then :
  6438   je_cv_atomic9=yes
  6439 else
  6440   je_cv_atomic9=no
  6441 fi
  6442 rm -f core conftest.err conftest.$ac_objext \
  6443     conftest$ac_exeext conftest.$ac_ext
  6444 fi
  6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5
  6446 $as_echo "$je_cv_atomic9" >&6; }
  6448 if test "x${je_cv_atomic9}" = "xyes" ; then
  6449   $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h
  6451 fi
  6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
  6456 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
  6457 if ${je_cv_osatomic+:} false; then :
  6458   $as_echo_n "(cached) " >&6
  6459 else
  6460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461 /* end confdefs.h.  */
  6463 #include <libkern/OSAtomic.h>
  6464 #include <inttypes.h>
  6466 int
  6467 main ()
  6471 		int32_t x32 = 0;
  6472 		volatile int32_t *x32p = &x32;
  6473 		OSAtomicAdd32(1, x32p);
  6476 		int64_t x64 = 0;
  6477 		volatile int64_t *x64p = &x64;
  6478 		OSAtomicAdd64(1, x64p);
  6482   return 0;
  6484 _ACEOF
  6485 if ac_fn_c_try_link "$LINENO"; then :
  6486   je_cv_osatomic=yes
  6487 else
  6488   je_cv_osatomic=no
  6489 fi
  6490 rm -f core conftest.err conftest.$ac_objext \
  6491     conftest$ac_exeext conftest.$ac_ext
  6492 fi
  6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
  6494 $as_echo "$je_cv_osatomic" >&6; }
  6496 if test "x${je_cv_osatomic}" = "xyes" ; then
  6497   $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
  6499 fi
  6504 if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
  6506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
  6507 $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
  6508 if ${je_cv_sync_compare_and_swap_4+:} false; then :
  6509   $as_echo_n "(cached) " >&6
  6510 else
  6511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512 /* end confdefs.h.  */
  6514                                                  #include <stdint.h>
  6516 int
  6517 main ()
  6520                                                  #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
  6522                                                     uint32_t x32 = 0;
  6523                                                     __sync_add_and_fetch(&x32, 42);
  6524                                                     __sync_sub_and_fetch(&x32, 1);
  6526                                                  #else
  6527                                                  #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
  6528                                                  #endif
  6531   return 0;
  6533 _ACEOF
  6534 if ac_fn_c_try_link "$LINENO"; then :
  6535   je_cv_sync_compare_and_swap_4=yes
  6536 else
  6537   je_cv_sync_compare_and_swap_4=no
  6538 fi
  6539 rm -f core conftest.err conftest.$ac_objext \
  6540     conftest$ac_exeext conftest.$ac_ext
  6541 fi
  6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
  6543 $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
  6545   if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
  6546     $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
  6548   fi
  6551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
  6552 $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
  6553 if ${je_cv_sync_compare_and_swap_8+:} false; then :
  6554   $as_echo_n "(cached) " >&6
  6555 else
  6556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6557 /* end confdefs.h.  */
  6559                                                  #include <stdint.h>
  6561 int
  6562 main ()
  6565                                                  #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
  6567                                                     uint64_t x64 = 0;
  6568                                                     __sync_add_and_fetch(&x64, 42);
  6569                                                     __sync_sub_and_fetch(&x64, 1);
  6571                                                  #else
  6572                                                  #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
  6573                                                  #endif
  6576   return 0;
  6578 _ACEOF
  6579 if ac_fn_c_try_link "$LINENO"; then :
  6580   je_cv_sync_compare_and_swap_8=yes
  6581 else
  6582   je_cv_sync_compare_and_swap_8=no
  6583 fi
  6584 rm -f core conftest.err conftest.$ac_objext \
  6585     conftest$ac_exeext conftest.$ac_ext
  6586 fi
  6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
  6588 $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
  6590   if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
  6591     $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
  6593   fi
  6595 fi
  6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
  6600 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
  6601 if ${je_cv_osspin+:} false; then :
  6602   $as_echo_n "(cached) " >&6
  6603 else
  6604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6605 /* end confdefs.h.  */
  6607 #include <libkern/OSAtomic.h>
  6608 #include <inttypes.h>
  6610 int
  6611 main ()
  6614 	OSSpinLock lock = 0;
  6615 	OSSpinLockLock(&lock);
  6616 	OSSpinLockUnlock(&lock);
  6619   return 0;
  6621 _ACEOF
  6622 if ac_fn_c_try_link "$LINENO"; then :
  6623   je_cv_osspin=yes
  6624 else
  6625   je_cv_osspin=no
  6626 fi
  6627 rm -f core conftest.err conftest.$ac_objext \
  6628     conftest$ac_exeext conftest.$ac_ext
  6629 fi
  6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
  6631 $as_echo "$je_cv_osspin" >&6; }
  6633 if test "x${je_cv_osspin}" = "xyes" ; then
  6634   $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
  6636 fi
  6639 if test "x${abi}" = "xmacho" ; then
  6640   $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
  6642   $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
  6645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5
  6646 $as_echo_n "checking malloc zone version... " >&6; }
  6649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6650 /* end confdefs.h.  */
  6651 #include <malloc/malloc.h>
  6652 int
  6653 main ()
  6655 static foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1]
  6658   return 0;
  6660 _ACEOF
  6661 if ac_fn_c_try_compile "$LINENO"; then :
  6662   JEMALLOC_ZONE_VERSION=3
  6663 else
  6665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6666 /* end confdefs.h.  */
  6667 #include <malloc/malloc.h>
  6668 int
  6669 main ()
  6671 static foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1]
  6674   return 0;
  6676 _ACEOF
  6677 if ac_fn_c_try_compile "$LINENO"; then :
  6678   JEMALLOC_ZONE_VERSION=5
  6679 else
  6681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6682 /* end confdefs.h.  */
  6683 #include <malloc/malloc.h>
  6684 int
  6685 main ()
  6687 static foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1]
  6690   return 0;
  6692 _ACEOF
  6693 if ac_fn_c_try_compile "$LINENO"; then :
  6695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6696 /* end confdefs.h.  */
  6697 #include <malloc/malloc.h>
  6698 int
  6699 main ()
  6701 static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1]
  6704   return 0;
  6706 _ACEOF
  6707 if ac_fn_c_try_compile "$LINENO"; then :
  6708   JEMALLOC_ZONE_VERSION=6
  6709 else
  6711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6712 /* end confdefs.h.  */
  6713 #include <malloc/malloc.h>
  6714 int
  6715 main ()
  6717 static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1]
  6720   return 0;
  6722 _ACEOF
  6723 if ac_fn_c_try_compile "$LINENO"; then :
  6724   JEMALLOC_ZONE_VERSION=7
  6725 else
  6726   JEMALLOC_ZONE_VERSION=
  6728 fi
  6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6730 fi
  6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6732 else
  6734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6735 /* end confdefs.h.  */
  6736 #include <malloc/malloc.h>
  6737 int
  6738 main ()
  6740 static foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1]
  6743   return 0;
  6745 _ACEOF
  6746 if ac_fn_c_try_compile "$LINENO"; then :
  6747   JEMALLOC_ZONE_VERSION=8
  6748 else
  6750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751 /* end confdefs.h.  */
  6752 #include <malloc/malloc.h>
  6753 int
  6754 main ()
  6756 static foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1]
  6759   return 0;
  6761 _ACEOF
  6762 if ac_fn_c_try_compile "$LINENO"; then :
  6763   JEMALLOC_ZONE_VERSION=9
  6764 else
  6765   JEMALLOC_ZONE_VERSION=
  6767 fi
  6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6769 fi
  6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6771 fi
  6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6773 fi
  6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6775 fi
  6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6777   if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then
  6778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6779 $as_echo "unsupported" >&6; }
  6780     as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5
  6781   fi
  6782   if test "${JEMALLOC_ZONE_VERSION}" = 9; then
  6783     JEMALLOC_ZONE_VERSION=8
  6784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5
  6785 $as_echo "> 8" >&6; }
  6786   else
  6787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5
  6788 $as_echo "$JEMALLOC_ZONE_VERSION" >&6; }
  6789   fi
  6790   cat >>confdefs.h <<_ACEOF
  6791 #define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION
  6792 _ACEOF
  6794 fi
  6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6797 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6798 if ${ac_cv_header_stdbool_h+:} false; then :
  6799   $as_echo_n "(cached) " >&6
  6800 else
  6801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6802 /* end confdefs.h.  */
  6804              #include <stdbool.h>
  6805              #ifndef bool
  6806               "error: bool is not defined"
  6807              #endif
  6808              #ifndef false
  6809               "error: false is not defined"
  6810              #endif
  6811              #if false
  6812               "error: false is not 0"
  6813              #endif
  6814              #ifndef true
  6815               "error: true is not defined"
  6816              #endif
  6817              #if true != 1
  6818               "error: true is not 1"
  6819              #endif
  6820              #ifndef __bool_true_false_are_defined
  6821               "error: __bool_true_false_are_defined is not defined"
  6822              #endif
  6824              struct s { _Bool s: 1; _Bool t; } s;
  6826              char a[true == 1 ? 1 : -1];
  6827              char b[false == 0 ? 1 : -1];
  6828              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6829              char d[(bool) 0.5 == true ? 1 : -1];
  6830              /* See body of main program for 'e'.  */
  6831              char f[(_Bool) 0.0 == false ? 1 : -1];
  6832              char g[true];
  6833              char h[sizeof (_Bool)];
  6834              char i[sizeof s.t];
  6835              enum { j = false, k = true, l = false * true, m = true * 256 };
  6836              /* The following fails for
  6837                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6838              _Bool n[m];
  6839              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6840              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6841              /* Catch a bug in an HP-UX C compiler.  See
  6842                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6843                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6844               */
  6845              _Bool q = true;
  6846              _Bool *pq = &q;
  6848 int
  6849 main ()
  6852              bool e = &s;
  6853              *pq |= q;
  6854              *pq |= ! q;
  6855              /* Refer to every declared value, to avoid compiler optimizations.  */
  6856              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6857                      + !m + !n + !o + !p + !q + !pq);
  6860   return 0;
  6862 _ACEOF
  6863 if ac_fn_c_try_compile "$LINENO"; then :
  6864   ac_cv_header_stdbool_h=yes
  6865 else
  6866   ac_cv_header_stdbool_h=no
  6867 fi
  6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6869 fi
  6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  6871 $as_echo "$ac_cv_header_stdbool_h" >&6; }
  6872    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  6873 if test "x$ac_cv_type__Bool" = xyes; then :
  6875 cat >>confdefs.h <<_ACEOF
  6876 #define HAVE__BOOL 1
  6877 _ACEOF
  6880 fi
  6883 if test $ac_cv_header_stdbool_h = yes; then
  6885 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  6887 fi
  6890 ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
  6895 ac_config_headers="$ac_config_headers $cfghdrs_tup"
  6898 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc.sh"
  6902 cat >confcache <<\_ACEOF
  6903 # This file is a shell script that caches the results of configure
  6904 # tests run on this system so they can be shared between configure
  6905 # scripts and configure runs, see configure's option --config-cache.
  6906 # It is not useful on other systems.  If it contains results you don't
  6907 # want to keep, you may remove or edit it.
  6909 # config.status only pays attention to the cache file if you give it
  6910 # the --recheck option to rerun configure.
  6912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6914 # following values.
  6916 _ACEOF
  6918 # The following way of writing the cache mishandles newlines in values,
  6919 # but we know of no workaround that is simple, portable, and efficient.
  6920 # So, we kill variables containing newlines.
  6921 # Ultrix sh set writes to stderr and can't be redirected directly,
  6922 # and sets the high bit in the cache file unless we assign to the vars.
  6924   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6925     eval ac_val=\$$ac_var
  6926     case $ac_val in #(
  6927     *${as_nl}*)
  6928       case $ac_var in #(
  6929       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6931       esac
  6932       case $ac_var in #(
  6933       _ | IFS | as_nl) ;; #(
  6934       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6935       *) { eval $ac_var=; unset $ac_var;} ;;
  6936       esac ;;
  6937     esac
  6938   done
  6940   (set) 2>&1 |
  6941     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6942     *${as_nl}ac_space=\ *)
  6943       # `set' does not quote correctly, so add quotes: double-quote
  6944       # substitution turns \\\\ into \\, and sed turns \\ into \.
  6945       sed -n \
  6946 	"s/'/'\\\\''/g;
  6947 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6948       ;; #(
  6949     *)
  6950       # `set' quotes correctly as required by POSIX, so do not add quotes.
  6951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6952       ;;
  6953     esac |
  6954     sort
  6955 ) |
  6956   sed '
  6957      /^ac_cv_env_/b end
  6958      t clear
  6959      :clear
  6960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6961      t end
  6962      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6963      :end' >>confcache
  6964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6965   if test -w "$cache_file"; then
  6966     if test "x$cache_file" != "x/dev/null"; then
  6967       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6968 $as_echo "$as_me: updating cache $cache_file" >&6;}
  6969       if test ! -f "$cache_file" || test -h "$cache_file"; then
  6970 	cat confcache >"$cache_file"
  6971       else
  6972         case $cache_file in #(
  6973         */* | ?:*)
  6974 	  mv -f confcache "$cache_file"$$ &&
  6975 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
  6976         *)
  6977 	  mv -f confcache "$cache_file" ;;
  6978 	esac
  6979       fi
  6980     fi
  6981   else
  6982     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6983 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6984   fi
  6985 fi
  6986 rm -f confcache
  6988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6989 # Let make expand exec_prefix.
  6990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6992 DEFS=-DHAVE_CONFIG_H
  6994 ac_libobjs=
  6995 ac_ltlibobjs=
  6996 U=
  6997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6998   # 1. Remove the extension, and $U if already installed.
  6999   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7000   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7001   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  7002   #    will be set to the directory where LIBOBJS objects are built.
  7003   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7004   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7005 done
  7006 LIBOBJS=$ac_libobjs
  7008 LTLIBOBJS=$ac_ltlibobjs
  7012 : "${CONFIG_STATUS=./config.status}"
  7013 ac_write_fail=0
  7014 ac_clean_files_save=$ac_clean_files
  7015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7018 as_write_fail=0
  7019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7020 #! $SHELL
  7021 # Generated by $as_me.
  7022 # Run this file to recreate the current configuration.
  7023 # Compiler output produced by configure, useful for debugging
  7024 # configure, is in config.log if it exists.
  7026 debug=false
  7027 ac_cs_recheck=false
  7028 ac_cs_silent=false
  7030 SHELL=\${CONFIG_SHELL-$SHELL}
  7031 export SHELL
  7032 _ASEOF
  7033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7034 ## -------------------- ##
  7035 ## M4sh Initialization. ##
  7036 ## -------------------- ##
  7038 # Be more Bourne compatible
  7039 DUALCASE=1; export DUALCASE # for MKS sh
  7040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7041   emulate sh
  7042   NULLCMD=:
  7043   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7044   # is contrary to our usage.  Disable this feature.
  7045   alias -g '${1+"$@"}'='"$@"'
  7046   setopt NO_GLOB_SUBST
  7047 else
  7048   case `(set -o) 2>/dev/null` in #(
  7049   *posix*) :
  7050     set -o posix ;; #(
  7051   *) :
  7052      ;;
  7053 esac
  7054 fi
  7057 as_nl='
  7059 export as_nl
  7060 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7061 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7064 # Prefer a ksh shell builtin over an external printf program on Solaris,
  7065 # but without wasting forks for bash or zsh.
  7066 if test -z "$BASH_VERSION$ZSH_VERSION" \
  7067     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7068   as_echo='print -r --'
  7069   as_echo_n='print -rn --'
  7070 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7071   as_echo='printf %s\n'
  7072   as_echo_n='printf %s'
  7073 else
  7074   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7075     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7076     as_echo_n='/usr/ucb/echo -n'
  7077   else
  7078     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7079     as_echo_n_body='eval
  7080       arg=$1;
  7081       case $arg in #(
  7082       *"$as_nl"*)
  7083 	expr "X$arg" : "X\\(.*\\)$as_nl";
  7084 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7085       esac;
  7086       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7088     export as_echo_n_body
  7089     as_echo_n='sh -c $as_echo_n_body as_echo'
  7090   fi
  7091   export as_echo_body
  7092   as_echo='sh -c $as_echo_body as_echo'
  7093 fi
  7095 # The user is always right.
  7096 if test "${PATH_SEPARATOR+set}" != set; then
  7097   PATH_SEPARATOR=:
  7098   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7099     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7100       PATH_SEPARATOR=';'
  7102 fi
  7105 # IFS
  7106 # We need space, tab and new line, in precisely that order.  Quoting is
  7107 # there to prevent editors from complaining about space-tab.
  7108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7109 # splitting by setting IFS to empty value.)
  7110 IFS=" ""	$as_nl"
  7112 # Find who we are.  Look in the path if we contain no directory separator.
  7113 as_myself=
  7114 case $0 in #((
  7115   *[\\/]* ) as_myself=$0 ;;
  7116   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117 for as_dir in $PATH
  7118 do
  7119   IFS=$as_save_IFS
  7120   test -z "$as_dir" && as_dir=.
  7121     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7122   done
  7123 IFS=$as_save_IFS
  7125      ;;
  7126 esac
  7127 # We did not find ourselves, most probably we were run as `sh COMMAND'
  7128 # in which case we are not to be found in the path.
  7129 if test "x$as_myself" = x; then
  7130   as_myself=$0
  7131 fi
  7132 if test ! -f "$as_myself"; then
  7133   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7134   exit 1
  7135 fi
  7137 # Unset variables that we do not need and which cause bugs (e.g. in
  7138 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  7139 # suppresses any "Segmentation fault" message there.  '((' could
  7140 # trigger a bug in pdksh 5.2.14.
  7141 for as_var in BASH_ENV ENV MAIL MAILPATH
  7142 do eval test x\${$as_var+set} = xset \
  7143   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7144 done
  7145 PS1='$ '
  7146 PS2='> '
  7147 PS4='+ '
  7149 # NLS nuisances.
  7150 LC_ALL=C
  7151 export LC_ALL
  7152 LANGUAGE=C
  7153 export LANGUAGE
  7155 # CDPATH.
  7156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7160 # ----------------------------------------
  7161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7163 # script with STATUS, using 1 if that was 0.
  7164 as_fn_error ()
  7166   as_status=$1; test $as_status -eq 0 && as_status=1
  7167   if test "$4"; then
  7168     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7169     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7170   fi
  7171   $as_echo "$as_me: error: $2" >&2
  7172   as_fn_exit $as_status
  7173 } # as_fn_error
  7176 # as_fn_set_status STATUS
  7177 # -----------------------
  7178 # Set $? to STATUS, without forking.
  7179 as_fn_set_status ()
  7181   return $1
  7182 } # as_fn_set_status
  7184 # as_fn_exit STATUS
  7185 # -----------------
  7186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7187 as_fn_exit ()
  7189   set +e
  7190   as_fn_set_status $1
  7191   exit $1
  7192 } # as_fn_exit
  7194 # as_fn_unset VAR
  7195 # ---------------
  7196 # Portably unset VAR.
  7197 as_fn_unset ()
  7199   { eval $1=; unset $1;}
  7201 as_unset=as_fn_unset
  7202 # as_fn_append VAR VALUE
  7203 # ----------------------
  7204 # Append the text in VALUE to the end of the definition contained in VAR. Take
  7205 # advantage of any shell optimizations that allow amortized linear growth over
  7206 # repeated appends, instead of the typical quadratic growth present in naive
  7207 # implementations.
  7208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7209   eval 'as_fn_append ()
  7211     eval $1+=\$2
  7212   }'
  7213 else
  7214   as_fn_append ()
  7216     eval $1=\$$1\$2
  7218 fi # as_fn_append
  7220 # as_fn_arith ARG...
  7221 # ------------------
  7222 # Perform arithmetic evaluation on the ARGs, and store the result in the
  7223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7224 # must be portable across $(()) and expr.
  7225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7226   eval 'as_fn_arith ()
  7228     as_val=$(( $* ))
  7229   }'
  7230 else
  7231   as_fn_arith ()
  7233     as_val=`expr "$@" || test $? -eq 1`
  7235 fi # as_fn_arith
  7238 if expr a : '\(a\)' >/dev/null 2>&1 &&
  7239    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7240   as_expr=expr
  7241 else
  7242   as_expr=false
  7243 fi
  7245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7246   as_basename=basename
  7247 else
  7248   as_basename=false
  7249 fi
  7251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7252   as_dirname=dirname
  7253 else
  7254   as_dirname=false
  7255 fi
  7257 as_me=`$as_basename -- "$0" ||
  7258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7259 	 X"$0" : 'X\(//\)$' \| \
  7260 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7261 $as_echo X/"$0" |
  7262     sed '/^.*\/\([^/][^/]*\)\/*$/{
  7263 	    s//\1/
  7266 	  /^X\/\(\/\/\)$/{
  7267 	    s//\1/
  7270 	  /^X\/\(\/\).*/{
  7271 	    s//\1/
  7274 	  s/.*/./; q'`
  7276 # Avoid depending upon Character Ranges.
  7277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7280 as_cr_digits='0123456789'
  7281 as_cr_alnum=$as_cr_Letters$as_cr_digits
  7283 ECHO_C= ECHO_N= ECHO_T=
  7284 case `echo -n x` in #(((((
  7285 -n*)
  7286   case `echo 'xy\c'` in
  7287   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  7288   xy)  ECHO_C='\c';;
  7289   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7290        ECHO_T='	';;
  7291   esac;;
  7292 *)
  7293   ECHO_N='-n';;
  7294 esac
  7296 rm -f conf$$ conf$$.exe conf$$.file
  7297 if test -d conf$$.dir; then
  7298   rm -f conf$$.dir/conf$$.file
  7299 else
  7300   rm -f conf$$.dir
  7301   mkdir conf$$.dir 2>/dev/null
  7302 fi
  7303 if (echo >conf$$.file) 2>/dev/null; then
  7304   if ln -s conf$$.file conf$$ 2>/dev/null; then
  7305     as_ln_s='ln -s'
  7306     # ... but there are two gotchas:
  7307     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7308     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7309     # In both cases, we have to default to `cp -pR'.
  7310     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7311       as_ln_s='cp -pR'
  7312   elif ln conf$$.file conf$$ 2>/dev/null; then
  7313     as_ln_s=ln
  7314   else
  7315     as_ln_s='cp -pR'
  7316   fi
  7317 else
  7318   as_ln_s='cp -pR'
  7319 fi
  7320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7321 rmdir conf$$.dir 2>/dev/null
  7324 # as_fn_mkdir_p
  7325 # -------------
  7326 # Create "$as_dir" as a directory, including parents if necessary.
  7327 as_fn_mkdir_p ()
  7330   case $as_dir in #(
  7331   -*) as_dir=./$as_dir;;
  7332   esac
  7333   test -d "$as_dir" || eval $as_mkdir_p || {
  7334     as_dirs=
  7335     while :; do
  7336       case $as_dir in #(
  7337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7338       *) as_qdir=$as_dir;;
  7339       esac
  7340       as_dirs="'$as_qdir' $as_dirs"
  7341       as_dir=`$as_dirname -- "$as_dir" ||
  7342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7343 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  7344 	 X"$as_dir" : 'X\(//\)$' \| \
  7345 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7346 $as_echo X"$as_dir" |
  7347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7348 	    s//\1/
  7351 	  /^X\(\/\/\)[^/].*/{
  7352 	    s//\1/
  7355 	  /^X\(\/\/\)$/{
  7356 	    s//\1/
  7359 	  /^X\(\/\).*/{
  7360 	    s//\1/
  7363 	  s/.*/./; q'`
  7364       test -d "$as_dir" && break
  7365     done
  7366     test -z "$as_dirs" || eval "mkdir $as_dirs"
  7367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7370 } # as_fn_mkdir_p
  7371 if mkdir -p . 2>/dev/null; then
  7372   as_mkdir_p='mkdir -p "$as_dir"'
  7373 else
  7374   test -d ./-p && rmdir ./-p
  7375   as_mkdir_p=false
  7376 fi
  7379 # as_fn_executable_p FILE
  7380 # -----------------------
  7381 # Test if FILE is an executable regular file.
  7382 as_fn_executable_p ()
  7384   test -f "$1" && test -x "$1"
  7385 } # as_fn_executable_p
  7386 as_test_x='test -x'
  7387 as_executable_p=as_fn_executable_p
  7389 # Sed expression to map a string onto a valid CPP name.
  7390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7392 # Sed expression to map a string onto a valid variable name.
  7393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7396 exec 6>&1
  7397 ## ----------------------------------- ##
  7398 ## Main body of $CONFIG_STATUS script. ##
  7399 ## ----------------------------------- ##
  7400 _ASEOF
  7401 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7404 # Save the log message, to keep $0 and so on meaningful, and to
  7405 # report actual input values of CONFIG_FILES etc. instead of their
  7406 # values after options handling.
  7407 ac_log="
  7408 This file was extended by $as_me, which was
  7409 generated by GNU Autoconf 2.69.  Invocation command line was
  7411   CONFIG_FILES    = $CONFIG_FILES
  7412   CONFIG_HEADERS  = $CONFIG_HEADERS
  7413   CONFIG_LINKS    = $CONFIG_LINKS
  7414   CONFIG_COMMANDS = $CONFIG_COMMANDS
  7415   $ $0 $@
  7417 on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7420 _ACEOF
  7422 case $ac_config_files in *"
  7423 "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7424 esac
  7426 case $ac_config_headers in *"
  7427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7428 esac
  7431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7432 # Files that config.status was made for.
  7433 config_files="$ac_config_files"
  7434 config_headers="$ac_config_headers"
  7435 config_commands="$ac_config_commands"
  7437 _ACEOF
  7439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7440 ac_cs_usage="\
  7441 \`$as_me' instantiates files and other configuration actions
  7442 from templates according to the current configuration.  Unless the files
  7443 and actions are specified as TAGs, all are instantiated by default.
  7445 Usage: $0 [OPTION]... [TAG]...
  7447   -h, --help       print this help, then exit
  7448   -V, --version    print version number and configuration settings, then exit
  7449       --config     print configuration, then exit
  7450   -q, --quiet, --silent
  7451                    do not print progress messages
  7452   -d, --debug      don't remove temporary files
  7453       --recheck    update $as_me by reconfiguring in the same conditions
  7454       --file=FILE[:TEMPLATE]
  7455                    instantiate the configuration file FILE
  7456       --header=FILE[:TEMPLATE]
  7457                    instantiate the configuration header FILE
  7459 Configuration files:
  7460 $config_files
  7462 Configuration headers:
  7463 $config_headers
  7465 Configuration commands:
  7466 $config_commands
  7468 Report bugs to the package provider."
  7470 _ACEOF
  7471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7473 ac_cs_version="\\
  7474 config.status
  7475 configured by $0, generated by GNU Autoconf 2.69,
  7476   with options \\"\$ac_cs_config\\"
  7478 Copyright (C) 2012 Free Software Foundation, Inc.
  7479 This config.status script is free software; the Free Software Foundation
  7480 gives unlimited permission to copy, distribute and modify it."
  7482 ac_pwd='$ac_pwd'
  7483 srcdir='$srcdir'
  7484 INSTALL='$INSTALL'
  7485 test -n "\$AWK" || AWK=awk
  7486 _ACEOF
  7488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7489 # The default lists apply if the user does not specify any file.
  7490 ac_need_defaults=:
  7491 while test $# != 0
  7492 do
  7493   case $1 in
  7494   --*=?*)
  7495     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7496     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7497     ac_shift=:
  7498     ;;
  7499   --*=)
  7500     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7501     ac_optarg=
  7502     ac_shift=:
  7503     ;;
  7504   *)
  7505     ac_option=$1
  7506     ac_optarg=$2
  7507     ac_shift=shift
  7508     ;;
  7509   esac
  7511   case $ac_option in
  7512   # Handling of the options.
  7513   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7514     ac_cs_recheck=: ;;
  7515   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7516     $as_echo "$ac_cs_version"; exit ;;
  7517   --config | --confi | --conf | --con | --co | --c )
  7518     $as_echo "$ac_cs_config"; exit ;;
  7519   --debug | --debu | --deb | --de | --d | -d )
  7520     debug=: ;;
  7521   --file | --fil | --fi | --f )
  7522     $ac_shift
  7523     case $ac_optarg in
  7524     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7525     '') as_fn_error $? "missing file argument" ;;
  7526     esac
  7527     as_fn_append CONFIG_FILES " '$ac_optarg'"
  7528     ac_need_defaults=false;;
  7529   --header | --heade | --head | --hea )
  7530     $ac_shift
  7531     case $ac_optarg in
  7532     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7533     esac
  7534     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7535     ac_need_defaults=false;;
  7536   --he | --h)
  7537     # Conflict between --help and --header
  7538     as_fn_error $? "ambiguous option: \`$1'
  7539 Try \`$0 --help' for more information.";;
  7540   --help | --hel | -h )
  7541     $as_echo "$ac_cs_usage"; exit ;;
  7542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7543   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7544     ac_cs_silent=: ;;
  7546   # This is an error.
  7547   -*) as_fn_error $? "unrecognized option: \`$1'
  7548 Try \`$0 --help' for more information." ;;
  7550   *) as_fn_append ac_config_targets " $1"
  7551      ac_need_defaults=false ;;
  7553   esac
  7554   shift
  7555 done
  7557 ac_configure_extra_args=
  7559 if $ac_cs_silent; then
  7560   exec 6>/dev/null
  7561   ac_configure_extra_args="$ac_configure_extra_args --silent"
  7562 fi
  7564 _ACEOF
  7565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7566 if \$ac_cs_recheck; then
  7567   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7568   shift
  7569   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7570   CONFIG_SHELL='$SHELL'
  7571   export CONFIG_SHELL
  7572   exec "\$@"
  7573 fi
  7575 _ACEOF
  7576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7577 exec 5>>config.log
  7579   echo
  7580   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7581 ## Running $as_me. ##
  7582 _ASBOX
  7583   $as_echo "$ac_log"
  7584 } >&5
  7586 _ACEOF
  7587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7588 _ACEOF
  7590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7592 # Handling of arguments.
  7593 for ac_config_target in $ac_config_targets
  7594 do
  7595   case $ac_config_target in
  7596     "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
  7597     "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
  7598     "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
  7599     "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
  7600     "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
  7602   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7603   esac
  7604 done
  7607 # If the user did not use the arguments to specify the items to instantiate,
  7608 # then the envvar interface is used.  Set only those that are not.
  7609 # We use the long form for the default assignment because of an extremely
  7610 # bizarre bug on SunOS 4.1.3.
  7611 if $ac_need_defaults; then
  7612   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7613   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7614   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7615 fi
  7617 # Have a temporary directory for convenience.  Make it in the build tree
  7618 # simply because there is no reason against having it here, and in addition,
  7619 # creating and moving files from /tmp can sometimes cause problems.
  7620 # Hook for its removal unless debugging.
  7621 # Note that there is a small window in which the directory will not be cleaned:
  7622 # after its creation but before its name has been assigned to `$tmp'.
  7623 $debug ||
  7625   tmp= ac_tmp=
  7626   trap 'exit_status=$?
  7627   : "${ac_tmp:=$tmp}"
  7628   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7629 ' 0
  7630   trap 'as_fn_exit 1' 1 2 13 15
  7632 # Create a (secure) tmp directory for tmp files.
  7635   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7636   test -d "$tmp"
  7637 }  ||
  7639   tmp=./conf$$-$RANDOM
  7640   (umask 077 && mkdir "$tmp")
  7641 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7642 ac_tmp=$tmp
  7644 # Set up the scripts for CONFIG_FILES section.
  7645 # No need to generate them if there are no CONFIG_FILES.
  7646 # This happens for instance with `./config.status config.h'.
  7647 if test -n "$CONFIG_FILES"; then
  7650 ac_cr=`echo X | tr X '\015'`
  7651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7652 # But we know of no other shell where ac_cr would be empty at this
  7653 # point, so we can use a bashism as a fallback.
  7654 if test "x$ac_cr" = x; then
  7655   eval ac_cr=\$\'\\r\'
  7656 fi
  7657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7659   ac_cs_awk_cr='\\r'
  7660 else
  7661   ac_cs_awk_cr=$ac_cr
  7662 fi
  7664 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7665 _ACEOF
  7669   echo "cat >conf$$subs.awk <<_ACEOF" &&
  7670   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7671   echo "_ACEOF"
  7672 } >conf$$subs.sh ||
  7673   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7675 ac_delim='%!_!# '
  7676 for ac_last_try in false false false false false :; do
  7677   . ./conf$$subs.sh ||
  7678     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7680   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7681   if test $ac_delim_n = $ac_delim_num; then
  7682     break
  7683   elif $ac_last_try; then
  7684     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7685   else
  7686     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7687   fi
  7688 done
  7689 rm -f conf$$subs.sh
  7691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7692 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7693 _ACEOF
  7694 sed -n '
  7696 s/^/S["/; s/!.*/"]=/
  7699 s/^[^!]*!//
  7700 :repl
  7701 t repl
  7702 s/'"$ac_delim"'$//
  7703 t delim
  7704 :nl
  7706 s/\(.\{148\}\)..*/\1/
  7707 t more1
  7708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7711 b repl
  7712 :more1
  7713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7716 s/.\{148\}//
  7717 t nl
  7718 :delim
  7720 s/\(.\{148\}\)..*/\1/
  7721 t more2
  7722 s/["\\]/\\&/g; s/^/"/; s/$/"/
  7725 :more2
  7726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7729 s/.\{148\}//
  7730 t delim
  7731 ' <conf$$subs.awk | sed '
  7732 /^[^""]/{
  7734   s/\n//
  7736 ' >>$CONFIG_STATUS || ac_write_fail=1
  7737 rm -f conf$$subs.awk
  7738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7739 _ACAWK
  7740 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7741   for (key in S) S_is_set[key] = 1
  7742   FS = ""
  7746   line = $ 0
  7747   nfields = split(line, field, "@")
  7748   substed = 0
  7749   len = length(field[1])
  7750   for (i = 2; i < nfields; i++) {
  7751     key = field[i]
  7752     keylen = length(key)
  7753     if (S_is_set[key]) {
  7754       value = S[key]
  7755       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7756       len += length(value) + length(field[++i])
  7757       substed = 1
  7758     } else
  7759       len += 1 + keylen
  7762   print line
  7765 _ACAWK
  7766 _ACEOF
  7767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7769   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7770 else
  7771   cat
  7772 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7773   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7774 _ACEOF
  7776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7778 # trailing colons and then remove the whole line if VPATH becomes empty
  7779 # (actually we leave an empty line to preserve line numbers).
  7780 if test "x$srcdir" = x.; then
  7781   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  7783 s///
  7784 s/^/:/
  7785 s/[	 ]*$/:/
  7786 s/:\$(srcdir):/:/g
  7787 s/:\${srcdir}:/:/g
  7788 s/:@srcdir@:/:/g
  7789 s/^:*//
  7790 s/:*$//
  7792 s/\(=[	 ]*\).*/\1/
  7794 s/\n//
  7795 s/^[^=]*=[	 ]*$//
  7796 }'
  7797 fi
  7799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7800 fi # test -n "$CONFIG_FILES"
  7802 # Set up the scripts for CONFIG_HEADERS section.
  7803 # No need to generate them if there are no CONFIG_HEADERS.
  7804 # This happens for instance with `./config.status Makefile'.
  7805 if test -n "$CONFIG_HEADERS"; then
  7806 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7807 BEGIN {
  7808 _ACEOF
  7810 # Transform confdefs.h into an awk script `defines.awk', embedded as
  7811 # here-document in config.status, that substitutes the proper values into
  7812 # config.h.in to produce config.h.
  7814 # Create a delimiter string that does not exist in confdefs.h, to ease
  7815 # handling of long lines.
  7816 ac_delim='%!_!# '
  7817 for ac_last_try in false false :; do
  7818   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7819   if test -z "$ac_tt"; then
  7820     break
  7821   elif $ac_last_try; then
  7822     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7823   else
  7824     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7825   fi
  7826 done
  7828 # For the awk script, D is an array of macro values keyed by name,
  7829 # likewise P contains macro parameters if any.  Preserve backslash
  7830 # newline sequences.
  7832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7833 sed -n '
  7834 s/.\{148\}/&'"$ac_delim"'/g
  7835 t rset
  7836 :rset
  7837 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
  7838 t def
  7840 :def
  7841 s/\\$//
  7842 t bsnl
  7843 s/["\\]/\\&/g
  7844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  7845 D["\1"]=" \3"/p
  7846 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
  7848 :bsnl
  7849 s/["\\]/\\&/g
  7850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  7851 D["\1"]=" \3\\\\\\n"\\/p
  7852 t cont
  7853 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7854 t cont
  7856 :cont
  7858 s/.\{148\}/&'"$ac_delim"'/g
  7859 t clear
  7860 :clear
  7861 s/\\$//
  7862 t bsnlc
  7863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7865 :bsnlc
  7866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7867 b cont
  7868 ' <confdefs.h | sed '
  7869 s/'"$ac_delim"'/"\\\
  7870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7873   for (key in D) D_is_set[key] = 1
  7874   FS = ""
  7876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7877   line = \$ 0
  7878   split(line, arg, " ")
  7879   if (arg[1] == "#") {
  7880     defundef = arg[2]
  7881     mac1 = arg[3]
  7882   } else {
  7883     defundef = substr(arg[1], 2)
  7884     mac1 = arg[2]
  7886   split(mac1, mac2, "(") #)
  7887   macro = mac2[1]
  7888   prefix = substr(line, 1, index(line, defundef) - 1)
  7889   if (D_is_set[macro]) {
  7890     # Preserve the white space surrounding the "#".
  7891     print prefix "define", macro P[macro] D[macro]
  7892     next
  7893   } else {
  7894     # Replace #undef with comments.  This is necessary, for example,
  7895     # in the case of _POSIX_SOURCE, which is predefined and required
  7896     # on some systems where configure will not decide to define it.
  7897     if (defundef == "undef") {
  7898       print "/*", prefix defundef, macro, "*/"
  7899       next
  7903 { print }
  7904 _ACAWK
  7905 _ACEOF
  7906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7907   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7908 fi # test -n "$CONFIG_HEADERS"
  7911 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  7912 shift
  7913 for ac_tag
  7914 do
  7915   case $ac_tag in
  7916   :[FHLC]) ac_mode=$ac_tag; continue;;
  7917   esac
  7918   case $ac_mode$ac_tag in
  7919   :[FHL]*:*);;
  7920   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7921   :[FH]-) ac_tag=-:-;;
  7922   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7923   esac
  7924   ac_save_IFS=$IFS
  7925   IFS=:
  7926   set x $ac_tag
  7927   IFS=$ac_save_IFS
  7928   shift
  7929   ac_file=$1
  7930   shift
  7932   case $ac_mode in
  7933   :L) ac_source=$1;;
  7934   :[FH])
  7935     ac_file_inputs=
  7936     for ac_f
  7937     do
  7938       case $ac_f in
  7939       -) ac_f="$ac_tmp/stdin";;
  7940       *) # Look for the file first in the build tree, then in the source tree
  7941 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  7942 	 # because $ac_f cannot contain `:'.
  7943 	 test -f "$ac_f" ||
  7944 	   case $ac_f in
  7945 	   [\\/$]*) false;;
  7946 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7947 	   esac ||
  7948 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7949       esac
  7950       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7951       as_fn_append ac_file_inputs " '$ac_f'"
  7952     done
  7954     # Let's still pretend it is `configure' which instantiates (i.e., don't
  7955     # use $as_me), people would be surprised to read:
  7956     #    /* config.h.  Generated by config.status.  */
  7957     configure_input='Generated from '`
  7958 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7959 	`' by configure.'
  7960     if test x"$ac_file" != x-; then
  7961       configure_input="$ac_file.  $configure_input"
  7962       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7963 $as_echo "$as_me: creating $ac_file" >&6;}
  7964     fi
  7965     # Neutralize special characters interpreted by sed in replacement strings.
  7966     case $configure_input in #(
  7967     *\&* | *\|* | *\\* )
  7968        ac_sed_conf_input=`$as_echo "$configure_input" |
  7969        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7970     *) ac_sed_conf_input=$configure_input;;
  7971     esac
  7973     case $ac_tag in
  7974     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7975       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7976     esac
  7977     ;;
  7978   esac
  7980   ac_dir=`$as_dirname -- "$ac_file" ||
  7981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7982 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  7983 	 X"$ac_file" : 'X\(//\)$' \| \
  7984 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7985 $as_echo X"$ac_file" |
  7986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7987 	    s//\1/
  7990 	  /^X\(\/\/\)[^/].*/{
  7991 	    s//\1/
  7994 	  /^X\(\/\/\)$/{
  7995 	    s//\1/
  7998 	  /^X\(\/\).*/{
  7999 	    s//\1/
  8002 	  s/.*/./; q'`
  8003   as_dir="$ac_dir"; as_fn_mkdir_p
  8004   ac_builddir=.
  8006 case "$ac_dir" in
  8007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8008 *)
  8009   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8010   # A ".." for each directory in $ac_dir_suffix.
  8011   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8012   case $ac_top_builddir_sub in
  8013   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8014   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8015   esac ;;
  8016 esac
  8017 ac_abs_top_builddir=$ac_pwd
  8018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8019 # for backward compatibility:
  8020 ac_top_builddir=$ac_top_build_prefix
  8022 case $srcdir in
  8023   .)  # We are building in place.
  8024     ac_srcdir=.
  8025     ac_top_srcdir=$ac_top_builddir_sub
  8026     ac_abs_top_srcdir=$ac_pwd ;;
  8027   [\\/]* | ?:[\\/]* )  # Absolute name.
  8028     ac_srcdir=$srcdir$ac_dir_suffix;
  8029     ac_top_srcdir=$srcdir
  8030     ac_abs_top_srcdir=$srcdir ;;
  8031   *) # Relative name.
  8032     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8033     ac_top_srcdir=$ac_top_build_prefix$srcdir
  8034     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8035 esac
  8036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8039   case $ac_mode in
  8040   :F)
  8042   # CONFIG_FILE
  8045   case $INSTALL in
  8046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8047   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8048   esac
  8049 _ACEOF
  8051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8052 # If the template does not know about datarootdir, expand it.
  8053 # FIXME: This hack should be removed a few years after 2.60.
  8054 ac_datarootdir_hack=; ac_datarootdir_seen=
  8055 ac_sed_dataroot='
  8056 /datarootdir/ {
  8060 /@datadir@/p
  8061 /@docdir@/p
  8062 /@infodir@/p
  8063 /@localedir@/p
  8064 /@mandir@/p'
  8065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8066 *datarootdir*) ac_datarootdir_seen=yes;;
  8067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8069 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8070 _ACEOF
  8071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8072   ac_datarootdir_hack='
  8073   s&@datadir@&$datadir&g
  8074   s&@docdir@&$docdir&g
  8075   s&@infodir@&$infodir&g
  8076   s&@localedir@&$localedir&g
  8077   s&@mandir@&$mandir&g
  8078   s&\\\${datarootdir}&$datarootdir&g' ;;
  8079 esac
  8080 _ACEOF
  8082 # Neutralize VPATH when `$srcdir' = `.'.
  8083 # Shell code in configure.ac might set extrasub.
  8084 # FIXME: do we really want to maintain this feature?
  8085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8086 ac_sed_extra="$ac_vpsub
  8087 $extrasub
  8088 _ACEOF
  8089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8090 :t
  8091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8092 s|@configure_input@|$ac_sed_conf_input|;t t
  8093 s&@top_builddir@&$ac_top_builddir_sub&;t t
  8094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8095 s&@srcdir@&$ac_srcdir&;t t
  8096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8097 s&@top_srcdir@&$ac_top_srcdir&;t t
  8098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8099 s&@builddir@&$ac_builddir&;t t
  8100 s&@abs_builddir@&$ac_abs_builddir&;t t
  8101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8102 s&@INSTALL@&$ac_INSTALL&;t t
  8103 $ac_datarootdir_hack
  8105 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8106   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8109   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8110   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  8111       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8113 which seems to be undefined.  Please make sure it is defined" >&5
  8114 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8115 which seems to be undefined.  Please make sure it is defined" >&2;}
  8117   rm -f "$ac_tmp/stdin"
  8118   case $ac_file in
  8119   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8120   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8121   esac \
  8122   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8123  ;;
  8124   :H)
  8126   # CONFIG_HEADER
  8128   if test x"$ac_file" != x-; then
  8130       $as_echo "/* $configure_input  */" \
  8131       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8132     } >"$ac_tmp/config.h" \
  8133       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8134     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8135       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8136 $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8137     else
  8138       rm -f "$ac_file"
  8139       mv "$ac_tmp/config.h" "$ac_file" \
  8140 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8141     fi
  8142   else
  8143     $as_echo "/* $configure_input  */" \
  8144       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8145       || as_fn_error $? "could not create -" "$LINENO" 5
  8146   fi
  8147  ;;
  8149   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8150 $as_echo "$as_me: executing $ac_file commands" >&6;}
  8151  ;;
  8152   esac
  8155   case $ac_file$ac_mode in
  8156     "include/jemalloc/internal/size_classes.h":C)
  8157   mkdir -p "include/jemalloc/internal"
  8158   "${srcdir}/include/jemalloc/internal/size_classes.sh" > "${objroot}include/jemalloc/internal/size_classes.h"
  8159  ;;
  8161   esac
  8162 done # for ac_tag
  8165 as_fn_exit 0
  8166 _ACEOF
  8167 ac_clean_files=$ac_clean_files_save
  8169 test $ac_write_fail = 0 ||
  8170   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8173 # configure is writing to config.log, and then calls config.status.
  8174 # config.status does its own redirection, appending to config.log.
  8175 # Unfortunately, on DOS this fails, as config.log is still kept open
  8176 # by configure, so config.status won't be able to write to it; its
  8177 # output is simply discarded.  So we exec the FD to /dev/null,
  8178 # effectively closing config.log, so it can be properly (re)opened and
  8179 # appended to by config.status.  When coming back to configure, we
  8180 # need to make the FD available again.
  8181 if test "$no_create" != yes; then
  8182   ac_cs_success=:
  8183   ac_config_status_args=
  8184   test "$silent" = yes &&
  8185     ac_config_status_args="$ac_config_status_args --quiet"
  8186   exec 5>/dev/null
  8187   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8188   exec 5>>config.log
  8189   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8190   # would make configure fail if this is the last instruction.
  8191   $ac_cs_success || as_fn_exit 1
  8192 fi
  8193 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8194   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8195 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8196 fi
  8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  8200 $as_echo "===============================================================================" >&6; }
  8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
  8202 $as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
  8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
  8204 $as_echo "library revision   : ${rev}" >&6; }
  8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  8206 $as_echo "" >&6; }
  8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
  8208 $as_echo "CC                 : ${CC}" >&6; }
  8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
  8210 $as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
  8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS             : ${CFLAGS}" >&5
  8212 $as_echo "CFLAGS             : ${CFLAGS}" >&6; }
  8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
  8214 $as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
  8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
  8216 $as_echo "LIBS               : ${LIBS}" >&6; }
  8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
  8218 $as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
  8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  8220 $as_echo "" >&6; }
  8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
  8222 $as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
  8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
  8224 $as_echo "XSLROOT            : ${XSLROOT}" >&6; }
  8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  8226 $as_echo "" >&6; }
  8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
  8228 $as_echo "PREFIX             : ${PREFIX}" >&6; }
  8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
  8230 $as_echo "BINDIR             : ${BINDIR}" >&6; }
  8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
  8232 $as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
  8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
  8234 $as_echo "LIBDIR             : ${LIBDIR}" >&6; }
  8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
  8236 $as_echo "DATADIR            : ${DATADIR}" >&6; }
  8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
  8238 $as_echo "MANDIR             : ${MANDIR}" >&6; }
  8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  8240 $as_echo "" >&6; }
  8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
  8242 $as_echo "srcroot            : ${srcroot}" >&6; }
  8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
  8244 $as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
  8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
  8246 $as_echo "objroot            : ${objroot}" >&6; }
  8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
  8248 $as_echo "abs_objroot        : ${abs_objroot}" >&6; }
  8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  8250 $as_echo "" >&6; }
  8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
  8252 $as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
  8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
  8254 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
  8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
  8256 $as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
  8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
  8258 $as_echo "install_suffix     : ${install_suffix}" >&6; }
  8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
  8260 $as_echo "autogen            : ${enable_autogen}" >&6; }
  8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental       : ${enable_experimental}" >&5
  8262 $as_echo "experimental       : ${enable_experimental}" >&6; }
  8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence         : ${enable_cc_silence}" >&5
  8264 $as_echo "cc-silence         : ${enable_cc_silence}" >&6; }
  8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
  8266 $as_echo "debug              : ${enable_debug}" >&6; }
  8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
  8268 $as_echo "stats              : ${enable_stats}" >&6; }
  8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
  8270 $as_echo "prof               : ${enable_prof}" >&6; }
  8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
  8272 $as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
  8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
  8274 $as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
  8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
  8276 $as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
  8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache             : ${enable_tcache}" >&5
  8278 $as_echo "tcache             : ${enable_tcache}" >&6; }
  8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
  8280 $as_echo "fill               : ${enable_fill}" >&6; }
  8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
  8282 $as_echo "utrace             : ${enable_utrace}" >&6; }
  8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind           : ${enable_valgrind}" >&5
  8284 $as_echo "valgrind           : ${enable_valgrind}" >&6; }
  8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
  8286 $as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
  8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mremap             : ${enable_mremap}" >&5
  8288 $as_echo "mremap             : ${enable_mremap}" >&6; }
  8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap             : ${enable_munmap}" >&5
  8290 $as_echo "munmap             : ${enable_munmap}" >&6; }
  8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dss                : ${enable_dss}" >&5
  8292 $as_echo "dss                : ${enable_dss}" >&6; }
  8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
  8294 $as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
  8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tls                : ${enable_tls}" >&5
  8296 $as_echo "tls                : ${enable_tls}" >&6; }
  8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  8298 $as_echo "===============================================================================" >&6; }

mercurial