| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Matthias Klose | 0f4c16e | 2012-03-14 23:10:15 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.68 for python 3.2. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
 | 11 | # Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12 | # | 
 | 13 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation | 
 | 15 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
 | 17 | ## M4sh Initialization. ## | 
 | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
 | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 |   emulate sh | 
 | 24 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 25 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 |   # is contrary to our usage.  Disable this feature. | 
 | 27 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 30 |   case `(set -o) 2>/dev/null` in #( | 
 | 31 |   *posix*) : | 
 | 32 |     set -o posix ;; #( | 
 | 33 |   *) : | 
 | 34 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 |  | 
 | 38 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 39 | as_nl=' | 
 | 40 | ' | 
 | 41 | export as_nl | 
 | 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 47 | # but without wasting forks for bash or zsh. | 
 | 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 49 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 50 |   as_echo='print -r --' | 
 | 51 |   as_echo_n='print -rn --' | 
 | 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 53 |   as_echo='printf %s\n' | 
 | 54 |   as_echo_n='printf %s' | 
 | 55 | else | 
 | 56 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 57 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 58 |     as_echo_n='/usr/ucb/echo -n' | 
 | 59 |   else | 
 | 60 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 61 |     as_echo_n_body='eval | 
 | 62 |       arg=$1; | 
 | 63 |       case $arg in #( | 
 | 64 |       *"$as_nl"*) | 
 | 65 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 66 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 67 |       esac; | 
 | 68 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 69 |     ' | 
 | 70 |     export as_echo_n_body | 
 | 71 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 72 |   fi | 
 | 73 |   export as_echo_body | 
 | 74 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 75 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 |  | 
 | 77 | # The user is always right. | 
 | 78 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 79 |   PATH_SEPARATOR=: | 
 | 80 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 81 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 82 |       PATH_SEPARATOR=';' | 
 | 83 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 |  | 
 | 87 | # IFS | 
 | 88 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 89 | # there to prevent editors from complaining about space-tab. | 
 | 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 91 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" ""	$as_nl" | 
 | 93 |  | 
 | 94 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 95 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 96 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 97 |   *[\\/]* ) as_myself=$0 ;; | 
 | 98 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 99 | for as_dir in $PATH | 
 | 100 | do | 
 | 101 |   IFS=$as_save_IFS | 
 | 102 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 103 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 104 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 106 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 107 |      ;; | 
 | 108 | esac | 
 | 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 110 | # in which case we are not to be found in the path. | 
 | 111 | if test "x$as_myself" = x; then | 
 | 112 |   as_myself=$0 | 
 | 113 | fi | 
 | 114 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 115 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 116 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 117 | fi | 
 | 118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 119 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 120 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 121 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 122 | # trigger a bug in pdksh 5.2.14. | 
 | 123 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 124 | do eval test x\${$as_var+set} = xset \ | 
 | 125 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 126 | done | 
 | 127 | PS1='$ ' | 
 | 128 | PS2='> ' | 
 | 129 | PS4='+ ' | 
 | 130 |  | 
 | 131 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 132 | LC_ALL=C | 
 | 133 | export LC_ALL | 
 | 134 | LANGUAGE=C | 
 | 135 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 136 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 137 | # CDPATH. | 
 | 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 139 |  | 
 | 140 | if test "x$CONFIG_SHELL" = x; then | 
 | 141 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 142 |   emulate sh | 
 | 143 |   NULLCMD=: | 
 | 144 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 145 |   # is contrary to our usage.  Disable this feature. | 
 | 146 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 147 |   setopt NO_GLOB_SUBST | 
 | 148 | else | 
 | 149 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 150 |   *posix*) : | 
 | 151 |     set -o posix ;; #( | 
 | 152 |   *) : | 
 | 153 |      ;; | 
 | 154 | esac | 
 | 155 | fi | 
 | 156 | " | 
 | 157 |   as_required="as_fn_return () { (exit \$1); } | 
 | 158 | as_fn_success () { as_fn_return 0; } | 
 | 159 | as_fn_failure () { as_fn_return 1; } | 
 | 160 | as_fn_ret_success () { return 0; } | 
 | 161 | as_fn_ret_failure () { return 1; } | 
 | 162 |  | 
 | 163 | exitcode=0 | 
 | 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 169 |  | 
 | 170 | else | 
 | 171 |   exitcode=1; echo positional parameters were not saved. | 
 | 172 | fi | 
 | 173 | test x\$exitcode = x0 || exit 1" | 
 | 174 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 175 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 176 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 177 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 178 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 179 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 180 |   as_have_required=yes | 
 | 181 | else | 
 | 182 |   as_have_required=no | 
 | 183 | fi | 
 | 184 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 185 |  | 
 | 186 | else | 
 | 187 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 188 | as_found=false | 
 | 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 190 | do | 
 | 191 |   IFS=$as_save_IFS | 
 | 192 |   test -z "$as_dir" && as_dir=. | 
 | 193 |   as_found=: | 
 | 194 |   case $as_dir in #( | 
 | 195 | 	 /*) | 
 | 196 | 	   for as_base in sh bash ksh sh5; do | 
 | 197 | 	     # Try only shells that exist, to save several forks. | 
 | 198 | 	     as_shell=$as_dir/$as_base | 
 | 199 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 200 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 201 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 202 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 203 |   break 2 | 
 | 204 | fi | 
 | 205 | fi | 
 | 206 | 	   done;; | 
 | 207 |        esac | 
 | 208 |   as_found=false | 
 | 209 | done | 
 | 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 211 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 212 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 213 | fi; } | 
 | 214 | IFS=$as_save_IFS | 
 | 215 |  | 
 | 216 |  | 
 | 217 |       if test "x$CONFIG_SHELL" != x; then : | 
 | 218 |   # We cannot yet assume a decent shell, so we have to provide a | 
 | 219 | 	# neutralization value for shells without unset; and this also | 
 | 220 | 	# works around shells that cannot unset nonexistent variables. | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 221 | 	# Preserve -v and -x to the replacement shell. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 222 | 	BASH_ENV=/dev/null | 
 | 223 | 	ENV=/dev/null | 
 | 224 | 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 225 | 	export CONFIG_SHELL | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 226 | 	case $- in # (((( | 
 | 227 | 	  *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 228 | 	  *v* ) as_opts=-v ;; | 
 | 229 | 	  *x* ) as_opts=-x ;; | 
 | 230 | 	  * ) as_opts= ;; | 
 | 231 | 	esac | 
 | 232 | 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 233 | fi | 
 | 234 |  | 
 | 235 |     if test x$as_have_required = xno; then : | 
 | 236 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 237 |   $as_echo "$0: the shells that I found on your system." | 
 | 238 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 239 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 240 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 241 |   else | 
 | 242 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 243 | $0: http://bugs.python.org/ about your system, including | 
 | 244 | $0: any error possibly output before this message. Then | 
 | 245 | $0: install a modern shell, or manually run the script | 
 | 246 | $0: under such a shell if you do have one." | 
 | 247 |   fi | 
 | 248 |   exit 1 | 
 | 249 | fi | 
 | 250 | fi | 
 | 251 | fi | 
 | 252 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 253 | export SHELL | 
 | 254 | # Unset more variables known to interfere with behavior of common tools. | 
 | 255 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 256 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 257 |  | 
 | 258 | ## --------------------- ## | 
 | 259 | ## M4sh Shell Functions. ## | 
 | 260 | ## --------------------- ## | 
 | 261 | # as_fn_unset VAR | 
 | 262 | # --------------- | 
 | 263 | # Portably unset VAR. | 
 | 264 | as_fn_unset () | 
 | 265 | { | 
 | 266 |   { eval $1=; unset $1;} | 
 | 267 | } | 
 | 268 | as_unset=as_fn_unset | 
 | 269 |  | 
 | 270 | # as_fn_set_status STATUS | 
 | 271 | # ----------------------- | 
 | 272 | # Set $? to STATUS, without forking. | 
 | 273 | as_fn_set_status () | 
 | 274 | { | 
 | 275 |   return $1 | 
 | 276 | } # as_fn_set_status | 
 | 277 |  | 
 | 278 | # as_fn_exit STATUS | 
 | 279 | # ----------------- | 
 | 280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 281 | as_fn_exit () | 
 | 282 | { | 
 | 283 |   set +e | 
 | 284 |   as_fn_set_status $1 | 
 | 285 |   exit $1 | 
 | 286 | } # as_fn_exit | 
 | 287 |  | 
 | 288 | # as_fn_mkdir_p | 
 | 289 | # ------------- | 
 | 290 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 291 | as_fn_mkdir_p () | 
 | 292 | { | 
 | 293 |  | 
 | 294 |   case $as_dir in #( | 
 | 295 |   -*) as_dir=./$as_dir;; | 
 | 296 |   esac | 
 | 297 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 298 |     as_dirs= | 
 | 299 |     while :; do | 
 | 300 |       case $as_dir in #( | 
 | 301 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 302 |       *) as_qdir=$as_dir;; | 
 | 303 |       esac | 
 | 304 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 305 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 307 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 308 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 309 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 310 | $as_echo X"$as_dir" | | 
 | 311 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 312 | 	    s//\1/ | 
 | 313 | 	    q | 
 | 314 | 	  } | 
 | 315 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 316 | 	    s//\1/ | 
 | 317 | 	    q | 
 | 318 | 	  } | 
 | 319 | 	  /^X\(\/\/\)$/{ | 
 | 320 | 	    s//\1/ | 
 | 321 | 	    q | 
 | 322 | 	  } | 
 | 323 | 	  /^X\(\/\).*/{ | 
 | 324 | 	    s//\1/ | 
 | 325 | 	    q | 
 | 326 | 	  } | 
 | 327 | 	  s/.*/./; q'` | 
 | 328 |       test -d "$as_dir" && break | 
 | 329 |     done | 
 | 330 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 331 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 332 |  | 
 | 333 |  | 
 | 334 | } # as_fn_mkdir_p | 
 | 335 | # as_fn_append VAR VALUE | 
 | 336 | # ---------------------- | 
 | 337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 338 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 339 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 340 | # implementations. | 
 | 341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 342 |   eval 'as_fn_append () | 
 | 343 |   { | 
 | 344 |     eval $1+=\$2 | 
 | 345 |   }' | 
 | 346 | else | 
 | 347 |   as_fn_append () | 
 | 348 |   { | 
 | 349 |     eval $1=\$$1\$2 | 
 | 350 |   } | 
 | 351 | fi # as_fn_append | 
 | 352 |  | 
 | 353 | # as_fn_arith ARG... | 
 | 354 | # ------------------ | 
 | 355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 357 | # must be portable across $(()) and expr. | 
 | 358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 359 |   eval 'as_fn_arith () | 
 | 360 |   { | 
 | 361 |     as_val=$(( $* )) | 
 | 362 |   }' | 
 | 363 | else | 
 | 364 |   as_fn_arith () | 
 | 365 |   { | 
 | 366 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 367 |   } | 
 | 368 | fi # as_fn_arith | 
 | 369 |  | 
 | 370 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 372 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 375 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 376 | as_fn_error () | 
 | 377 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 378 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 379 |   if test "$4"; then | 
 | 380 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 381 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 382 |   fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 383 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 384 |   as_fn_exit $as_status | 
 | 385 | } # as_fn_error | 
 | 386 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 387 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 388 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 389 |   as_expr=expr | 
 | 390 | else | 
 | 391 |   as_expr=false | 
 | 392 | fi | 
 | 393 |  | 
 | 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 395 |   as_basename=basename | 
 | 396 | else | 
 | 397 |   as_basename=false | 
 | 398 | fi | 
 | 399 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 401 |   as_dirname=dirname | 
 | 402 | else | 
 | 403 |   as_dirname=false | 
 | 404 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 405 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 406 | as_me=`$as_basename -- "$0" || | 
 | 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 408 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 409 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 410 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 411 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 412 | 	    s//\1/ | 
 | 413 | 	    q | 
 | 414 | 	  } | 
 | 415 | 	  /^X\/\(\/\/\)$/{ | 
 | 416 | 	    s//\1/ | 
 | 417 | 	    q | 
 | 418 | 	  } | 
 | 419 | 	  /^X\/\(\/\).*/{ | 
 | 420 | 	    s//\1/ | 
 | 421 | 	    q | 
 | 422 | 	  } | 
 | 423 | 	  s/.*/./; q'` | 
 | 424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | # Avoid depending upon Character Ranges. | 
 | 426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 429 | as_cr_digits='0123456789' | 
 | 430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 431 |  | 
 | 432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 433 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 434 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 435 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 436 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 437 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 438 |   sed -n ' | 
 | 439 |     p | 
 | 440 |     /[$]LINENO/= | 
 | 441 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 |     sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 |       s/[$]LINENO.*/&-/ | 
 | 444 |       t lineno | 
 | 445 |       b | 
 | 446 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 |       N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 448 |       :loop | 
 | 449 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 |       t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 451 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 |     ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 453 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 454 |     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 |  | 
 | 456 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 457 |   # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 459 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 |   # Exit status is that of the last command. | 
 | 461 |   exit | 
 | 462 | } | 
 | 463 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 465 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 467 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 468 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 469 |   xy)  ECHO_C='\c';; | 
 | 470 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 471 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 472 |   esac;; | 
 | 473 | *) | 
 | 474 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 476 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | if test -d conf$$.dir; then | 
 | 479 |   rm -f conf$$.dir/conf$$.file | 
 | 480 | else | 
 | 481 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 482 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 484 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 485 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 486 |     as_ln_s='ln -s' | 
 | 487 |     # ... but there are two gotchas: | 
 | 488 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 489 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 490 |     # In both cases, we have to default to `cp -p'. | 
 | 491 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 492 |       as_ln_s='cp -p' | 
 | 493 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 494 |     as_ln_s=ln | 
 | 495 |   else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 |     as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 497 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 498 | else | 
 | 499 |   as_ln_s='cp -p' | 
 | 500 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 502 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 503 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 504 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 505 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 506 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 507 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 508 |   as_mkdir_p=false | 
 | 509 | fi | 
 | 510 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | if test -x / >/dev/null 2>&1; then | 
 | 512 |   as_test_x='test -x' | 
 | 513 | else | 
 | 514 |   if ls -dL / >/dev/null 2>&1; then | 
 | 515 |     as_ls_L_option=L | 
 | 516 |   else | 
 | 517 |     as_ls_L_option= | 
 | 518 |   fi | 
 | 519 |   as_test_x=' | 
 | 520 |     eval sh -c '\'' | 
 | 521 |       if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 522 | 	test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 523 |       else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 524 | 	case $1 in #( | 
 | 525 | 	-*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 526 | 	esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 527 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 528 | 	???[sx]*):;;*)false;;esac;fi | 
 | 529 |     '\'' sh | 
 | 530 |   ' | 
 | 531 | fi | 
 | 532 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 |  | 
 | 534 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 536 |  | 
 | 537 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 |  | 
 | 540 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 541 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 542 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 |  | 
 | 544 | # Name of the host. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | # so uname gets run too. | 
 | 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | # | 
 | 550 | # Initializations. | 
 | 551 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 552 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 553 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 554 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 555 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | cross_compiling=no | 
 | 557 | subdirs= | 
 | 558 | MFLAGS= | 
 | 559 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='python' | 
 | 563 | PACKAGE_TARNAME='python' | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.2' | 
 | 565 | PACKAGE_STRING='python 3.2' | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 567 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 |  | 
 | 569 | ac_unique_file="Include/object.h" | 
 | 570 | # Factoring default headers for most tests. | 
 | 571 | ac_includes_default="\ | 
 | 572 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 573 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | # include <sys/types.h> | 
 | 575 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 576 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | # include <sys/stat.h> | 
 | 578 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # include <stdlib.h> | 
 | 581 | # include <stddef.h> | 
 | 582 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 583 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | #  include <stdlib.h> | 
 | 585 | # endif | 
 | 586 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 587 | #ifdef HAVE_STRING_H | 
 | 588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | #  include <memory.h> | 
 | 590 | # endif | 
 | 591 | # include <string.h> | 
 | 592 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 593 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <strings.h> | 
 | 595 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 596 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 598 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 599 | #ifdef HAVE_STDINT_H | 
 | 600 | # include <stdint.h> | 
 | 601 | #endif | 
 | 602 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <unistd.h> | 
 | 604 | #endif" | 
 | 605 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 607 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 608 | THREADHEADERS | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 609 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 610 | LIBC | 
 | 611 | LIBM | 
 | 612 | HAVE_GETHOSTBYNAME | 
 | 613 | HAVE_GETHOSTBYNAME_R | 
 | 614 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 615 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 616 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 617 | LIBOBJS | 
 | 618 | TRUE | 
 | 619 | MACHDEP_OBJS | 
 | 620 | DYNLOADFILE | 
 | 621 | DLINCLDIR | 
 | 622 | THREADOBJ | 
 | 623 | LDLAST | 
 | 624 | USE_THREAD_MODULE | 
 | 625 | SIGNAL_OBJS | 
 | 626 | USE_SIGNAL_MODULE | 
 | 627 | LIBFFI_INCLUDEDIR | 
 | 628 | PKG_CONFIG | 
 | 629 | SHLIBS | 
 | 630 | CFLAGSFORSHARED | 
 | 631 | LINKFORSHARED | 
 | 632 | CCSHARED | 
 | 633 | BLDSHARED | 
 | 634 | LDCXXSHARED | 
 | 635 | LDSHARED | 
 | 636 | SO | 
 | 637 | LIBTOOL_CRUFT | 
 | 638 | OTHER_LIBTOOL_OPT | 
 | 639 | UNIVERSAL_ARCH_FLAGS | 
 | 640 | BASECFLAGS | 
 | 641 | OPT | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 642 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 643 | LN | 
| Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 644 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 645 | INSTALL_DATA | 
 | 646 | INSTALL_SCRIPT | 
 | 647 | INSTALL_PROGRAM | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 648 | HAS_PYTHON | 
 | 649 | DISABLE_ASDLGEN | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 650 | HAS_HG | 
 | 651 | HGBRANCH | 
 | 652 | HGTAG | 
 | 653 | HGVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 654 | SVNVERSION | 
 | 655 | ARFLAGS | 
 | 656 | AR | 
 | 657 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 658 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 659 | GNULD | 
 | 660 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 661 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 662 | RUNSHARED | 
 | 663 | INSTSONAME | 
 | 664 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 665 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 666 | BLDLIBRARY | 
 | 667 | DLLLIBRARY | 
 | 668 | LDLIBRARY | 
 | 669 | LIBRARY | 
 | 670 | BUILDEXEEXT | 
 | 671 | EGREP | 
 | 672 | GREP | 
 | 673 | CPP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 674 | NO_AS_NEEDED | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 675 | MAINCC | 
 | 676 | CXX | 
 | 677 | OBJEXT | 
 | 678 | EXEEXT | 
 | 679 | ac_ct_CC | 
 | 680 | CPPFLAGS | 
 | 681 | LDFLAGS | 
 | 682 | CFLAGS | 
 | 683 | CC | 
 | 684 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 685 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 686 | SGI_ABI | 
 | 687 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 688 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 690 | FRAMEWORKALTINSTALLLAST | 
 | 691 | FRAMEWORKALTINSTALLFIRST | 
 | 692 | FRAMEWORKINSTALLLAST | 
 | 693 | FRAMEWORKINSTALLFIRST | 
 | 694 | PYTHONFRAMEWORKINSTALLDIR | 
 | 695 | PYTHONFRAMEWORKPREFIX | 
 | 696 | PYTHONFRAMEWORKDIR | 
 | 697 | PYTHONFRAMEWORKIDENTIFIER | 
 | 698 | PYTHONFRAMEWORK | 
 | 699 | LIPO_32BIT_FLAGS | 
 | 700 | ARCH_RUN_32BIT | 
 | 701 | UNIVERSALSDK | 
 | 702 | CONFIG_ARGS | 
 | 703 | SOVERSION | 
 | 704 | VERSION | 
 | 705 | target_alias | 
 | 706 | host_alias | 
 | 707 | build_alias | 
 | 708 | LIBS | 
 | 709 | ECHO_T | 
 | 710 | ECHO_N | 
 | 711 | ECHO_C | 
 | 712 | DEFS | 
 | 713 | mandir | 
 | 714 | localedir | 
 | 715 | libdir | 
 | 716 | psdir | 
 | 717 | pdfdir | 
 | 718 | dvidir | 
 | 719 | htmldir | 
 | 720 | infodir | 
 | 721 | docdir | 
 | 722 | oldincludedir | 
 | 723 | includedir | 
 | 724 | localstatedir | 
 | 725 | sharedstatedir | 
 | 726 | sysconfdir | 
 | 727 | datadir | 
 | 728 | datarootdir | 
 | 729 | libexecdir | 
 | 730 | sbindir | 
 | 731 | bindir | 
 | 732 | program_transform_name | 
 | 733 | prefix | 
 | 734 | exec_prefix | 
 | 735 | PACKAGE_URL | 
 | 736 | PACKAGE_BUGREPORT | 
 | 737 | PACKAGE_STRING | 
 | 738 | PACKAGE_VERSION | 
 | 739 | PACKAGE_TARNAME | 
 | 740 | PACKAGE_NAME | 
 | 741 | PATH_SEPARATOR | 
 | 742 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 743 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 744 | ac_user_opts=' | 
 | 745 | enable_option_checking | 
 | 746 | enable_universalsdk | 
 | 747 | with_universal_archs | 
 | 748 | with_framework_name | 
 | 749 | enable_framework | 
 | 750 | with_gcc | 
 | 751 | with_cxx_main | 
 | 752 | with_suffix | 
 | 753 | enable_shared | 
 | 754 | enable_profiling | 
 | 755 | with_pydebug | 
 | 756 | with_libs | 
 | 757 | with_system_expat | 
 | 758 | with_system_ffi | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 759 | enable_loadable_sqlite_extensions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 760 | with_dbmliborder | 
 | 761 | with_signal_module | 
 | 762 | with_dec_threads | 
 | 763 | with_threads | 
 | 764 | with_thread | 
 | 765 | enable_ipv6 | 
 | 766 | with_doc_strings | 
 | 767 | with_tsc | 
 | 768 | with_pymalloc | 
 | 769 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 770 | with_fpectl | 
 | 771 | with_libm | 
 | 772 | with_libc | 
 | 773 | enable_big_digits | 
 | 774 | with_wide_unicode | 
 | 775 | with_computed_gotos | 
 | 776 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 777 |       ac_precious_vars='build_alias | 
 | 778 | host_alias | 
 | 779 | target_alias | 
 | 780 | CC | 
 | 781 | CFLAGS | 
 | 782 | LDFLAGS | 
 | 783 | LIBS | 
 | 784 | CPPFLAGS | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 785 | CPP' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 786 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 787 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 789 | ac_init_help= | 
 | 790 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 791 | ac_unrecognized_opts= | 
 | 792 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 793 | # The variables have the same names as the options, with | 
 | 794 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 795 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 797 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 798 | no_recursion= | 
 | 799 | prefix=NONE | 
 | 800 | program_prefix=NONE | 
 | 801 | program_suffix=NONE | 
 | 802 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 804 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 806 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 807 | x_includes=NONE | 
 | 808 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 809 |  | 
 | 810 | # Installation directory options. | 
 | 811 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 812 | # and all the variables that are supposed to be based on exec_prefix | 
 | 813 | # by default will actually change. | 
 | 814 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 815 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 816 | bindir='${exec_prefix}/bin' | 
 | 817 | sbindir='${exec_prefix}/sbin' | 
 | 818 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 819 | datarootdir='${prefix}/share' | 
 | 820 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 821 | sysconfdir='${prefix}/etc' | 
 | 822 | sharedstatedir='${prefix}/com' | 
 | 823 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | includedir='${prefix}/include' | 
 | 825 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 826 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 827 | infodir='${datarootdir}/info' | 
 | 828 | htmldir='${docdir}' | 
 | 829 | dvidir='${docdir}' | 
 | 830 | pdfdir='${docdir}' | 
 | 831 | psdir='${docdir}' | 
 | 832 | libdir='${exec_prefix}/lib' | 
 | 833 | localedir='${datarootdir}/locale' | 
 | 834 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 835 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 836 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 838 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 839 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 |   # If the previous option needs an argument, assign it. | 
 | 841 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 843 |     ac_prev= | 
 | 844 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 845 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 846 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 847 |   case $ac_option in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 848 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 849 |   *=)   ac_optarg= ;; | 
 | 850 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 851 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 855 |   case $ac_dashdash$ac_option in | 
 | 856 |   --) | 
 | 857 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 859 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 860 |     ac_prev=bindir ;; | 
 | 861 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 863 |  | 
 | 864 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 865 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 866 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 867 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 870 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 871 |     ac_prev=cache_file ;; | 
 | 872 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 873 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 874 |     cache_file=$ac_optarg ;; | 
 | 875 |  | 
 | 876 |   --config-cache | -C) | 
 | 877 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 878 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 879 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 881 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 882 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 883 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 884 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 885 |   | --dataroo | --dataro | --datar) | 
 | 886 |     ac_prev=datarootdir ;; | 
 | 887 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 888 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 889 |     datarootdir=$ac_optarg ;; | 
 | 890 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 892 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 894 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 895 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 896 |     ac_useropt_orig=$ac_useropt | 
 | 897 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 898 |     case $ac_user_opts in | 
 | 899 |       *" | 
 | 900 | "enable_$ac_useropt" | 
 | 901 | "*) ;; | 
 | 902 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 903 | 	 ac_unrecognized_sep=', ';; | 
 | 904 |     esac | 
 | 905 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 906 |  | 
 | 907 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 908 |     ac_prev=docdir ;; | 
 | 909 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 910 |     docdir=$ac_optarg ;; | 
 | 911 |  | 
 | 912 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 913 |     ac_prev=dvidir ;; | 
 | 914 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 915 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 |  | 
 | 917 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 918 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 919 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 920 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 921 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 922 |     ac_useropt_orig=$ac_useropt | 
 | 923 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 924 |     case $ac_user_opts in | 
 | 925 |       *" | 
 | 926 | "enable_$ac_useropt" | 
 | 927 | "*) ;; | 
 | 928 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 929 | 	 ac_unrecognized_sep=', ';; | 
 | 930 |     esac | 
 | 931 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 933 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 934 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 935 |   | --exec | --exe | --ex) | 
 | 936 |     ac_prev=exec_prefix ;; | 
 | 937 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 938 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 939 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 |  | 
 | 942 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 943 |     # Obsolete; use --with-gas. | 
 | 944 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 945 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 946 |   -help | --help | --hel | --he | -h) | 
 | 947 |     ac_init_help=long ;; | 
 | 948 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 949 |     ac_init_help=recursive ;; | 
 | 950 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 951 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 |  | 
 | 953 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 954 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 958 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 959 |     ac_prev=htmldir ;; | 
 | 960 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 961 |   | --ht=*) | 
 | 962 |     htmldir=$ac_optarg ;; | 
 | 963 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 965 |   | --includ | --inclu | --incl | --inc) | 
 | 966 |     ac_prev=includedir ;; | 
 | 967 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 968 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 970 |  | 
 | 971 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 972 |     ac_prev=infodir ;; | 
 | 973 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 |  | 
 | 976 |   -libdir | --libdir | --libdi | --libd) | 
 | 977 |     ac_prev=libdir ;; | 
 | 978 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 979 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 980 |  | 
 | 981 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 982 |   | --libexe | --libex | --libe) | 
 | 983 |     ac_prev=libexecdir ;; | 
 | 984 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 985 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 987 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 988 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 989 |     ac_prev=localedir ;; | 
 | 990 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 991 |     localedir=$ac_optarg ;; | 
 | 992 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 993 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 994 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 995 |     ac_prev=localstatedir ;; | 
 | 996 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 997 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 |  | 
 | 1000 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1001 |     ac_prev=mandir ;; | 
 | 1002 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1003 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1004 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1006 |     # Obsolete; use --without-fp. | 
 | 1007 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 |  | 
 | 1009 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 |     no_create=yes ;; | 
 | 1012 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1013 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1014 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1015 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1017 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1018 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1019 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1020 |     ac_prev=oldincludedir ;; | 
 | 1021 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1022 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1023 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1025 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1026 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1027 |     ac_prev=prefix ;; | 
 | 1028 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 |  | 
 | 1031 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1032 |   | --program-pre | --program-pr | --program-p) | 
 | 1033 |     ac_prev=program_prefix ;; | 
 | 1034 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1035 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1037 |  | 
 | 1038 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1039 |   | --program-suf | --program-su | --program-s) | 
 | 1040 |     ac_prev=program_suffix ;; | 
 | 1041 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1042 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1044 |  | 
 | 1045 |   -program-transform-name | --program-transform-name \ | 
 | 1046 |   | --program-transform-nam | --program-transform-na \ | 
 | 1047 |   | --program-transform-n | --program-transform- \ | 
 | 1048 |   | --program-transform | --program-transfor \ | 
 | 1049 |   | --program-transfo | --program-transf \ | 
 | 1050 |   | --program-trans | --program-tran \ | 
 | 1051 |   | --progr-tra | --program-tr | --program-t) | 
 | 1052 |     ac_prev=program_transform_name ;; | 
 | 1053 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1054 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1055 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1056 |   | --program-transform=* | --program-transfor=* \ | 
 | 1057 |   | --program-transfo=* | --program-transf=* \ | 
 | 1058 |   | --program-trans=* | --program-tran=* \ | 
 | 1059 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1062 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1063 |     ac_prev=pdfdir ;; | 
 | 1064 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1065 |     pdfdir=$ac_optarg ;; | 
 | 1066 |  | 
 | 1067 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1068 |     ac_prev=psdir ;; | 
 | 1069 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1070 |     psdir=$ac_optarg ;; | 
 | 1071 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1073 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1074 |     silent=yes ;; | 
 | 1075 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1076 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1077 |     ac_prev=sbindir ;; | 
 | 1078 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1079 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1080 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1081 |  | 
 | 1082 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1083 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1084 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1085 |   | --sha | --sh) | 
 | 1086 |     ac_prev=sharedstatedir ;; | 
 | 1087 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1088 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1089 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1090 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1093 |   -site | --site | --sit) | 
 | 1094 |     ac_prev=site ;; | 
 | 1095 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1099 |     ac_prev=srcdir ;; | 
 | 1100 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1103 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1104 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1105 |     ac_prev=sysconfdir ;; | 
 | 1106 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1107 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1109 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1112 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 |  | 
 | 1115 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1116 |     verbose=yes ;; | 
 | 1117 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1118 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1119 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1120 |  | 
 | 1121 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1122 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1124 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1125 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1126 |     ac_useropt_orig=$ac_useropt | 
 | 1127 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1128 |     case $ac_user_opts in | 
 | 1129 |       *" | 
 | 1130 | "with_$ac_useropt" | 
 | 1131 | "*) ;; | 
 | 1132 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1133 | 	 ac_unrecognized_sep=', ';; | 
 | 1134 |     esac | 
 | 1135 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 |  | 
 | 1137 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1138 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1139 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1140 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1141 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1142 |     ac_useropt_orig=$ac_useropt | 
 | 1143 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1144 |     case $ac_user_opts in | 
 | 1145 |       *" | 
 | 1146 | "with_$ac_useropt" | 
 | 1147 | "*) ;; | 
 | 1148 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1149 | 	 ac_unrecognized_sep=', ';; | 
 | 1150 |     esac | 
 | 1151 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1152 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1153 |   --x) | 
 | 1154 |     # Obsolete; use --with-x. | 
 | 1155 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 |  | 
 | 1157 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1158 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1159 |     ac_prev=x_includes ;; | 
 | 1160 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1161 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1163 |  | 
 | 1164 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1165 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1166 |     ac_prev=x_libraries ;; | 
 | 1167 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1168 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1171 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1172 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 |     ;; | 
 | 1174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 |   *=*) | 
 | 1176 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1177 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1178 |     case $ac_envvar in #( | 
 | 1179 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1180 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1181 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1182 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 |     export $ac_envvar ;; | 
 | 1184 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1185 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1187 |     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1189 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1190 |     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 |     ;; | 
 | 1192 |  | 
 | 1193 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1194 | done | 
 | 1195 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1198 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1199 | fi | 
 | 1200 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1201 | if test -n "$ac_unrecognized_opts"; then | 
 | 1202 |   case $enable_option_checking in | 
 | 1203 |     no) ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1204 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1205 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1206 |   esac | 
 | 1207 | fi | 
 | 1208 |  | 
 | 1209 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1210 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1211 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1212 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1213 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1214 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1215 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1216 |   # Remove trailing slashes. | 
 | 1217 |   case $ac_val in | 
 | 1218 |     */ ) | 
 | 1219 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1220 |       eval $ac_var=\$ac_val;; | 
 | 1221 |   esac | 
 | 1222 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1223 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1224 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1225 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1226 |   esac | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1227 |   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1228 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1229 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1230 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1231 | # used to hold the argument of --host etc. | 
 | 1232 | # FIXME: To remove some day. | 
 | 1233 | build=$build_alias | 
 | 1234 | host=$host_alias | 
 | 1235 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1236 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | # FIXME: To remove some day. | 
 | 1238 | if test "x$host_alias" != x; then | 
 | 1239 |   if test "x$build_alias" = x; then | 
 | 1240 |     cross_compiling=maybe | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1241 |     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
 | 1242 |     If a cross compiler is detected then cross compile mode will be used" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1243 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1244 |     cross_compiling=yes | 
 | 1245 |   fi | 
 | 1246 | fi | 
 | 1247 |  | 
 | 1248 | ac_tool_prefix= | 
 | 1249 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1250 |  | 
 | 1251 | test "$silent" = yes && exec 6>/dev/null | 
 | 1252 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1253 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1254 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1255 | ac_ls_di=`ls -di .` && | 
 | 1256 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1257 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1258 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1259 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1260 |  | 
 | 1261 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1262 | # Find the source files, if location was not specified. | 
 | 1263 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1265 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1266 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1267 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1268 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1269 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1270 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1271 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1272 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1273 | 	    s//\1/ | 
 | 1274 | 	    q | 
 | 1275 | 	  } | 
 | 1276 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1277 | 	    s//\1/ | 
 | 1278 | 	    q | 
 | 1279 | 	  } | 
 | 1280 | 	  /^X\(\/\/\)$/{ | 
 | 1281 | 	    s//\1/ | 
 | 1282 | 	    q | 
 | 1283 | 	  } | 
 | 1284 | 	  /^X\(\/\).*/{ | 
 | 1285 | 	    s//\1/ | 
 | 1286 | 	    q | 
 | 1287 | 	  } | 
 | 1288 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1289 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1290 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 |     srcdir=.. | 
 | 1292 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1293 | else | 
 | 1294 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1295 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1296 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1297 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1298 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1299 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1300 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1301 | ac_abs_confdir=`( | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1302 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1303 | 	pwd)` | 
 | 1304 | # When building in place, set srcdir=. | 
 | 1305 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1306 |   srcdir=. | 
 | 1307 | fi | 
 | 1308 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1309 | # Double slashes in file names in object file debugging info | 
 | 1310 | # mess up M-x gdb in Emacs. | 
 | 1311 | case $srcdir in | 
 | 1312 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1313 | esac | 
 | 1314 | for ac_var in $ac_precious_vars; do | 
 | 1315 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1316 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1317 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1318 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1319 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1320 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1321 | # | 
 | 1322 | # Report the --help message. | 
 | 1323 | # | 
 | 1324 | if test "$ac_init_help" = "long"; then | 
 | 1325 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1326 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1327 |   cat <<_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1328 | \`configure' configures python 3.2 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1329 |  | 
 | 1330 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1331 |  | 
 | 1332 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1333 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1334 |  | 
 | 1335 | Defaults for the options are specified in brackets. | 
 | 1336 |  | 
 | 1337 | Configuration: | 
 | 1338 |   -h, --help              display this help and exit | 
 | 1339 |       --help=short        display options specific to this package | 
 | 1340 |       --help=recursive    display the short help of all the included packages | 
 | 1341 |   -V, --version           display version information and exit | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1342 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1344 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1345 |   -n, --no-create         do not create output files | 
 | 1346 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1347 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1348 | Installation directories: | 
 | 1349 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1350 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1351 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1352 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1353 |  | 
 | 1354 | By default, \`make install' will install all the files in | 
 | 1355 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1356 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1357 | for instance \`--prefix=\$HOME'. | 
 | 1358 |  | 
 | 1359 | For better control, use the options below. | 
 | 1360 |  | 
 | 1361 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1362 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1363 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1364 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1365 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1366 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1367 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1368 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1369 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1370 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1371 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1372 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1373 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1374 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1375 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1376 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1377 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1378 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1379 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1380 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | _ACEOF | 
 | 1382 |  | 
 | 1383 |   cat <<\_ACEOF | 
 | 1384 | _ACEOF | 
 | 1385 | fi | 
 | 1386 |  | 
 | 1387 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1388 |   case $ac_init_help in | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1389 |      short | recursive ) echo "Configuration of python 3.2:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1390 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 |   cat <<\_ACEOF | 
 | 1392 |  | 
 | 1393 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1394 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1396 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1397 |   --enable-universalsdk[=SDKDIR] | 
| Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1398 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1399 |   --enable-framework[=INSTALLDIR] | 
 | 1400 |                           Build (MacOSX|Darwin) framework | 
 | 1401 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1402 |   --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1403 |   --enable-loadable-sqlite-extensions | 
 | 1404 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1405 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1406 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1407 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1408 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 |  | 
 | 1410 | Optional Packages: | 
 | 1411 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1412 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1413 |   --with-universal-archs=ARCH | 
 | 1414 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1415 |                           "64-bit", "3-way", "intel" or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1416 |   --with-framework-name=FRAMEWORK | 
 | 1417 |                           specify an alternate name of the framework built | 
 | 1418 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1419 |   --without-gcc           never use gcc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1420 |   --with-cxx-main=<compiler> | 
 | 1421 |                           compile main() and link python executable with C++ | 
 | 1422 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1423 |   --with-suffix=.exe      set executable suffix | 
 | 1424 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1425 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1426 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1427 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1428 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1429 |   --with-dbmliborder=db1:db2:... | 
 | 1430 |                           order to check db backends for dbm. Valid value is a | 
 | 1431 |                           colon separated string with the backend names | 
 | 1432 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1433 |   --with-signal-module    disable/enable signal module | 
 | 1434 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1435 |   --with(out)-threads[=DIRECTORY] | 
 | 1436 |                           disable/enable thread support | 
 | 1437 |   --with(out)-thread[=DIRECTORY] | 
 | 1438 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1440 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1441 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1442 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1443 |   --with-fpectl           enable SIGFPE catching | 
 | 1444 |   --with-libm=STRING      math library | 
 | 1445 |   --with-libc=STRING      C library | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1446 |   --with-wide-unicode     Use 4-byte Unicode characters (default is 2 bytes) | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1447 |   --with(out)-computed-gotos | 
 | 1448 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1449 |                           default on supported compilers) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 |  | 
 | 1451 | Some influential environment variables: | 
 | 1452 |   CC          C compiler command | 
 | 1453 |   CFLAGS      C compiler flags | 
 | 1454 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1455 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1456 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1457 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1458 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 |   CPP         C preprocessor | 
 | 1460 |  | 
 | 1461 | Use these variables to override the choices made by `configure' or to help | 
 | 1462 | it to find libraries and programs with nonstandard names/locations. | 
 | 1463 |  | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1464 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1466 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | fi | 
 | 1468 |  | 
 | 1469 | if test "$ac_init_help" = "recursive"; then | 
 | 1470 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1472 |     test -d "$ac_dir" || | 
 | 1473 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1474 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1475 |     ac_builddir=. | 
 | 1476 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1477 | case "$ac_dir" in | 
 | 1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1479 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1480 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1481 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1482 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1483 |   case $ac_top_builddir_sub in | 
 | 1484 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1485 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1486 |   esac ;; | 
 | 1487 | esac | 
 | 1488 | ac_abs_top_builddir=$ac_pwd | 
 | 1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1490 | # for backward compatibility: | 
 | 1491 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 |  | 
 | 1493 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1494 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1496 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1497 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1498 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1500 |     ac_top_srcdir=$srcdir | 
 | 1501 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1502 |   *) # Relative name. | 
 | 1503 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1504 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1505 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1508 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1509 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1510 |     # Check for guested configure. | 
 | 1511 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1512 |       echo && | 
 | 1513 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1514 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1515 |       echo && | 
 | 1516 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1518 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1519 |     fi || ac_status=$? | 
 | 1520 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 |   done | 
 | 1522 | fi | 
 | 1523 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1524 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 | if $ac_init_version; then | 
 | 1526 |   cat <<\_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1527 | python configure 3.2 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1528 | generated by GNU Autoconf 2.68 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1530 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 | This configure script is free software; the Free Software Foundation | 
 | 1532 | gives unlimited permission to copy, distribute and modify it. | 
 | 1533 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1534 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1535 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1536 |  | 
 | 1537 | ## ------------------------ ## | 
 | 1538 | ## Autoconf initialization. ## | 
 | 1539 | ## ------------------------ ## | 
 | 1540 |  | 
 | 1541 | # ac_fn_c_try_compile LINENO | 
 | 1542 | # -------------------------- | 
 | 1543 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1544 | ac_fn_c_try_compile () | 
 | 1545 | { | 
 | 1546 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1547 |   rm -f conftest.$ac_objext | 
 | 1548 |   if { { ac_try="$ac_compile" | 
 | 1549 | case "(($ac_try" in | 
 | 1550 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1551 |   *) ac_try_echo=$ac_try;; | 
 | 1552 | esac | 
 | 1553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1554 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1555 |   (eval "$ac_compile") 2>conftest.err | 
 | 1556 |   ac_status=$? | 
 | 1557 |   if test -s conftest.err; then | 
 | 1558 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1559 |     cat conftest.er1 >&5 | 
 | 1560 |     mv -f conftest.er1 conftest.err | 
 | 1561 |   fi | 
 | 1562 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1563 |   test $ac_status = 0; } && { | 
 | 1564 | 	 test -z "$ac_c_werror_flag" || | 
 | 1565 | 	 test ! -s conftest.err | 
 | 1566 |        } && test -s conftest.$ac_objext; then : | 
 | 1567 |   ac_retval=0 | 
 | 1568 | else | 
 | 1569 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1570 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1571 |  | 
 | 1572 | 	ac_retval=1 | 
 | 1573 | fi | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1574 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1575 |   as_fn_set_status $ac_retval | 
 | 1576 |  | 
 | 1577 | } # ac_fn_c_try_compile | 
 | 1578 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1579 | # ac_fn_c_try_link LINENO | 
 | 1580 | # ----------------------- | 
 | 1581 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1582 | ac_fn_c_try_link () | 
 | 1583 | { | 
 | 1584 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1585 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1586 |   if { { ac_try="$ac_link" | 
 | 1587 | case "(($ac_try" in | 
 | 1588 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1589 |   *) ac_try_echo=$ac_try;; | 
 | 1590 | esac | 
 | 1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1592 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1593 |   (eval "$ac_link") 2>conftest.err | 
 | 1594 |   ac_status=$? | 
 | 1595 |   if test -s conftest.err; then | 
 | 1596 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1597 |     cat conftest.er1 >&5 | 
 | 1598 |     mv -f conftest.er1 conftest.err | 
 | 1599 |   fi | 
 | 1600 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1601 |   test $ac_status = 0; } && { | 
 | 1602 | 	 test -z "$ac_c_werror_flag" || | 
 | 1603 | 	 test ! -s conftest.err | 
 | 1604 |        } && test -s conftest$ac_exeext && { | 
 | 1605 | 	 test "$cross_compiling" = yes || | 
 | 1606 | 	 $as_test_x conftest$ac_exeext | 
 | 1607 |        }; then : | 
 | 1608 |   ac_retval=0 | 
 | 1609 | else | 
 | 1610 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1611 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1612 |  | 
 | 1613 | 	ac_retval=1 | 
 | 1614 | fi | 
 | 1615 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1616 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1617 |   # interfere with the next link command; also delete a directory that is | 
 | 1618 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1619 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1620 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1621 |   as_fn_set_status $ac_retval | 
 | 1622 |  | 
 | 1623 | } # ac_fn_c_try_link | 
 | 1624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1625 | # ac_fn_c_try_cpp LINENO | 
 | 1626 | # ---------------------- | 
 | 1627 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1628 | ac_fn_c_try_cpp () | 
 | 1629 | { | 
 | 1630 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1631 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1632 | case "(($ac_try" in | 
 | 1633 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1634 |   *) ac_try_echo=$ac_try;; | 
 | 1635 | esac | 
 | 1636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1637 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1638 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1639 |   ac_status=$? | 
 | 1640 |   if test -s conftest.err; then | 
 | 1641 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1642 |     cat conftest.er1 >&5 | 
 | 1643 |     mv -f conftest.er1 conftest.err | 
 | 1644 |   fi | 
 | 1645 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1646 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1647 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1648 | 	 test ! -s conftest.err | 
 | 1649 |        }; then : | 
 | 1650 |   ac_retval=0 | 
 | 1651 | else | 
 | 1652 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1653 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1654 |  | 
 | 1655 |     ac_retval=1 | 
 | 1656 | fi | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1657 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1658 |   as_fn_set_status $ac_retval | 
 | 1659 |  | 
 | 1660 | } # ac_fn_c_try_cpp | 
 | 1661 |  | 
 | 1662 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1663 | # ------------------------------------------------------- | 
 | 1664 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1665 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1666 | # accordingly. | 
 | 1667 | ac_fn_c_check_header_mongrel () | 
 | 1668 | { | 
 | 1669 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1670 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1671 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1672 | $as_echo_n "checking for $2... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1673 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1674 |   $as_echo_n "(cached) " >&6 | 
 | 1675 | fi | 
 | 1676 | eval ac_res=\$$3 | 
 | 1677 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1678 | $as_echo "$ac_res" >&6; } | 
 | 1679 | else | 
 | 1680 |   # Is the header compilable? | 
 | 1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1682 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1684 | /* end confdefs.h.  */ | 
 | 1685 | $4 | 
 | 1686 | #include <$2> | 
 | 1687 | _ACEOF | 
 | 1688 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1689 |   ac_header_compiler=yes | 
 | 1690 | else | 
 | 1691 |   ac_header_compiler=no | 
 | 1692 | fi | 
 | 1693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1695 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1696 |  | 
 | 1697 | # Is the header present? | 
 | 1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1699 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1701 | /* end confdefs.h.  */ | 
 | 1702 | #include <$2> | 
 | 1703 | _ACEOF | 
 | 1704 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1705 |   ac_header_preproc=yes | 
 | 1706 | else | 
 | 1707 |   ac_header_preproc=no | 
 | 1708 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1709 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1711 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1712 |  | 
 | 1713 | # So?  What about this header? | 
 | 1714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1715 |   yes:no: ) | 
 | 1716 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1717 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1718 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1719 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1720 |     ;; | 
 | 1721 |   no:yes:* ) | 
 | 1722 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1723 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1724 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1725 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1726 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1727 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1728 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1729 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1730 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1731 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1732 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1733 | ## Report this to http://bugs.python.org/ ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1734 | ## -------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1735 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1736 |     ;; | 
 | 1737 | esac | 
 | 1738 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1739 | $as_echo_n "checking for $2... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1740 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 |   $as_echo_n "(cached) " >&6 | 
 | 1742 | else | 
 | 1743 |   eval "$3=\$ac_header_compiler" | 
 | 1744 | fi | 
 | 1745 | eval ac_res=\$$3 | 
 | 1746 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1747 | $as_echo "$ac_res" >&6; } | 
 | 1748 | fi | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1749 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1750 |  | 
 | 1751 | } # ac_fn_c_check_header_mongrel | 
 | 1752 |  | 
 | 1753 | # ac_fn_c_try_run LINENO | 
 | 1754 | # ---------------------- | 
 | 1755 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1756 | # that executables *can* be run. | 
 | 1757 | ac_fn_c_try_run () | 
 | 1758 | { | 
 | 1759 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1760 |   if { { ac_try="$ac_link" | 
 | 1761 | case "(($ac_try" in | 
 | 1762 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1763 |   *) ac_try_echo=$ac_try;; | 
 | 1764 | esac | 
 | 1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1766 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1767 |   (eval "$ac_link") 2>&5 | 
 | 1768 |   ac_status=$? | 
 | 1769 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1770 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1771 |   { { case "(($ac_try" in | 
 | 1772 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1773 |   *) ac_try_echo=$ac_try;; | 
 | 1774 | esac | 
 | 1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1776 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1777 |   (eval "$ac_try") 2>&5 | 
 | 1778 |   ac_status=$? | 
 | 1779 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1780 |   test $ac_status = 0; }; }; then : | 
 | 1781 |   ac_retval=0 | 
 | 1782 | else | 
 | 1783 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1784 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1785 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1786 |  | 
 | 1787 |        ac_retval=$ac_status | 
 | 1788 | fi | 
 | 1789 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1790 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1791 |   as_fn_set_status $ac_retval | 
 | 1792 |  | 
 | 1793 | } # ac_fn_c_try_run | 
 | 1794 |  | 
 | 1795 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1796 | # ------------------------------------------------------- | 
 | 1797 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1798 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1799 | ac_fn_c_check_header_compile () | 
 | 1800 | { | 
 | 1801 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1802 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1803 | $as_echo_n "checking for $2... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1804 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1805 |   $as_echo_n "(cached) " >&6 | 
 | 1806 | else | 
 | 1807 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1808 | /* end confdefs.h.  */ | 
 | 1809 | $4 | 
 | 1810 | #include <$2> | 
 | 1811 | _ACEOF | 
 | 1812 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1813 |   eval "$3=yes" | 
 | 1814 | else | 
 | 1815 |   eval "$3=no" | 
 | 1816 | fi | 
 | 1817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1818 | fi | 
 | 1819 | eval ac_res=\$$3 | 
 | 1820 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1821 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1822 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1823 |  | 
 | 1824 | } # ac_fn_c_check_header_compile | 
 | 1825 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1826 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1827 | # ------------------------------------------- | 
 | 1828 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1829 | # variable VAR accordingly. | 
 | 1830 | ac_fn_c_check_type () | 
 | 1831 | { | 
 | 1832 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1833 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1834 | $as_echo_n "checking for $2... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1835 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1836 |   $as_echo_n "(cached) " >&6 | 
 | 1837 | else | 
 | 1838 |   eval "$3=no" | 
 | 1839 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1840 | /* end confdefs.h.  */ | 
 | 1841 | $4 | 
 | 1842 | int | 
 | 1843 | main () | 
 | 1844 | { | 
 | 1845 | if (sizeof ($2)) | 
 | 1846 | 	 return 0; | 
 | 1847 |   ; | 
 | 1848 |   return 0; | 
 | 1849 | } | 
 | 1850 | _ACEOF | 
 | 1851 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1852 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1853 | /* end confdefs.h.  */ | 
 | 1854 | $4 | 
 | 1855 | int | 
 | 1856 | main () | 
 | 1857 | { | 
 | 1858 | if (sizeof (($2))) | 
 | 1859 | 	    return 0; | 
 | 1860 |   ; | 
 | 1861 |   return 0; | 
 | 1862 | } | 
 | 1863 | _ACEOF | 
 | 1864 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1865 |  | 
 | 1866 | else | 
 | 1867 |   eval "$3=yes" | 
 | 1868 | fi | 
 | 1869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1870 | fi | 
 | 1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1872 | fi | 
 | 1873 | eval ac_res=\$$3 | 
 | 1874 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1875 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1876 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1877 |  | 
 | 1878 | } # ac_fn_c_check_type | 
 | 1879 |  | 
 | 1880 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1881 | # ------------------------------------ | 
 | 1882 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1883 | # accordingly. | 
 | 1884 | ac_fn_c_find_uintX_t () | 
 | 1885 | { | 
 | 1886 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1887 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1888 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1889 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1890 |   $as_echo_n "(cached) " >&6 | 
 | 1891 | else | 
 | 1892 |   eval "$3=no" | 
 | 1893 |      # Order is important - never check a type that is potentially smaller | 
 | 1894 |      # than half of the expected target width. | 
 | 1895 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1896 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1897 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1898 | /* end confdefs.h.  */ | 
 | 1899 | $ac_includes_default | 
 | 1900 | int | 
 | 1901 | main () | 
 | 1902 | { | 
 | 1903 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
 | 1904 | test_array [0] = 0 | 
 | 1905 |  | 
 | 1906 |   ; | 
 | 1907 |   return 0; | 
 | 1908 | } | 
 | 1909 | _ACEOF | 
 | 1910 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1911 |   case $ac_type in #( | 
 | 1912 |   uint$2_t) : | 
 | 1913 |     eval "$3=yes" ;; #( | 
 | 1914 |   *) : | 
 | 1915 |     eval "$3=\$ac_type" ;; | 
 | 1916 | esac | 
 | 1917 | fi | 
 | 1918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1919 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 |  | 
 | 1921 | else | 
 | 1922 |   break | 
 | 1923 | fi | 
 | 1924 |      done | 
 | 1925 | fi | 
 | 1926 | eval ac_res=\$$3 | 
 | 1927 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1928 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1929 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1930 |  | 
 | 1931 | } # ac_fn_c_find_uintX_t | 
 | 1932 |  | 
 | 1933 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1934 | # ----------------------------------- | 
 | 1935 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1936 | # accordingly. | 
 | 1937 | ac_fn_c_find_intX_t () | 
 | 1938 | { | 
 | 1939 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1940 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1941 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1942 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 |   $as_echo_n "(cached) " >&6 | 
 | 1944 | else | 
 | 1945 |   eval "$3=no" | 
 | 1946 |      # Order is important - never check a type that is potentially smaller | 
 | 1947 |      # than half of the expected target width. | 
 | 1948 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 1949 | 	 'long long int' 'short int' 'signed char'; do | 
 | 1950 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1951 | /* end confdefs.h.  */ | 
 | 1952 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1953 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1954 | int | 
 | 1955 | main () | 
 | 1956 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1957 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1958 | test_array [0] = 0 | 
 | 1959 |  | 
 | 1960 |   ; | 
 | 1961 |   return 0; | 
 | 1962 | } | 
 | 1963 | _ACEOF | 
 | 1964 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1965 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1966 | /* end confdefs.h.  */ | 
 | 1967 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1968 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1969 | int | 
 | 1970 | main () | 
 | 1971 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1972 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1973 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
 | 1974 | test_array [0] = 0 | 
 | 1975 |  | 
 | 1976 |   ; | 
 | 1977 |   return 0; | 
 | 1978 | } | 
 | 1979 | _ACEOF | 
 | 1980 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1981 |  | 
 | 1982 | else | 
 | 1983 |   case $ac_type in #( | 
 | 1984 |   int$2_t) : | 
 | 1985 |     eval "$3=yes" ;; #( | 
 | 1986 |   *) : | 
 | 1987 |     eval "$3=\$ac_type" ;; | 
 | 1988 | esac | 
 | 1989 | fi | 
 | 1990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1991 | fi | 
 | 1992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1993 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1994 |  | 
 | 1995 | else | 
 | 1996 |   break | 
 | 1997 | fi | 
 | 1998 |      done | 
 | 1999 | fi | 
 | 2000 | eval ac_res=\$$3 | 
 | 2001 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2002 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2003 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2004 |  | 
 | 2005 | } # ac_fn_c_find_intX_t | 
 | 2006 |  | 
 | 2007 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2008 | # -------------------------------------------- | 
 | 2009 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2010 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2011 | # computed | 
 | 2012 | ac_fn_c_compute_int () | 
 | 2013 | { | 
 | 2014 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2015 |   if test "$cross_compiling" = yes; then | 
 | 2016 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2018 | /* end confdefs.h.  */ | 
 | 2019 | $4 | 
 | 2020 | int | 
 | 2021 | main () | 
 | 2022 | { | 
 | 2023 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
 | 2024 | test_array [0] = 0 | 
 | 2025 |  | 
 | 2026 |   ; | 
 | 2027 |   return 0; | 
 | 2028 | } | 
 | 2029 | _ACEOF | 
 | 2030 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2031 |   ac_lo=0 ac_mid=0 | 
 | 2032 |   while :; do | 
 | 2033 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2034 | /* end confdefs.h.  */ | 
 | 2035 | $4 | 
 | 2036 | int | 
 | 2037 | main () | 
 | 2038 | { | 
 | 2039 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2040 | test_array [0] = 0 | 
 | 2041 |  | 
 | 2042 |   ; | 
 | 2043 |   return 0; | 
 | 2044 | } | 
 | 2045 | _ACEOF | 
 | 2046 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2047 |   ac_hi=$ac_mid; break | 
 | 2048 | else | 
 | 2049 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2050 | 			if test $ac_lo -le $ac_mid; then | 
 | 2051 | 			  ac_lo= ac_hi= | 
 | 2052 | 			  break | 
 | 2053 | 			fi | 
 | 2054 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2055 | fi | 
 | 2056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2057 |   done | 
 | 2058 | else | 
 | 2059 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2060 | /* end confdefs.h.  */ | 
 | 2061 | $4 | 
 | 2062 | int | 
 | 2063 | main () | 
 | 2064 | { | 
 | 2065 | static int test_array [1 - 2 * !(($2) < 0)]; | 
 | 2066 | test_array [0] = 0 | 
 | 2067 |  | 
 | 2068 |   ; | 
 | 2069 |   return 0; | 
 | 2070 | } | 
 | 2071 | _ACEOF | 
 | 2072 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2073 |   ac_hi=-1 ac_mid=-1 | 
 | 2074 |   while :; do | 
 | 2075 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2076 | /* end confdefs.h.  */ | 
 | 2077 | $4 | 
 | 2078 | int | 
 | 2079 | main () | 
 | 2080 | { | 
 | 2081 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
 | 2082 | test_array [0] = 0 | 
 | 2083 |  | 
 | 2084 |   ; | 
 | 2085 |   return 0; | 
 | 2086 | } | 
 | 2087 | _ACEOF | 
 | 2088 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2089 |   ac_lo=$ac_mid; break | 
 | 2090 | else | 
 | 2091 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2092 | 			if test $ac_mid -le $ac_hi; then | 
 | 2093 | 			  ac_lo= ac_hi= | 
 | 2094 | 			  break | 
 | 2095 | 			fi | 
 | 2096 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2097 | fi | 
 | 2098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2099 |   done | 
 | 2100 | else | 
 | 2101 |   ac_lo= ac_hi= | 
 | 2102 | fi | 
 | 2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2104 | fi | 
 | 2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2106 | # Binary search between lo and hi bounds. | 
 | 2107 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2108 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2109 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2110 | /* end confdefs.h.  */ | 
 | 2111 | $4 | 
 | 2112 | int | 
 | 2113 | main () | 
 | 2114 | { | 
 | 2115 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2116 | test_array [0] = 0 | 
 | 2117 |  | 
 | 2118 |   ; | 
 | 2119 |   return 0; | 
 | 2120 | } | 
 | 2121 | _ACEOF | 
 | 2122 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2123 |   ac_hi=$ac_mid | 
 | 2124 | else | 
 | 2125 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2126 | fi | 
 | 2127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2128 | done | 
 | 2129 | case $ac_lo in #(( | 
 | 2130 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2131 | '') ac_retval=1 ;; | 
 | 2132 | esac | 
 | 2133 |   else | 
 | 2134 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2135 | /* end confdefs.h.  */ | 
 | 2136 | $4 | 
 | 2137 | static long int longval () { return $2; } | 
 | 2138 | static unsigned long int ulongval () { return $2; } | 
 | 2139 | #include <stdio.h> | 
 | 2140 | #include <stdlib.h> | 
 | 2141 | int | 
 | 2142 | main () | 
 | 2143 | { | 
 | 2144 |  | 
 | 2145 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2146 |   if (! f) | 
 | 2147 |     return 1; | 
 | 2148 |   if (($2) < 0) | 
 | 2149 |     { | 
 | 2150 |       long int i = longval (); | 
 | 2151 |       if (i != ($2)) | 
 | 2152 | 	return 1; | 
 | 2153 |       fprintf (f, "%ld", i); | 
 | 2154 |     } | 
 | 2155 |   else | 
 | 2156 |     { | 
 | 2157 |       unsigned long int i = ulongval (); | 
 | 2158 |       if (i != ($2)) | 
 | 2159 | 	return 1; | 
 | 2160 |       fprintf (f, "%lu", i); | 
 | 2161 |     } | 
 | 2162 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2163 |      on some platforms.  */ | 
 | 2164 |   return ferror (f) || fclose (f) != 0; | 
 | 2165 |  | 
 | 2166 |   ; | 
 | 2167 |   return 0; | 
 | 2168 | } | 
 | 2169 | _ACEOF | 
 | 2170 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2171 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2172 | else | 
 | 2173 |   ac_retval=1 | 
 | 2174 | fi | 
 | 2175 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2176 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2177 | rm -f conftest.val | 
 | 2178 |  | 
 | 2179 |   fi | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2180 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2181 |   as_fn_set_status $ac_retval | 
 | 2182 |  | 
 | 2183 | } # ac_fn_c_compute_int | 
 | 2184 |  | 
 | 2185 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2186 | # ---------------------------------- | 
 | 2187 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2188 | ac_fn_c_check_func () | 
 | 2189 | { | 
 | 2190 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2191 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2192 | $as_echo_n "checking for $2... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2193 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2194 |   $as_echo_n "(cached) " >&6 | 
 | 2195 | else | 
 | 2196 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2197 | /* end confdefs.h.  */ | 
 | 2198 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2199 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2200 | #define $2 innocuous_$2 | 
 | 2201 |  | 
 | 2202 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2203 |     which can conflict with char $2 (); below. | 
 | 2204 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2205 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2206 |  | 
 | 2207 | #ifdef __STDC__ | 
 | 2208 | # include <limits.h> | 
 | 2209 | #else | 
 | 2210 | # include <assert.h> | 
 | 2211 | #endif | 
 | 2212 |  | 
 | 2213 | #undef $2 | 
 | 2214 |  | 
 | 2215 | /* Override any GCC internal prototype to avoid an error. | 
 | 2216 |    Use char because int might match the return type of a GCC | 
 | 2217 |    builtin and then its argument prototype would still apply.  */ | 
 | 2218 | #ifdef __cplusplus | 
 | 2219 | extern "C" | 
 | 2220 | #endif | 
 | 2221 | char $2 (); | 
 | 2222 | /* The GNU C library defines this for functions which it implements | 
 | 2223 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2224 |     something starting with __ and the normal name is an alias.  */ | 
 | 2225 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2226 | choke me | 
 | 2227 | #endif | 
 | 2228 |  | 
 | 2229 | int | 
 | 2230 | main () | 
 | 2231 | { | 
 | 2232 | return $2 (); | 
 | 2233 |   ; | 
 | 2234 |   return 0; | 
 | 2235 | } | 
 | 2236 | _ACEOF | 
 | 2237 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2238 |   eval "$3=yes" | 
 | 2239 | else | 
 | 2240 |   eval "$3=no" | 
 | 2241 | fi | 
 | 2242 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2243 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2244 | fi | 
 | 2245 | eval ac_res=\$$3 | 
 | 2246 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2247 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2248 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2249 |  | 
 | 2250 | } # ac_fn_c_check_func | 
 | 2251 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2252 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2253 | # --------------------------------------------- | 
 | 2254 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2255 | # accordingly. | 
 | 2256 | ac_fn_c_check_decl () | 
 | 2257 | { | 
 | 2258 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2259 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2260 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2261 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2262 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2263 | if eval \${$3+:} false; then : | 
 | 2264 |   $as_echo_n "(cached) " >&6 | 
 | 2265 | else | 
 | 2266 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2267 | /* end confdefs.h.  */ | 
 | 2268 | $4 | 
 | 2269 | int | 
 | 2270 | main () | 
 | 2271 | { | 
 | 2272 | #ifndef $as_decl_name | 
 | 2273 | #ifdef __cplusplus | 
 | 2274 |   (void) $as_decl_use; | 
 | 2275 | #else | 
 | 2276 |   (void) $as_decl_name; | 
 | 2277 | #endif | 
 | 2278 | #endif | 
 | 2279 |  | 
 | 2280 |   ; | 
 | 2281 |   return 0; | 
 | 2282 | } | 
 | 2283 | _ACEOF | 
 | 2284 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2285 |   eval "$3=yes" | 
 | 2286 | else | 
 | 2287 |   eval "$3=no" | 
 | 2288 | fi | 
 | 2289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2290 | fi | 
 | 2291 | eval ac_res=\$$3 | 
 | 2292 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2293 | $as_echo "$ac_res" >&6; } | 
 | 2294 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2295 |  | 
 | 2296 | } # ac_fn_c_check_decl | 
 | 2297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2298 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2299 | # ---------------------------------------------------- | 
 | 2300 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2301 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2302 | ac_fn_c_check_member () | 
 | 2303 | { | 
 | 2304 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2305 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2306 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2307 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2308 |   $as_echo_n "(cached) " >&6 | 
 | 2309 | else | 
 | 2310 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2311 | /* end confdefs.h.  */ | 
 | 2312 | $5 | 
 | 2313 | int | 
 | 2314 | main () | 
 | 2315 | { | 
 | 2316 | static $2 ac_aggr; | 
 | 2317 | if (ac_aggr.$3) | 
 | 2318 | return 0; | 
 | 2319 |   ; | 
 | 2320 |   return 0; | 
 | 2321 | } | 
 | 2322 | _ACEOF | 
 | 2323 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2324 |   eval "$4=yes" | 
 | 2325 | else | 
 | 2326 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2327 | /* end confdefs.h.  */ | 
 | 2328 | $5 | 
 | 2329 | int | 
 | 2330 | main () | 
 | 2331 | { | 
 | 2332 | static $2 ac_aggr; | 
 | 2333 | if (sizeof ac_aggr.$3) | 
 | 2334 | return 0; | 
 | 2335 |   ; | 
 | 2336 |   return 0; | 
 | 2337 | } | 
 | 2338 | _ACEOF | 
 | 2339 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2340 |   eval "$4=yes" | 
 | 2341 | else | 
 | 2342 |   eval "$4=no" | 
 | 2343 | fi | 
 | 2344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2345 | fi | 
 | 2346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2347 | fi | 
 | 2348 | eval ac_res=\$$4 | 
 | 2349 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2350 | $as_echo "$ac_res" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2351 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2352 |  | 
 | 2353 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2354 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | This file contains any messages produced by compilers while | 
 | 2356 | running configure, to aid debugging if configure makes a mistake. | 
 | 2357 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2358 | It was created by python $as_me 3.2, which was | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2359 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 |  | 
 | 2361 |   $ $0 $@ | 
 | 2362 |  | 
 | 2363 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2364 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | { | 
 | 2366 | cat <<_ASUNAME | 
 | 2367 | ## --------- ## | 
 | 2368 | ## Platform. ## | 
 | 2369 | ## --------- ## | 
 | 2370 |  | 
 | 2371 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2372 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2373 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2374 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2375 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2376 |  | 
 | 2377 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2378 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2379 |  | 
 | 2380 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2381 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2382 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2383 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2384 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2385 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2386 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2387 |  | 
 | 2388 | _ASUNAME | 
 | 2389 |  | 
 | 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2391 | for as_dir in $PATH | 
 | 2392 | do | 
 | 2393 |   IFS=$as_save_IFS | 
 | 2394 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2395 |     $as_echo "PATH: $as_dir" | 
 | 2396 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2397 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 |  | 
 | 2399 | } >&5 | 
 | 2400 |  | 
 | 2401 | cat >&5 <<_ACEOF | 
 | 2402 |  | 
 | 2403 |  | 
 | 2404 | ## ----------- ## | 
 | 2405 | ## Core tests. ## | 
 | 2406 | ## ----------- ## | 
 | 2407 |  | 
 | 2408 | _ACEOF | 
 | 2409 |  | 
 | 2410 |  | 
 | 2411 | # Keep a trace of the command line. | 
 | 2412 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | # Strip out --silent because we don't want to record it for future runs. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2415 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | ac_configure_args0= | 
 | 2418 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2419 | ac_must_keep_next=false | 
 | 2420 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 |   for ac_arg | 
 | 2423 |   do | 
 | 2424 |     case $ac_arg in | 
 | 2425 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2426 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2427 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2428 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2429 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2430 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2431 |     esac | 
 | 2432 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2433 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2434 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2435 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2437 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2438 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2439 | 	case $ac_arg in | 
 | 2440 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2441 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2442 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2443 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2444 | 	    case "$ac_configure_args0 " in | 
 | 2445 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2446 | 	    esac | 
 | 2447 | 	    ;; | 
 | 2448 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2449 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2450 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2451 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 |       ;; | 
 | 2453 |     esac | 
 | 2454 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2455 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2456 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2457 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 |  | 
 | 2459 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2460 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2461 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2462 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2463 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | trap 'exit_status=$? | 
 | 2465 |   # Save into config.log some information that might help in debugging. | 
 | 2466 |   { | 
 | 2467 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2468 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2469 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | ## Cache variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2471 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 |     echo | 
 | 2473 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2474 | ( | 
 | 2475 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2476 |     eval ac_val=\$$ac_var | 
 | 2477 |     case $ac_val in #( | 
 | 2478 |     *${as_nl}*) | 
 | 2479 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2480 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2481 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 |       esac | 
 | 2483 |       case $ac_var in #( | 
 | 2484 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2485 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2486 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2487 |       esac ;; | 
 | 2488 |     esac | 
 | 2489 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2491 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2492 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2494 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2495 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2496 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2497 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2499 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 |     esac | | 
 | 2501 |     sort | 
 | 2502 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2505 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | ## Output variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2507 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2508 |     echo | 
 | 2509 |     for ac_var in $ac_subst_vars | 
 | 2510 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2511 |       eval ac_val=\$$ac_var | 
 | 2512 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2513 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2514 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2515 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2516 |     done | sort | 
 | 2517 |     echo | 
 | 2518 |  | 
 | 2519 |     if test -n "$ac_subst_files"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2520 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2521 | ## File substitutions. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2522 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 |       echo | 
 | 2524 |       for ac_var in $ac_subst_files | 
 | 2525 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | 	eval ac_val=\$$ac_var | 
 | 2527 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2528 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2529 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2530 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2531 |       done | sort | 
 | 2532 |       echo | 
 | 2533 |     fi | 
 | 2534 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 |     if test -s confdefs.h; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2536 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | ## confdefs.h. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2538 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2540 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 |       echo | 
 | 2542 |     fi | 
 | 2543 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2544 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2545 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2547 |   rm -f core *.core core.conftest.* && | 
 | 2548 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2550 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2552 |   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | done | 
 | 2554 | ac_signal=0 | 
 | 2555 |  | 
 | 2556 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2557 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2559 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | # Predefined preprocessor variables. | 
 | 2562 |  | 
 | 2563 | cat >>confdefs.h <<_ACEOF | 
 | 2564 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2565 | _ACEOF | 
 | 2566 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | cat >>confdefs.h <<_ACEOF | 
 | 2568 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2569 | _ACEOF | 
 | 2570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | cat >>confdefs.h <<_ACEOF | 
 | 2572 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2573 | _ACEOF | 
 | 2574 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF | 
 | 2576 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2577 | _ACEOF | 
 | 2578 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF | 
 | 2580 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2581 | _ACEOF | 
 | 2582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2583 | cat >>confdefs.h <<_ACEOF | 
 | 2584 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2585 | _ACEOF | 
 | 2586 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 |  | 
 | 2588 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2589 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2590 | ac_site_file1=NONE | 
 | 2591 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2592 | if test -n "$CONFIG_SITE"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2593 |   # We do not want a PATH search for config.site. | 
 | 2594 |   case $CONFIG_SITE in #(( | 
 | 2595 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2596 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2597 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2598 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2599 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2600 |   ac_site_file1=$prefix/share/config.site | 
 | 2601 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2602 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2603 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2604 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2605 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2606 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2607 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 |   test "x$ac_site_file" = xNONE && continue | 
 | 2609 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2610 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2611 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2613 |     . "$ac_site_file" \ | 
 | 2614 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2615 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2616 | as_fn_error $? "failed to load site script $ac_site_file | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2617 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2618 |   fi | 
 | 2619 | done | 
 | 2620 |  | 
 | 2621 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2622 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2623 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2624 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2625 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2626 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2627 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2628 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2629 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 |     esac | 
 | 2631 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2632 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2633 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2634 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2635 |   >$cache_file | 
 | 2636 | fi | 
 | 2637 |  | 
 | 2638 | # Check that the precious variables saved in the cache have kept the same | 
 | 2639 | # value. | 
 | 2640 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2641 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2643 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2644 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2645 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2646 |   case $ac_old_set,$ac_new_set in | 
 | 2647 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2648 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2649 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 |       ac_cache_corrupted=: ;; | 
 | 2651 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2652 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2653 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 |       ac_cache_corrupted=: ;; | 
 | 2655 |     ,);; | 
 | 2656 |     *) | 
 | 2657 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2658 | 	# differences in whitespace do not lead to failure. | 
 | 2659 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2660 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2661 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2662 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2663 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2664 | 	  ac_cache_corrupted=: | 
 | 2665 | 	else | 
 | 2666 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2667 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2668 | 	  eval $ac_var=\$ac_old_val | 
 | 2669 | 	fi | 
 | 2670 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2671 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2672 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2673 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 |       fi;; | 
 | 2675 |   esac | 
 | 2676 |   # Pass precious variables to config.status. | 
 | 2677 |   if test "$ac_new_set" = set; then | 
 | 2678 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2679 |     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2681 |     esac | 
 | 2682 |     case " $ac_configure_args " in | 
 | 2683 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2684 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 |     esac | 
 | 2686 |   fi | 
 | 2687 | done | 
 | 2688 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2689 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2691 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2692 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2693 |   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2694 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2695 | ## -------------------- ## | 
 | 2696 | ## Main body of script. ## | 
 | 2697 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2698 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2699 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2700 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2704 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2705 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2706 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2707 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 |  | 
 | 2709 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2711 | if test "$prefix" != "/"; then | 
 | 2712 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2713 | fi | 
 | 2714 |  | 
 | 2715 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2716 |  | 
 | 2717 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2718 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2719 | # with other autoconf-based packages that include Python.h | 
 | 2720 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2721 | rm confdefs.h | 
 | 2722 | mv confdefs.h.new confdefs.h | 
 | 2723 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2724 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2725 | VERSION=3.2 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2726 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2727 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2728 |  | 
 | 2729 | SOVERSION=1.0 | 
 | 2730 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2731 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2732 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2733 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2734 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2735 |  | 
 | 2736 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2737 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2738 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2739 | # them. | 
 | 2740 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2741 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2742 |  | 
 | 2743 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2744 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2745 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2746 | # them. | 
 | 2747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2748 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2749 |  | 
 | 2750 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2751 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2752 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2754 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2755 |  | 
 | 2756 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2757 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2758 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2759 | # them. | 
 | 2760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2761 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2762 |  | 
 | 2763 |  | 
 | 2764 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2765 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2766 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2767 | # Arguments passed to configure. | 
 | 2768 |  | 
 | 2769 | CONFIG_ARGS="$ac_configure_args" | 
 | 2770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2772 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2773 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2774 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2775 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2776 | 	case $enableval in | 
 | 2777 | 	yes) | 
 | 2778 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2779 | 		if test ! -d "${enableval}" | 
 | 2780 | 		then | 
 | 2781 | 			enableval=/ | 
 | 2782 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2783 | 		;; | 
 | 2784 | 	esac | 
 | 2785 | 	case $enableval in | 
 | 2786 | 	no) | 
 | 2787 | 		UNIVERSALSDK= | 
 | 2788 | 		enable_universalsdk= | 
 | 2789 | 		;; | 
 | 2790 | 	*) | 
 | 2791 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2792 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2793 | 		then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2794 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2795 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2796 | 		;; | 
 | 2797 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2799 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2800 | else | 
 | 2801 |  | 
 | 2802 |    	UNIVERSALSDK= | 
 | 2803 | 	enable_universalsdk= | 
 | 2804 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2805 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2806 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2807 | if test -n "${UNIVERSALSDK}" | 
 | 2808 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2809 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 2810 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2812 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2813 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2814 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2815 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2816 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2817 |  | 
 | 2818 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2819 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2820 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 2822 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2823 |  | 
 | 2824 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2825 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2826 |   withval=$with_universal_archs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2827 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 2828 | $as_echo "$withval" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2829 | 	UNIVERSAL_ARCHS="$withval" | 
 | 2830 |  | 
 | 2831 | else | 
 | 2832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2833 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 2834 | $as_echo "32-bit" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2835 |  | 
 | 2836 | fi | 
 | 2837 |  | 
 | 2838 |  | 
 | 2839 |  | 
 | 2840 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2841 |  | 
 | 2842 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2843 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2844 |   withval=$with_framework_name; | 
 | 2845 |     PYTHONFRAMEWORK=${withval} | 
 | 2846 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 2847 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 2848 |  | 
 | 2849 | else | 
 | 2850 |  | 
 | 2851 |     PYTHONFRAMEWORK=Python | 
 | 2852 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 2853 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 2854 |  | 
 | 2855 | fi | 
 | 2856 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2857 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2858 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2859 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2860 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2861 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2862 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2863 | 	esac | 
 | 2864 | 	case $enableval in | 
 | 2865 | 	no) | 
 | 2866 | 		PYTHONFRAMEWORK= | 
 | 2867 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 2868 | 		PYTHONFRAMEWORKPREFIX= | 
 | 2869 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2870 | 		FRAMEWORKINSTALLFIRST= | 
 | 2871 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2872 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 2873 | 		FRAMEWORKALTINSTALLLAST= | 
 | 2874 | 		if test "x${prefix}" = "xNONE"; then | 
 | 2875 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2876 | 		else | 
 | 2877 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2878 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2879 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2880 | 		;; | 
 | 2881 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2882 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2883 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2884 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2885 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2886 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 2887 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2888 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2889 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2890 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 2891 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2892 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2893 | 		else | 
 | 2894 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2895 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2896 |  | 
 | 2897 | 		case "${enableval}" in | 
 | 2898 | 		/System*) | 
 | 2899 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2900 | 			if test "${prefix}" = "NONE" ; then | 
 | 2901 | 				# See below | 
 | 2902 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 2903 | 			fi | 
 | 2904 | 			;; | 
 | 2905 |  | 
 | 2906 | 		/Library*) | 
 | 2907 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2908 | 			;; | 
 | 2909 |  | 
 | 2910 | 		*/Library/Frameworks) | 
 | 2911 | 			MDIR="`dirname "${enableval}"`" | 
 | 2912 | 			MDIR="`dirname "${MDIR}"`" | 
 | 2913 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 2914 |  | 
 | 2915 | 			if test "${prefix}" = "NONE"; then | 
 | 2916 | 				# User hasn't specified the | 
 | 2917 | 				# --prefix option, but wants to install | 
 | 2918 | 				# the framework in a non-default location, | 
 | 2919 | 				# ensure that the compatibility links get | 
 | 2920 | 				# installed relative to that prefix as well | 
 | 2921 | 				# instead of in /usr/local. | 
 | 2922 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 2923 | 			fi | 
 | 2924 | 			;; | 
 | 2925 |  | 
 | 2926 | 		*) | 
 | 2927 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 2928 | 			;; | 
 | 2929 | 		esac | 
 | 2930 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2931 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2932 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2933 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2934 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2935 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2936 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2937 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2938 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2939 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 2940 |  | 
 | 2941 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 2942 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2943 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2945 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2946 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2947 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2948 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2949 | 	PYTHONFRAMEWORKPREFIX= | 
 | 2950 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2951 | 	FRAMEWORKINSTALLFIRST= | 
 | 2952 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2953 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 2954 | 	FRAMEWORKALTINSTALLLAST= | 
 | 2955 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 2956 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 2957 | 	else | 
 | 2958 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 2959 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2960 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2961 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2962 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2963 | fi | 
 | 2964 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2965 |  | 
 | 2966 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2967 |  | 
 | 2968 |  | 
 | 2969 |  | 
 | 2970 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2971 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2972 |  | 
 | 2973 |  | 
 | 2974 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2975 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2976 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2977 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 2978 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 2979 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2980 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2981 | # Set name for machine-dependent library files | 
 | 2982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 2984 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2985 | if test -z "$MACHDEP" | 
 | 2986 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2987 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 2988 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2989 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2990 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2991 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2992 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2993 | 	fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2994 | 	ac_md_system=`echo $ac_sys_system | | 
 | 2995 | 			   tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 2996 | 	ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2997 | 			   tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2998 | 	MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2999 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3000 | 	case $MACHDEP in | 
| Victor Stinner | 0c17d0d | 2011-08-20 14:01:05 +0200 | [diff] [blame] | 3001 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3002 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3003 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3004 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3005 | 	'')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3006 | 	esac | 
 | 3007 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3008 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3009 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3010 | # disable features if it is defined, without any means to access these | 
 | 3011 | # features as extensions. For these systems, we skip the definition of | 
 | 3012 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3013 | # some feature, make sure there is no alternative way to access this | 
 | 3014 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3015 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3016 | # wildcard, and that the wildcard does not include future systems | 
 | 3017 | # (which may remove their limitations). | 
 | 3018 | case $ac_sys_system/$ac_sys_release in | 
 | 3019 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3020 |   # even though select is a POSIX function. Reported by J. Ribbens. | 
| Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3021 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3022 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3023 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3024 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3025 |     define_xopen_source=no | 
 | 3026 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3027 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3028 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3029 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3030 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3031 |  | 
 | 3032 |     ;; | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3033 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3034 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3035 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3036 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3038 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3039 |  | 
 | 3040 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3041 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3042 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3043 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3044 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3045 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3046 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3047 |   # request to enable features supported by the standard as a request | 
 | 3048 |   # to disable features not supported by the standard.  The best way | 
 | 3049 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3050 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3051 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3052 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3053 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3054 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3055 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3056 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3057 |     define_xopen_source=no;; | 
 | 3058 |   # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3059 |   # but used in struct sockaddr.sa_family. Reported by Tim Rice. | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3060 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3061 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3062 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3063 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3064 |   FreeBSD/4.*) | 
 | 3065 |     define_xopen_source=no;; | 
 | 3066 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3067 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3068 |   # identifies itself as Darwin/7.* | 
 | 3069 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3070 |   # disables platform specific features beyond repair. | 
 | 3071 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3072 |   # has no effect, don't bother defining them | 
 | 3073 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3074 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3075 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3076 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3077 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3078 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3079 |   # or has another value. By not (re)defining it, the defaults come in place. | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 3080 |   AIX/4) | 
 | 3081 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3082 |   AIX/5) | 
 | 3083 |     if test `uname -r` -eq 1; then | 
 | 3084 |       define_xopen_source=no | 
 | 3085 |     fi | 
 | 3086 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3087 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3088 |   # defining NI_NUMERICHOST. | 
 | 3089 |   QNX/6.3.2) | 
 | 3090 |     define_xopen_source=no | 
 | 3091 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3092 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3093 | esac | 
 | 3094 |  | 
 | 3095 | if test $define_xopen_source = yes | 
 | 3096 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3097 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3098 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3099 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3100 |  | 
 | 3101 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3102 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3103 |   # several APIs are not declared. Since this is also needed in some | 
 | 3104 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3105 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3106 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3107 |  | 
 | 3108 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3109 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3110 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3111 |  | 
 | 3112 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3113 | fi | 
 | 3114 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3115 | # | 
 | 3116 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3117 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3118 | # different and often incompatable code will be generated. | 
 | 3119 | # | 
 | 3120 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3121 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3122 | # variable is also adjusted. | 
 | 3123 | # | 
 | 3124 |  | 
 | 3125 | if test ! -z "$SGI_ABI" | 
 | 3126 | then | 
 | 3127 |         CC="cc $SGI_ABI" | 
 | 3128 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3129 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3130 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3132 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3133 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3134 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3135 | # it may influence the way we can build extensions, so distutils | 
 | 3136 | # needs to check it | 
 | 3137 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3138 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3139 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3140 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3141 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
 | 3143 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3144 | ac_sys_machine=`uname -m` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
 | 3146 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3147 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3148 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3149 |  | 
 | 3150 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3151 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3152 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3153 | # when running configure or make.  The build should not break if they do. | 
 | 3154 | # BASECFLAGS should generally not be messed with, however. | 
 | 3155 |  | 
 | 3156 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3157 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3159 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3160 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3161 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3162 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3163 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3164 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3165 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3166 | 		without_gcc=yes;; | 
 | 3167 | 	yes)	CC=gcc | 
 | 3168 | 		without_gcc=no;; | 
 | 3169 | 	*)	CC=$withval | 
 | 3170 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3171 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3172 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3174 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3175 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3176 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3177 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3178 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3179 | fi | 
 | 3180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3182 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3183 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3184 | # If the user switches compilers, we can't believe the cache | 
 | 3185 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3186 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3187 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3188 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3189 | fi | 
 | 3190 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3191 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3192 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3193 | # we set -g later. | 
 | 3194 | if test -z "$CFLAGS"; then | 
 | 3195 |         CFLAGS= | 
 | 3196 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3197 | ac_ext=c | 
 | 3198 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3202 | if test -n "$ac_tool_prefix"; then | 
 | 3203 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3204 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3206 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3207 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3208 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3209 | else | 
 | 3210 |   if test -n "$CC"; then | 
 | 3211 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3212 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3214 | for as_dir in $PATH | 
 | 3215 | do | 
 | 3216 |   IFS=$as_save_IFS | 
 | 3217 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3218 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3219 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3220 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3221 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3222 |     break 2 | 
 | 3223 |   fi | 
 | 3224 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3225 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3226 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3227 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3228 | fi | 
 | 3229 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3230 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3231 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3232 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3233 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3234 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3235 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3236 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3237 | fi | 
 | 3238 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3239 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3240 | fi | 
 | 3241 | if test -z "$ac_cv_prog_CC"; then | 
 | 3242 |   ac_ct_CC=$CC | 
 | 3243 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3244 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3246 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3247 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3248 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3249 | else | 
 | 3250 |   if test -n "$ac_ct_CC"; then | 
 | 3251 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3252 | else | 
 | 3253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3254 | for as_dir in $PATH | 
 | 3255 | do | 
 | 3256 |   IFS=$as_save_IFS | 
 | 3257 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3258 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3259 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3260 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3261 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 |     break 2 | 
 | 3263 |   fi | 
 | 3264 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3265 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3266 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 |  | 
 | 3268 | fi | 
 | 3269 | fi | 
 | 3270 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3271 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3272 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3273 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3274 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3275 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3276 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3277 | fi | 
 | 3278 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3279 |   if test "x$ac_ct_CC" = x; then | 
 | 3280 |     CC="" | 
 | 3281 |   else | 
 | 3282 |     case $cross_compiling:$ac_tool_warned in | 
 | 3283 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3286 | ac_tool_warned=yes ;; | 
 | 3287 | esac | 
 | 3288 |     CC=$ac_ct_CC | 
 | 3289 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3290 | else | 
 | 3291 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3292 | fi | 
 | 3293 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3294 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3295 |           if test -n "$ac_tool_prefix"; then | 
 | 3296 |     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3297 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3299 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3300 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3301 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3302 | else | 
 | 3303 |   if test -n "$CC"; then | 
 | 3304 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3307 | for as_dir in $PATH | 
 | 3308 | do | 
 | 3309 |   IFS=$as_save_IFS | 
 | 3310 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3311 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3312 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3313 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3314 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 |     break 2 | 
 | 3316 |   fi | 
 | 3317 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3318 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3319 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 |  | 
 | 3321 | fi | 
 | 3322 | fi | 
 | 3323 | CC=$ac_cv_prog_CC | 
 | 3324 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3325 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3326 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3327 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3328 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3329 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | fi | 
 | 3331 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3332 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3333 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3334 | fi | 
 | 3335 | if test -z "$CC"; then | 
 | 3336 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3337 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3339 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3340 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3341 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3342 | else | 
 | 3343 |   if test -n "$CC"; then | 
 | 3344 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3345 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3346 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3348 | for as_dir in $PATH | 
 | 3349 | do | 
 | 3350 |   IFS=$as_save_IFS | 
 | 3351 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3352 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3353 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3355 |        ac_prog_rejected=yes | 
 | 3356 |        continue | 
 | 3357 |      fi | 
 | 3358 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3359 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 |     break 2 | 
 | 3361 |   fi | 
 | 3362 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3363 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3364 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3366 | if test $ac_prog_rejected = yes; then | 
 | 3367 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3368 |   set dummy $ac_cv_prog_CC | 
 | 3369 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3371 |     # We chose a different compiler from the bogus one. | 
 | 3372 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3373 |     # first if we set CC to just the basename; use the full file name. | 
 | 3374 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3375 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3376 |   fi | 
 | 3377 | fi | 
 | 3378 | fi | 
 | 3379 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3381 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3382 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3383 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3384 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3385 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3386 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3387 | fi | 
 | 3388 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3390 | fi | 
 | 3391 | if test -z "$CC"; then | 
 | 3392 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3393 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3394 |   do | 
 | 3395 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3396 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3398 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3399 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3400 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3401 | else | 
 | 3402 |   if test -n "$CC"; then | 
 | 3403 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3404 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3406 | for as_dir in $PATH | 
 | 3407 | do | 
 | 3408 |   IFS=$as_save_IFS | 
 | 3409 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3410 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3411 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3412 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3413 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3415 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3416 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3417 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3418 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 |  | 
 | 3420 | fi | 
 | 3421 | fi | 
 | 3422 | CC=$ac_cv_prog_CC | 
 | 3423 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3424 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3425 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3426 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3427 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3428 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3429 | fi | 
 | 3430 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 |     test -n "$CC" && break | 
 | 3433 |   done | 
 | 3434 | fi | 
 | 3435 | if test -z "$CC"; then | 
 | 3436 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3437 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | do | 
 | 3439 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3440 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3442 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3443 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3444 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | else | 
 | 3446 |   if test -n "$ac_ct_CC"; then | 
 | 3447 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3448 | else | 
 | 3449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3450 | for as_dir in $PATH | 
 | 3451 | do | 
 | 3452 |   IFS=$as_save_IFS | 
 | 3453 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3454 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3455 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3457 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 |     break 2 | 
 | 3459 |   fi | 
 | 3460 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3461 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3462 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | fi | 
 | 3465 | fi | 
 | 3466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3467 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3468 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3469 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3471 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3472 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3474 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3475 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 |   test -n "$ac_ct_CC" && break | 
 | 3477 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3478 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3479 |   if test "x$ac_ct_CC" = x; then | 
 | 3480 |     CC="" | 
 | 3481 |   else | 
 | 3482 |     case $cross_compiling:$ac_tool_warned in | 
 | 3483 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3485 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3486 | ac_tool_warned=yes ;; | 
 | 3487 | esac | 
 | 3488 |     CC=$ac_ct_CC | 
 | 3489 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | fi | 
 | 3491 |  | 
 | 3492 | fi | 
 | 3493 |  | 
 | 3494 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3495 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3497 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3498 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 |  | 
 | 3500 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3501 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3502 | set X $ac_compile | 
 | 3503 | ac_compiler=$2 | 
 | 3504 | for ac_option in --version -v -V -qversion; do | 
 | 3505 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3506 | case "(($ac_try" in | 
 | 3507 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3508 |   *) ac_try_echo=$ac_try;; | 
 | 3509 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3511 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3512 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3514 |   if test -s conftest.err; then | 
 | 3515 |     sed '10a\ | 
 | 3516 | ... rest of stderr output deleted ... | 
 | 3517 |          10q' conftest.err >conftest.er1 | 
 | 3518 |     cat conftest.er1 >&5 | 
 | 3519 |   fi | 
 | 3520 |   rm -f conftest.er1 conftest.err | 
 | 3521 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3522 |   test $ac_status = 0; } | 
 | 3523 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3526 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3527 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | int | 
 | 3529 | main () | 
 | 3530 | { | 
 | 3531 |  | 
 | 3532 |   ; | 
 | 3533 |   return 0; | 
 | 3534 | } | 
 | 3535 | _ACEOF | 
 | 3536 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3537 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | # Try to create an executable without -o first, disregard a.out. | 
 | 3539 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3540 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3542 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3543 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3544 |  | 
 | 3545 | # The possible output files: | 
 | 3546 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3547 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3548 | ac_rmfiles= | 
 | 3549 | for ac_file in $ac_files | 
 | 3550 | do | 
 | 3551 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3552 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3553 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3554 |   esac | 
 | 3555 | done | 
 | 3556 | rm -f $ac_rmfiles | 
 | 3557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3558 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3559 | case "(($ac_try" in | 
 | 3560 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3561 |   *) ac_try_echo=$ac_try;; | 
 | 3562 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3564 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3565 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3567 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3568 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3569 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3570 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3571 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3572 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3573 | # Autoconf. | 
 | 3574 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3575 | do | 
 | 3576 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3578 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3579 | 	;; | 
 | 3580 |     [ab].out ) | 
 | 3581 | 	# We found the default executable, but exeext='' is most | 
 | 3582 | 	# certainly right. | 
 | 3583 | 	break;; | 
 | 3584 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3585 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3586 | 	then :; else | 
 | 3587 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3588 | 	fi | 
 | 3589 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3590 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3591 | 	# argument, so we may need to know it at that point already. | 
 | 3592 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3593 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3594 | 	break;; | 
 | 3595 |     * ) | 
 | 3596 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 |   esac | 
 | 3598 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3599 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3600 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3601 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3602 |   ac_file='' | 
 | 3603 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3604 | if test -z "$ac_file"; then : | 
 | 3605 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3606 | $as_echo "no" >&6; } | 
 | 3607 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3608 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3609 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3612 | as_fn_error 77 "C compiler cannot create executables | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3613 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3614 | else | 
 | 3615 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3616 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3617 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3619 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3621 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3622 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3623 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3624 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3625 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3627 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3628 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3629 | case "(($ac_try" in | 
 | 3630 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3631 |   *) ac_try_echo=$ac_try;; | 
 | 3632 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3634 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3635 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3637 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3638 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3639 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3640 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3641 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3642 | # `rm'. | 
 | 3643 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3644 |   test -f "$ac_file" || continue | 
 | 3645 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3646 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3647 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3648 | 	  break;; | 
 | 3649 |     * ) break;; | 
 | 3650 |   esac | 
 | 3651 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3652 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3653 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3655 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3656 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3657 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3658 | rm -f conftest conftest$ac_cv_exeext | 
 | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3660 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3661 |  | 
 | 3662 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | EXEEXT=$ac_cv_exeext | 
 | 3664 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3666 | /* end confdefs.h.  */ | 
 | 3667 | #include <stdio.h> | 
 | 3668 | int | 
 | 3669 | main () | 
 | 3670 | { | 
 | 3671 | FILE *f = fopen ("conftest.out", "w"); | 
 | 3672 |  return ferror (f) || fclose (f) != 0; | 
 | 3673 |  | 
 | 3674 |   ; | 
 | 3675 |   return 0; | 
 | 3676 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3677 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3678 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 3679 | # Check that the compiler produces executables we can run.  If not, either | 
 | 3680 | # the compiler is broken, or we cross compile. | 
 | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 3682 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 3683 | if test "$cross_compiling" != yes; then | 
 | 3684 |   { { ac_try="$ac_link" | 
 | 3685 | case "(($ac_try" in | 
 | 3686 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3687 |   *) ac_try_echo=$ac_try;; | 
 | 3688 | esac | 
 | 3689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3690 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3691 |   (eval "$ac_link") 2>&5 | 
 | 3692 |   ac_status=$? | 
 | 3693 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3694 |   test $ac_status = 0; } | 
 | 3695 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 3696 |   { { case "(($ac_try" in | 
 | 3697 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3698 |   *) ac_try_echo=$ac_try;; | 
 | 3699 | esac | 
 | 3700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3701 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3702 |   (eval "$ac_try") 2>&5 | 
 | 3703 |   ac_status=$? | 
 | 3704 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3705 |   test $ac_status = 0; }; }; then | 
 | 3706 |     cross_compiling=no | 
 | 3707 |   else | 
 | 3708 |     if test "$cross_compiling" = maybe; then | 
 | 3709 | 	cross_compiling=yes | 
 | 3710 |     else | 
 | 3711 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3712 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3713 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | If you meant to cross compile, use \`--host'. | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3715 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3716 |     fi | 
 | 3717 |   fi | 
 | 3718 | fi | 
 | 3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 3720 | $as_echo "$cross_compiling" >&6; } | 
 | 3721 |  | 
 | 3722 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 3723 | ac_clean_files=$ac_clean_files_save | 
 | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 3725 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3726 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3727 |   $as_echo_n "(cached) " >&6 | 
 | 3728 | else | 
 | 3729 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3730 | /* end confdefs.h.  */ | 
 | 3731 |  | 
 | 3732 | int | 
 | 3733 | main () | 
 | 3734 | { | 
 | 3735 |  | 
 | 3736 |   ; | 
 | 3737 |   return 0; | 
 | 3738 | } | 
 | 3739 | _ACEOF | 
 | 3740 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3741 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3742 | case "(($ac_try" in | 
 | 3743 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3744 |   *) ac_try_echo=$ac_try;; | 
 | 3745 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3747 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3748 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3750 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3751 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3752 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 3753 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3755 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 3757 |        break;; | 
 | 3758 |   esac | 
 | 3759 | done | 
 | 3760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3762 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3764 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3765 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3766 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3767 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3768 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3769 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 3772 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | OBJEXT=$ac_cv_objext | 
 | 3774 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 3776 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3777 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3779 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3780 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3781 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | int | 
 | 3784 | main () | 
 | 3785 | { | 
 | 3786 | #ifndef __GNUC__ | 
 | 3787 |        choke me | 
 | 3788 | #endif | 
 | 3789 |  | 
 | 3790 |   ; | 
 | 3791 |   return 0; | 
 | 3792 | } | 
 | 3793 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3794 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 |   ac_compiler_gnu=yes | 
 | 3796 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3797 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 3801 |  | 
 | 3802 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3804 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 3805 | if test $ac_compiler_gnu = yes; then | 
 | 3806 |   GCC=yes | 
 | 3807 | else | 
 | 3808 |   GCC= | 
 | 3809 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3811 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 3813 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3814 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3815 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3817 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 3818 |    ac_c_werror_flag=yes | 
 | 3819 |    ac_cv_prog_cc_g=no | 
 | 3820 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3821 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3822 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | int | 
 | 3825 | main () | 
 | 3826 | { | 
 | 3827 |  | 
 | 3828 |   ; | 
 | 3829 |   return 0; | 
 | 3830 | } | 
 | 3831 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3832 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3833 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3835 |   CFLAGS="" | 
 | 3836 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3837 | /* end confdefs.h.  */ | 
 | 3838 |  | 
 | 3839 | int | 
 | 3840 | main () | 
 | 3841 | { | 
 | 3842 |  | 
 | 3843 |   ; | 
 | 3844 |   return 0; | 
 | 3845 | } | 
 | 3846 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3848 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3849 | else | 
 | 3850 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3851 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3852 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3853 | /* end confdefs.h.  */ | 
 | 3854 |  | 
 | 3855 | int | 
 | 3856 | main () | 
 | 3857 | { | 
 | 3858 |  | 
 | 3859 |   ; | 
 | 3860 |   return 0; | 
 | 3861 | } | 
 | 3862 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3864 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3865 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3867 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3869 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3871 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 3872 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 3874 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3875 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3877 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3878 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3879 |     CFLAGS="-g -O2" | 
 | 3880 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3881 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3882 |   fi | 
 | 3883 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3884 |   if test "$GCC" = yes; then | 
 | 3885 |     CFLAGS="-O2" | 
 | 3886 |   else | 
 | 3887 |     CFLAGS= | 
 | 3888 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3889 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 3891 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3892 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3893 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3894 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3895 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3896 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3898 | /* end confdefs.h.  */ | 
 | 3899 | #include <stdarg.h> | 
 | 3900 | #include <stdio.h> | 
 | 3901 | #include <sys/types.h> | 
 | 3902 | #include <sys/stat.h> | 
 | 3903 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3904 | struct buf { int x; }; | 
 | 3905 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3906 | static char *e (p, i) | 
 | 3907 |      char **p; | 
 | 3908 |      int i; | 
 | 3909 | { | 
 | 3910 |   return p[i]; | 
 | 3911 | } | 
 | 3912 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3913 | { | 
 | 3914 |   char *s; | 
 | 3915 |   va_list v; | 
 | 3916 |   va_start (v,p); | 
 | 3917 |   s = g (p, va_arg (v,int)); | 
 | 3918 |   va_end (v); | 
 | 3919 |   return s; | 
 | 3920 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3921 |  | 
 | 3922 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 3923 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 3924 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3925 |    as 'x'.  The following induces an error, until -std is added to get | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3926 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 3927 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3928 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3929 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 3930 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3931 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 3932 |    inside strings and character constants.  */ | 
 | 3933 | #define FOO(x) 'x' | 
 | 3934 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 3935 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3936 | int test (int i, double x); | 
 | 3937 | struct s1 {int (*f) (int a);}; | 
 | 3938 | struct s2 {int (*f) (double a);}; | 
 | 3939 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 3940 | int argc; | 
 | 3941 | char **argv; | 
 | 3942 | int | 
 | 3943 | main () | 
 | 3944 | { | 
 | 3945 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 3946 |   ; | 
 | 3947 |   return 0; | 
 | 3948 | } | 
 | 3949 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3950 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 3951 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3952 | do | 
 | 3953 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3954 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3955 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3956 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3957 | rm -f core conftest.err conftest.$ac_objext | 
 | 3958 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3959 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3960 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3961 | CC=$ac_save_CC | 
 | 3962 |  | 
 | 3963 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3964 | # AC_CACHE_VAL | 
 | 3965 | case "x$ac_cv_prog_cc_c89" in | 
 | 3966 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3967 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 3968 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3969 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3970 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 3971 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3972 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3973 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3974 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 3975 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3976 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3977 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3978 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3979 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3980 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3981 | ac_ext=c | 
 | 3982 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3986 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3987 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3988 |  | 
 | 3989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 3991 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3992 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3993 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3995 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3996 |  | 
 | 3997 | 	case $withval in | 
 | 3998 | 	no)	with_cxx_main=no | 
 | 3999 | 		MAINCC='$(CC)';; | 
 | 4000 | 	yes)	with_cxx_main=yes | 
 | 4001 | 		MAINCC='$(CXX)';; | 
 | 4002 | 	*)	with_cxx_main=yes | 
 | 4003 | 		MAINCC=$withval | 
 | 4004 | 		if test -z "$CXX" | 
 | 4005 | 		then | 
 | 4006 | 			CXX=$withval | 
 | 4007 | 		fi;; | 
 | 4008 | 	esac | 
 | 4009 | else | 
 | 4010 |  | 
 | 4011 | 	with_cxx_main=no | 
 | 4012 | 	MAINCC='$(CC)' | 
 | 4013 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4014 | fi | 
 | 4015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4017 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4018 |  | 
 | 4019 | preset_cxx="$CXX" | 
 | 4020 | if test -z "$CXX" | 
 | 4021 | then | 
 | 4022 |         case "$CC" in | 
 | 4023 |         gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
 | 4024 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4026 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4027 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4029 | else | 
 | 4030 |   case $CXX in | 
 | 4031 |   [\\/]* | ?:[\\/]*) | 
 | 4032 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4033 |   ;; | 
 | 4034 |   *) | 
 | 4035 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4036 | for as_dir in notfound | 
 | 4037 | do | 
 | 4038 |   IFS=$as_save_IFS | 
 | 4039 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4040 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4041 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4042 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4043 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4044 |     break 2 | 
 | 4045 |   fi | 
 | 4046 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4047 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4048 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4049 |  | 
 | 4050 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
 | 4051 |   ;; | 
 | 4052 | esac | 
 | 4053 | fi | 
 | 4054 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4055 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4056 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4057 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4058 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4059 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4060 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4061 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4062 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4063 |  ;; | 
 | 4064 |         cc)     # Extract the first word of "c++", so it can be a program name with args. | 
 | 4065 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4067 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4068 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4069 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4070 | else | 
 | 4071 |   case $CXX in | 
 | 4072 |   [\\/]* | ?:[\\/]*) | 
 | 4073 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4074 |   ;; | 
 | 4075 |   *) | 
 | 4076 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4077 | for as_dir in notfound | 
 | 4078 | do | 
 | 4079 |   IFS=$as_save_IFS | 
 | 4080 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4081 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4082 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4083 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4084 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4085 |     break 2 | 
 | 4086 |   fi | 
 | 4087 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4088 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4089 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4090 |  | 
 | 4091 |   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
 | 4092 |   ;; | 
 | 4093 | esac | 
 | 4094 | fi | 
 | 4095 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4096 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4097 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4098 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4100 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4101 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4102 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4103 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4104 |  ;; | 
 | 4105 |         esac | 
 | 4106 | 	if test "$CXX" = "notfound" | 
 | 4107 | 	then | 
 | 4108 | 		CXX="" | 
 | 4109 | 	fi | 
 | 4110 | fi | 
 | 4111 | if test -z "$CXX" | 
 | 4112 | then | 
 | 4113 | 	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4114 | do | 
 | 4115 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4116 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4118 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4119 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4121 | else | 
 | 4122 |   if test -n "$CXX"; then | 
 | 4123 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4124 | else | 
 | 4125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4126 | for as_dir in $PATH | 
 | 4127 | do | 
 | 4128 |   IFS=$as_save_IFS | 
 | 4129 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4130 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4131 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4132 |     ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4133 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4134 |     break 2 | 
 | 4135 |   fi | 
 | 4136 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4138 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4139 |  | 
 | 4140 | fi | 
 | 4141 | fi | 
 | 4142 | CXX=$ac_cv_prog_CXX | 
 | 4143 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4145 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4146 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4148 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4149 | fi | 
 | 4150 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4151 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4152 |   test -n "$CXX" && break | 
 | 4153 | done | 
 | 4154 | test -n "$CXX" || CXX="notfound" | 
 | 4155 |  | 
 | 4156 | 	if test "$CXX" = "notfound" | 
 | 4157 | 	then | 
 | 4158 | 		CXX="" | 
 | 4159 | 	fi | 
 | 4160 | fi | 
 | 4161 | if test "$preset_cxx" != "$CXX" | 
 | 4162 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4163 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4164 |  | 
 | 4165 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4166 |   If this is not intended, then set CXX on the configure command line. | 
 | 4167 |   " >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4168 | $as_echo "$as_me: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4169 |  | 
 | 4170 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4171 |   If this is not intended, then set CXX on the configure command line. | 
 | 4172 |   " >&2;} | 
 | 4173 | fi | 
 | 4174 |  | 
 | 4175 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 4177 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 4178 | save_LDFLAGS="$LDFLAGS" | 
 | 4179 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4180 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4182 | /* end confdefs.h.  */ | 
 | 4183 |  | 
 | 4184 | int | 
 | 4185 | main () | 
 | 4186 | { | 
 | 4187 |  | 
 | 4188 |   ; | 
 | 4189 |   return 0; | 
 | 4190 | } | 
 | 4191 | _ACEOF | 
 | 4192 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 4193 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 4194 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4195 | $as_echo "yes" >&6; } | 
 | 4196 | else | 
 | 4197 |   NO_AS_NEEDED="" | 
 | 4198 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4199 | $as_echo "no" >&6; } | 
 | 4200 | fi | 
 | 4201 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 4202 |     conftest$ac_exeext conftest.$ac_ext | 
 | 4203 | LDFLAGS="$save_LDFLAGS" | 
 | 4204 |  | 
 | 4205 |  | 
 | 4206 |  | 
 | 4207 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | ac_ext=c | 
 | 4209 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4214 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4215 | # On Suns, sometimes $CPP names a directory. | 
 | 4216 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4217 |   CPP= | 
 | 4218 | fi | 
 | 4219 | if test -z "$CPP"; then | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4220 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4221 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4222 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 |       # Double quotes because CPP needs to be expanded | 
 | 4224 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4225 |     do | 
 | 4226 |       ac_preproc_ok=false | 
 | 4227 | for ac_c_preproc_warn_flag in '' yes | 
 | 4228 | do | 
 | 4229 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4230 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4231 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4232 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4233 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4235 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4236 | /* end confdefs.h.  */ | 
 | 4237 | #ifdef __STDC__ | 
 | 4238 | # include <limits.h> | 
 | 4239 | #else | 
 | 4240 | # include <assert.h> | 
 | 4241 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4242 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4243 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4244 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4245 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4246 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 |   # Broken: fails on valid input. | 
 | 4248 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4249 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4250 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4251 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4252 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4253 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4254 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4255 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4256 | #include <ac_nonexistent.h> | 
 | 4257 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4258 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4259 |   # Broken: success on invalid input. | 
 | 4260 | continue | 
 | 4261 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 |   # Passes both tests. | 
 | 4263 | ac_preproc_ok=: | 
 | 4264 | break | 
 | 4265 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4266 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4267 |  | 
 | 4268 | done | 
 | 4269 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4270 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4271 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 |   break | 
 | 4273 | fi | 
 | 4274 |  | 
 | 4275 |     done | 
 | 4276 |     ac_cv_prog_CPP=$CPP | 
 | 4277 |  | 
 | 4278 | fi | 
 | 4279 |   CPP=$ac_cv_prog_CPP | 
 | 4280 | else | 
 | 4281 |   ac_cv_prog_CPP=$CPP | 
 | 4282 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4284 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | ac_preproc_ok=false | 
 | 4286 | for ac_c_preproc_warn_flag in '' yes | 
 | 4287 | do | 
 | 4288 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4289 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4291 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4292 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4293 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4294 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4295 | /* end confdefs.h.  */ | 
 | 4296 | #ifdef __STDC__ | 
 | 4297 | # include <limits.h> | 
 | 4298 | #else | 
 | 4299 | # include <assert.h> | 
 | 4300 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4301 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4302 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4303 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 |   # Broken: fails on valid input. | 
 | 4307 | continue | 
 | 4308 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4309 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4311 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4313 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4314 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4315 | #include <ac_nonexistent.h> | 
 | 4316 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4317 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4318 |   # Broken: success on invalid input. | 
 | 4319 | continue | 
 | 4320 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4321 |   # Passes both tests. | 
 | 4322 | ac_preproc_ok=: | 
 | 4323 | break | 
 | 4324 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4325 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 |  | 
 | 4327 | done | 
 | 4328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4329 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4330 | if $ac_preproc_ok; then : | 
 | 4331 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4332 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4333 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4335 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4336 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4337 | fi | 
 | 4338 |  | 
 | 4339 | ac_ext=c | 
 | 4340 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4344 |  | 
 | 4345 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4347 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4348 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4349 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4350 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4351 |   if test -z "$GREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4352 |   ac_path_GREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4353 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4354 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4355 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4356 | do | 
 | 4357 |   IFS=$as_save_IFS | 
 | 4358 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4359 |     for ac_prog in grep ggrep; do | 
 | 4360 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4361 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4362 |       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
 | 4363 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4364 |   # Check for GNU $ac_path_GREP | 
 | 4365 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4366 | *GNU*) | 
 | 4367 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4368 | *) | 
 | 4369 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4370 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4371 |   while : | 
 | 4372 |   do | 
 | 4373 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4374 |     mv "conftest.tmp" "conftest.in" | 
 | 4375 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4376 |     $as_echo 'GREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4377 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4378 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4379 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4380 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4381 |       # Best one so far, save it but keep looking for a better one | 
 | 4382 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4383 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4384 |     fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4385 |     # 10*(2^10) chars as input seems more than enough | 
 | 4386 |     test $ac_count -gt 10 && break | 
 | 4387 |   done | 
 | 4388 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4389 | esac | 
 | 4390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4391 |       $ac_path_GREP_found && break 3 | 
 | 4392 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4393 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4394 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4395 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4396 |   if test -z "$ac_cv_path_GREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4397 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4398 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4399 | else | 
 | 4400 |   ac_cv_path_GREP=$GREP | 
 | 4401 | fi | 
 | 4402 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4403 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4405 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4406 |  GREP="$ac_cv_path_GREP" | 
 | 4407 |  | 
 | 4408 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4410 | $as_echo_n "checking for egrep... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4411 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4412 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4413 | else | 
 | 4414 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4415 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4416 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4417 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4418 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4419 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4420 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4421 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4422 | do | 
 | 4423 |   IFS=$as_save_IFS | 
 | 4424 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4425 |     for ac_prog in egrep; do | 
 | 4426 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4427 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4428 |       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
 | 4429 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4430 |   # Check for GNU $ac_path_EGREP | 
 | 4431 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4432 | *GNU*) | 
 | 4433 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4434 | *) | 
 | 4435 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4436 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4437 |   while : | 
 | 4438 |   do | 
 | 4439 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4440 |     mv "conftest.tmp" "conftest.in" | 
 | 4441 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4442 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4443 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4444 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4445 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4446 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4447 |       # Best one so far, save it but keep looking for a better one | 
 | 4448 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4449 |       ac_path_EGREP_max=$ac_count | 
 | 4450 |     fi | 
 | 4451 |     # 10*(2^10) chars as input seems more than enough | 
 | 4452 |     test $ac_count -gt 10 && break | 
 | 4453 |   done | 
 | 4454 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4455 | esac | 
 | 4456 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4457 |       $ac_path_EGREP_found && break 3 | 
 | 4458 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4459 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4460 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4461 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4462 |   if test -z "$ac_cv_path_EGREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4463 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4464 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4465 | else | 
 | 4466 |   ac_cv_path_EGREP=$EGREP | 
 | 4467 | fi | 
 | 4468 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4469 |    fi | 
 | 4470 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4472 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4473 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4474 |  | 
 | 4475 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4477 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4478 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4479 |   $as_echo_n "(cached) " >&6 | 
 | 4480 | else | 
 | 4481 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4482 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4483 | #include <stdlib.h> | 
 | 4484 | #include <stdarg.h> | 
 | 4485 | #include <string.h> | 
 | 4486 | #include <float.h> | 
 | 4487 |  | 
 | 4488 | int | 
 | 4489 | main () | 
 | 4490 | { | 
 | 4491 |  | 
 | 4492 |   ; | 
 | 4493 |   return 0; | 
 | 4494 | } | 
 | 4495 | _ACEOF | 
 | 4496 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4497 |   ac_cv_header_stdc=yes | 
 | 4498 | else | 
 | 4499 |   ac_cv_header_stdc=no | 
 | 4500 | fi | 
 | 4501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4502 |  | 
 | 4503 | if test $ac_cv_header_stdc = yes; then | 
 | 4504 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4505 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4506 | /* end confdefs.h.  */ | 
 | 4507 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4508 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4509 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4511 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4512 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4513 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4514 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4515 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4516 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4518 | fi | 
 | 4519 |  | 
 | 4520 | if test $ac_cv_header_stdc = yes; then | 
 | 4521 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4522 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4523 | /* end confdefs.h.  */ | 
 | 4524 | #include <stdlib.h> | 
 | 4525 |  | 
 | 4526 | _ACEOF | 
 | 4527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4528 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 4529 |  | 
 | 4530 | else | 
 | 4531 |   ac_cv_header_stdc=no | 
 | 4532 | fi | 
 | 4533 | rm -f conftest* | 
 | 4534 |  | 
 | 4535 | fi | 
 | 4536 |  | 
 | 4537 | if test $ac_cv_header_stdc = yes; then | 
 | 4538 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4539 |   if test "$cross_compiling" = yes; then : | 
 | 4540 |   : | 
 | 4541 | else | 
 | 4542 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4543 | /* end confdefs.h.  */ | 
 | 4544 | #include <ctype.h> | 
 | 4545 | #include <stdlib.h> | 
 | 4546 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4547 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4548 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4549 | #else | 
 | 4550 | # define ISLOWER(c) \ | 
 | 4551 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4552 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4553 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 4554 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4555 | #endif | 
 | 4556 |  | 
 | 4557 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4558 | int | 
 | 4559 | main () | 
 | 4560 | { | 
 | 4561 |   int i; | 
 | 4562 |   for (i = 0; i < 256; i++) | 
 | 4563 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 4564 | 	|| toupper (i) != TOUPPER (i)) | 
 | 4565 |       return 2; | 
 | 4566 |   return 0; | 
 | 4567 | } | 
 | 4568 | _ACEOF | 
 | 4569 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 4570 |  | 
 | 4571 | else | 
 | 4572 |   ac_cv_header_stdc=no | 
 | 4573 | fi | 
 | 4574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4575 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 4576 | fi | 
 | 4577 |  | 
 | 4578 | fi | 
 | 4579 | fi | 
 | 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 4581 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 4582 | if test $ac_cv_header_stdc = yes; then | 
 | 4583 |  | 
 | 4584 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 4585 |  | 
 | 4586 | fi | 
 | 4587 |  | 
 | 4588 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4589 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 4590 | 		  inttypes.h stdint.h unistd.h | 
 | 4591 | do : | 
 | 4592 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4593 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 4594 | " | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4595 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4596 |   cat >>confdefs.h <<_ACEOF | 
 | 4597 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4598 | _ACEOF | 
 | 4599 |  | 
 | 4600 | fi | 
 | 4601 |  | 
 | 4602 | done | 
 | 4603 |  | 
 | 4604 |  | 
 | 4605 |  | 
 | 4606 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4607 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4608 |   MINIX=yes | 
 | 4609 | else | 
 | 4610 |   MINIX= | 
 | 4611 | fi | 
 | 4612 |  | 
 | 4613 |  | 
 | 4614 |   if test "$MINIX" = yes; then | 
 | 4615 |  | 
 | 4616 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 4617 |  | 
 | 4618 |  | 
 | 4619 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 4620 |  | 
 | 4621 |  | 
 | 4622 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 4623 |  | 
 | 4624 |   fi | 
 | 4625 |  | 
 | 4626 |  | 
 | 4627 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 4628 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4629 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4630 |   $as_echo_n "(cached) " >&6 | 
 | 4631 | else | 
 | 4632 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4633 | /* end confdefs.h.  */ | 
 | 4634 |  | 
 | 4635 | #	  define __EXTENSIONS__ 1 | 
 | 4636 | 	  $ac_includes_default | 
 | 4637 | int | 
 | 4638 | main () | 
 | 4639 | { | 
 | 4640 |  | 
 | 4641 |   ; | 
 | 4642 |   return 0; | 
 | 4643 | } | 
 | 4644 | _ACEOF | 
 | 4645 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4646 |   ac_cv_safe_to_define___extensions__=yes | 
 | 4647 | else | 
 | 4648 |   ac_cv_safe_to_define___extensions__=no | 
 | 4649 | fi | 
 | 4650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4651 | fi | 
 | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 4653 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 4654 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 4655 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 4656 |  | 
 | 4657 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 4658 |  | 
 | 4659 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 4660 |  | 
 | 4661 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 4662 |  | 
 | 4663 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 4664 |  | 
 | 4665 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4666 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4667 | # Check for unsupported systems | 
 | 4668 | case $ac_sys_system/$ac_sys_release in | 
 | 4669 | atheos*|Linux*/1*) | 
 | 4670 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 4671 |    echo See README for details. | 
 | 4672 |    exit 1;; | 
 | 4673 | esac | 
 | 4674 |  | 
 | 4675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 4677 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4678 |  | 
 | 4679 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4680 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4681 |   withval=$with_suffix; | 
 | 4682 | 	case $withval in | 
 | 4683 | 	no)	EXEEXT=;; | 
 | 4684 | 	yes)	EXEEXT=.exe;; | 
 | 4685 | 	*)	EXEEXT=$withval;; | 
 | 4686 | 	esac | 
 | 4687 | fi | 
 | 4688 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 4690 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4691 |  | 
 | 4692 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 4693 | # case we give a warning if no ext is given | 
 | 4694 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 4696 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4697 | if test ! -d CaseSensitiveTestDir; then | 
 | 4698 | mkdir CaseSensitiveTestDir | 
 | 4699 | fi | 
 | 4700 |  | 
 | 4701 | if test -d casesensitivetestdir | 
 | 4702 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4703 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4704 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4705 |     BUILDEXEEXT=.exe | 
 | 4706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4707 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4708 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4709 | 	BUILDEXEEXT=$EXEEXT | 
 | 4710 | fi | 
 | 4711 | rmdir CaseSensitiveTestDir | 
 | 4712 |  | 
 | 4713 | case $MACHDEP in | 
 | 4714 | bsdos*) | 
 | 4715 |     case $CC in | 
 | 4716 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 4717 |     esac;; | 
 | 4718 | esac | 
 | 4719 |  | 
 | 4720 | case $ac_sys_system in | 
 | 4721 | hp*|HP*) | 
 | 4722 |     case $CC in | 
 | 4723 |     cc|*/cc) CC="$CC -Ae";; | 
 | 4724 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4725 | esac | 
 | 4726 |  | 
 | 4727 |  | 
 | 4728 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 4730 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4731 | if test -z "$LIBRARY" | 
 | 4732 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4733 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 4736 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4737 |  | 
 | 4738 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 4739 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 4740 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 4741 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 4742 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 4743 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 4744 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 4745 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 4746 | # | 
 | 4747 | # RUNSHARED is used to run shared python without installed libraries | 
 | 4748 | # | 
 | 4749 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 4750 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4751 | # | 
 | 4752 | # LDVERSION is the shared library version number, normally the Python version | 
 | 4753 | # with the ABI build flags appended. | 
 | 4754 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4755 |  | 
 | 4756 |  | 
 | 4757 |  | 
 | 4758 |  | 
 | 4759 |  | 
 | 4760 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4761 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4762 | LDLIBRARY="$LIBRARY" | 
 | 4763 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 4764 | INSTSONAME='$(LDLIBRARY)' | 
 | 4765 | DLLLIBRARY='' | 
 | 4766 | LDLIBRARYDIR='' | 
 | 4767 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4768 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4769 |  | 
 | 4770 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 4771 | # If CXX is set, and if it is needed to link a main function that was | 
 | 4772 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 4773 | # python might then depend on the C++ runtime | 
 | 4774 | # This is altered for AIX in order to build the export list before | 
 | 4775 | # linking. | 
 | 4776 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 4778 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4779 | if test -z "$LINKCC" | 
 | 4780 | then | 
 | 4781 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 4782 | 	case $ac_sys_system in | 
 | 4783 | 	AIX*) | 
 | 4784 | 	   exp_extra="\"\"" | 
 | 4785 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 4786 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 4787 | 	       exp_extra="." | 
 | 4788 | 	   fi | 
 | 4789 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4790 | 	QNX*) | 
 | 4791 | 	   # qcc must be used because the other compilers do not | 
 | 4792 | 	   # support -N. | 
 | 4793 | 	   LINKCC=qcc;; | 
 | 4794 | 	esac | 
 | 4795 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 4797 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4798 |  | 
 | 4799 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 4800 | # make sure we default having it set to "no": this is used by | 
 | 4801 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 4802 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 4803 | # in the same bahaviour as before. | 
 | 4804 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 4806 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4807 | ac_prog=ld | 
 | 4808 | if test "$GCC" = yes; then | 
 | 4809 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 4810 | fi | 
 | 4811 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 4812 |       *GNU*) | 
 | 4813 |           GNULD=yes;; | 
 | 4814 |       *) | 
 | 4815 |           GNULD=no;; | 
 | 4816 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 4818 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4819 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 4821 | $as_echo_n "checking for inline... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4822 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4823 |   $as_echo_n "(cached) " >&6 | 
 | 4824 | else | 
 | 4825 |   ac_cv_c_inline=no | 
 | 4826 | for ac_kw in inline __inline__ __inline; do | 
 | 4827 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4828 | /* end confdefs.h.  */ | 
 | 4829 | #ifndef __cplusplus | 
 | 4830 | typedef int foo_t; | 
 | 4831 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 4832 | $ac_kw foo_t foo () {return 0; } | 
 | 4833 | #endif | 
 | 4834 |  | 
 | 4835 | _ACEOF | 
 | 4836 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4837 |   ac_cv_c_inline=$ac_kw | 
 | 4838 | fi | 
 | 4839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4840 |   test "$ac_cv_c_inline" != no && break | 
 | 4841 | done | 
 | 4842 |  | 
 | 4843 | fi | 
 | 4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 4845 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 4846 |  | 
 | 4847 | case $ac_cv_c_inline in | 
 | 4848 |   inline | yes) ;; | 
 | 4849 |   *) | 
 | 4850 |     case $ac_cv_c_inline in | 
 | 4851 |       no) ac_val=;; | 
 | 4852 |       *) ac_val=$ac_cv_c_inline;; | 
 | 4853 |     esac | 
 | 4854 |     cat >>confdefs.h <<_ACEOF | 
 | 4855 | #ifndef __cplusplus | 
 | 4856 | #define inline $ac_val | 
 | 4857 | #endif | 
 | 4858 | _ACEOF | 
 | 4859 |     ;; | 
 | 4860 | esac | 
 | 4861 |  | 
 | 4862 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4863 |  | 
 | 4864 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4865 |  | 
 | 4866 |  | 
 | 4867 | fi | 
 | 4868 |  | 
 | 4869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 4871 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4872 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4873 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4874 |   enableval=$enable_shared; | 
 | 4875 | fi | 
 | 4876 |  | 
 | 4877 |  | 
 | 4878 | if test -z "$enable_shared" | 
 | 4879 | then | 
 | 4880 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4881 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4882 |     enable_shared="yes";; | 
 | 4883 |   *) | 
 | 4884 |     enable_shared="no";; | 
 | 4885 |   esac | 
 | 4886 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 4888 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4889 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 4891 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4892 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4893 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4894 |   enableval=$enable_profiling; ac_save_cc="$CC" | 
 | 4895 |  CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4896 |  if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4897 |   ac_enable_profiling="no" | 
 | 4898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4899 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4900 | /* end confdefs.h.  */ | 
 | 4901 | int main() { return 0; } | 
 | 4902 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4903 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4904 |   ac_enable_profiling="yes" | 
 | 4905 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4906 |   ac_enable_profiling="no" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4907 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4908 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 4909 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4910 | fi | 
 | 4911 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4912 |  CC="$ac_save_cc" | 
 | 4913 | fi | 
 | 4914 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
 | 4916 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4917 |  | 
 | 4918 | case "$ac_enable_profiling" in | 
 | 4919 |     "yes") | 
 | 4920 | 	BASECFLAGS="-pg $BASECFLAGS" | 
 | 4921 | 	LDFLAGS="-pg $LDFLAGS" | 
 | 4922 |     ;; | 
 | 4923 | esac | 
 | 4924 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 4926 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4927 |  | 
 | 4928 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 4929 | # library that we build, but we do not want to link against it (we | 
 | 4930 | # will find it with a -framework option). For this reason there is an | 
 | 4931 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 4932 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 4933 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 4934 | if test "$enable_framework" | 
 | 4935 | then | 
 | 4936 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 4937 |   RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
 | 4938 |   BLDLIBRARY='' | 
 | 4939 | else | 
 | 4940 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 4941 | fi | 
 | 4942 |  | 
 | 4943 | # Other platforms follow | 
 | 4944 | if test $enable_shared = "yes"; then | 
 | 4945 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4946 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4947 |  | 
 | 4948 |   case $ac_sys_system in | 
 | 4949 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4950 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 4951 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4952 |           ;; | 
 | 4953 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4954 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4955 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4956 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4957 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4958 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4959 | 	  then | 
 | 4960 | 	      PY3LIBRARY=libpython3.so | 
 | 4961 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4962 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 4963 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4964 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4965 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4966 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4967 | 	  case $ac_sys_system in | 
 | 4968 | 	      FreeBSD*) | 
 | 4969 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 4970 | 		;; | 
 | 4971 | 	  esac | 
 | 4972 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4973 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4974 |           then | 
 | 4975 | 	      PY3LIBRARY=libpython3.so | 
 | 4976 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4977 | 	  ;; | 
 | 4978 |     hp*|HP*) | 
 | 4979 | 	  case `uname -m` in | 
 | 4980 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4981 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4982 | 			;; | 
 | 4983 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4984 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4985 | 			;; | 
 | 4986 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4987 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4988 | 	  RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
 | 4989 | 	  ;; | 
 | 4990 |     OSF*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4991 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 4992 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4993 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 4994 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4995 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4996 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 4997 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4998 | 	RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
 | 4999 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5000 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5001 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5002 | 	RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
 | 5003 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5004 |  | 
 | 5005 |   esac | 
 | 5006 | else # shared is disabled | 
 | 5007 |   case $ac_sys_system in | 
 | 5008 |     CYGWIN*) | 
 | 5009 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5010 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5011 |           ;; | 
 | 5012 |   esac | 
 | 5013 | fi | 
 | 5014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5016 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5017 |  | 
 | 5018 | if test -n "$ac_tool_prefix"; then | 
 | 5019 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5020 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5022 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5023 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5024 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5025 | else | 
 | 5026 |   if test -n "$RANLIB"; then | 
 | 5027 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5028 | else | 
 | 5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5030 | for as_dir in $PATH | 
 | 5031 | do | 
 | 5032 |   IFS=$as_save_IFS | 
 | 5033 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5034 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5035 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5036 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5037 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5038 |     break 2 | 
 | 5039 |   fi | 
 | 5040 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5041 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5042 | IFS=$as_save_IFS | 
 | 5043 |  | 
 | 5044 | fi | 
 | 5045 | fi | 
 | 5046 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5047 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5048 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5049 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5050 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5051 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5052 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5053 | fi | 
 | 5054 |  | 
 | 5055 |  | 
 | 5056 | fi | 
 | 5057 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5058 |   ac_ct_RANLIB=$RANLIB | 
 | 5059 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5060 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5062 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5063 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5064 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5065 | else | 
 | 5066 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5067 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5068 | else | 
 | 5069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5070 | for as_dir in $PATH | 
 | 5071 | do | 
 | 5072 |   IFS=$as_save_IFS | 
 | 5073 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5074 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5075 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5076 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5077 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5078 |     break 2 | 
 | 5079 |   fi | 
 | 5080 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5081 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5082 | IFS=$as_save_IFS | 
 | 5083 |  | 
 | 5084 | fi | 
 | 5085 | fi | 
 | 5086 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5087 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5088 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5089 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5090 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5091 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5092 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5093 | fi | 
 | 5094 |  | 
 | 5095 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5096 |     RANLIB=":" | 
 | 5097 |   else | 
 | 5098 |     case $cross_compiling:$ac_tool_warned in | 
 | 5099 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5102 | ac_tool_warned=yes ;; | 
 | 5103 | esac | 
 | 5104 |     RANLIB=$ac_ct_RANLIB | 
 | 5105 |   fi | 
 | 5106 | else | 
 | 5107 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5108 | fi | 
 | 5109 |  | 
 | 5110 |  | 
 | 5111 | for ac_prog in ar aal | 
 | 5112 | do | 
 | 5113 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5114 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5116 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5117 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5118 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5119 | else | 
 | 5120 |   if test -n "$AR"; then | 
 | 5121 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5122 | else | 
 | 5123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5124 | for as_dir in $PATH | 
 | 5125 | do | 
 | 5126 |   IFS=$as_save_IFS | 
 | 5127 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5128 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5129 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5130 |     ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5131 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5132 |     break 2 | 
 | 5133 |   fi | 
 | 5134 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5135 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5136 | IFS=$as_save_IFS | 
 | 5137 |  | 
 | 5138 | fi | 
 | 5139 | fi | 
 | 5140 | AR=$ac_cv_prog_AR | 
 | 5141 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5142 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5143 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5144 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5145 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5146 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5147 | fi | 
 | 5148 |  | 
 | 5149 |  | 
 | 5150 |   test -n "$AR" && break | 
 | 5151 | done | 
 | 5152 | test -n "$AR" || AR="ar" | 
 | 5153 |  | 
 | 5154 |  | 
 | 5155 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5156 |  | 
 | 5157 | if test -z "$ARFLAGS" | 
 | 5158 | then | 
 | 5159 |         ARFLAGS="rc" | 
 | 5160 | fi | 
 | 5161 |  | 
 | 5162 |  | 
 | 5163 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5164 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5166 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5167 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5168 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5169 | else | 
 | 5170 |   if test -n "$SVNVERSION"; then | 
 | 5171 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5172 | else | 
 | 5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5174 | for as_dir in $PATH | 
 | 5175 | do | 
 | 5176 |   IFS=$as_save_IFS | 
 | 5177 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5178 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5179 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5180 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5181 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5182 |     break 2 | 
 | 5183 |   fi | 
 | 5184 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5185 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5186 | IFS=$as_save_IFS | 
 | 5187 |  | 
 | 5188 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5189 | fi | 
 | 5190 | fi | 
 | 5191 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5192 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5193 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5194 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5196 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5197 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5198 | fi | 
 | 5199 |  | 
 | 5200 |  | 
 | 5201 | if test $SVNVERSION = found | 
 | 5202 | then | 
 | 5203 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5204 | else | 
 | 5205 | 	SVNVERSION="echo Unversioned directory" | 
 | 5206 | fi | 
 | 5207 |  | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5208 |  | 
 | 5209 |  | 
 | 5210 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5211 |  | 
| Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5212 | if test -e $srcdir/.hg/dirstate | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5213 | then | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5214 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5215 | set dummy hg; ac_word=$2 | 
 | 5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5217 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5218 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5219 |   $as_echo_n "(cached) " >&6 | 
 | 5220 | else | 
 | 5221 |   if test -n "$HAS_HG"; then | 
 | 5222 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5223 | else | 
 | 5224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5225 | for as_dir in $PATH | 
 | 5226 | do | 
 | 5227 |   IFS=$as_save_IFS | 
 | 5228 |   test -z "$as_dir" && as_dir=. | 
 | 5229 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5230 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5231 |     ac_cv_prog_HAS_HG="found" | 
 | 5232 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5233 |     break 2 | 
 | 5234 |   fi | 
 | 5235 | done | 
 | 5236 |   done | 
 | 5237 | IFS=$as_save_IFS | 
 | 5238 |  | 
 | 5239 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5240 | fi | 
 | 5241 | fi | 
 | 5242 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5243 | if test -n "$HAS_HG"; then | 
 | 5244 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5245 | $as_echo "$HAS_HG" >&6; } | 
 | 5246 | else | 
 | 5247 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5248 | $as_echo "no" >&6; } | 
 | 5249 | fi | 
 | 5250 |  | 
 | 5251 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5252 | else | 
 | 5253 | HAS_HG=no-repository | 
 | 5254 | fi | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5255 | if test $HAS_HG = found | 
 | 5256 | then | 
 | 5257 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5258 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5259 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5260 | else | 
 | 5261 |     HGVERSION="" | 
 | 5262 |     HGTAG="" | 
 | 5263 |     HGBRANCH="" | 
 | 5264 | fi | 
 | 5265 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5266 |  | 
 | 5267 | DISABLE_ASDLGEN="" | 
 | 5268 | # Extract the first word of "python", so it can be a program name with args. | 
 | 5269 | set dummy python; ac_word=$2 | 
 | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5271 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5272 | if ${ac_cv_prog_HAS_PYTHON+:} false; then : | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5273 |   $as_echo_n "(cached) " >&6 | 
 | 5274 | else | 
 | 5275 |   if test -n "$HAS_PYTHON"; then | 
 | 5276 |   ac_cv_prog_HAS_PYTHON="$HAS_PYTHON" # Let the user override the test. | 
 | 5277 | else | 
 | 5278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5279 | for as_dir in $PATH | 
 | 5280 | do | 
 | 5281 |   IFS=$as_save_IFS | 
 | 5282 |   test -z "$as_dir" && as_dir=. | 
 | 5283 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5284 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5285 |     ac_cv_prog_HAS_PYTHON="found" | 
 | 5286 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5287 |     break 2 | 
 | 5288 |   fi | 
 | 5289 | done | 
 | 5290 |   done | 
 | 5291 | IFS=$as_save_IFS | 
 | 5292 |  | 
 | 5293 |   test -z "$ac_cv_prog_HAS_PYTHON" && ac_cv_prog_HAS_PYTHON="not-found" | 
 | 5294 | fi | 
 | 5295 | fi | 
 | 5296 | HAS_PYTHON=$ac_cv_prog_HAS_PYTHON | 
 | 5297 | if test -n "$HAS_PYTHON"; then | 
 | 5298 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PYTHON" >&5 | 
 | 5299 | $as_echo "$HAS_PYTHON" >&6; } | 
 | 5300 | else | 
 | 5301 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5302 | $as_echo "no" >&6; } | 
 | 5303 | fi | 
 | 5304 |  | 
 | 5305 |  | 
 | 5306 | if test $HAS_HG != found -o $HAS_PYTHON != found | 
 | 5307 | then | 
 | 5308 |     DISABLE_ASDLGEN="@echo hg: $HAS_HG, python: $HAS_PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" | 
 | 5309 | fi | 
 | 5310 |  | 
 | 5311 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5312 | case $MACHDEP in | 
 | 5313 | bsdos*|hp*|HP*) | 
 | 5314 | 	# install -d does not work on BSDI or HP-UX | 
 | 5315 | 	if test -z "$INSTALL" | 
 | 5316 | 	then | 
 | 5317 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5318 | 	fi | 
 | 5319 | esac | 
 | 5320 | ac_aux_dir= | 
 | 5321 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5322 |   if test -f "$ac_dir/install-sh"; then | 
 | 5323 |     ac_aux_dir=$ac_dir | 
 | 5324 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 5325 |     break | 
 | 5326 |   elif test -f "$ac_dir/install.sh"; then | 
 | 5327 |     ac_aux_dir=$ac_dir | 
 | 5328 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 5329 |     break | 
 | 5330 |   elif test -f "$ac_dir/shtool"; then | 
 | 5331 |     ac_aux_dir=$ac_dir | 
 | 5332 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 5333 |     break | 
 | 5334 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5335 | done | 
 | 5336 | if test -z "$ac_aux_dir"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5337 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5338 | fi | 
 | 5339 |  | 
 | 5340 | # These three variables are undocumented and unsupported, | 
 | 5341 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 5342 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 5343 | # whose full name contains unusual characters. | 
 | 5344 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 5345 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 5346 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 5347 |  | 
 | 5348 |  | 
 | 5349 | # Find a good install program.  We prefer a C program (faster), | 
 | 5350 | # so one script is as good as another.  But avoid the broken or | 
 | 5351 | # incompatible versions: | 
 | 5352 | # SysV /etc/install, /usr/sbin/install | 
 | 5353 | # SunOS /usr/etc/install | 
 | 5354 | # IRIX /sbin/install | 
 | 5355 | # AIX /bin/install | 
 | 5356 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5360 | # OS/2's system install, which has a completely different semantic | 
 | 5361 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5362 | # Reject install programs that cannot install multiple files. | 
 | 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5364 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5365 | if test -z "$INSTALL"; then | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5366 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5367 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5368 | else | 
 | 5369 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5370 | for as_dir in $PATH | 
 | 5371 | do | 
 | 5372 |   IFS=$as_save_IFS | 
 | 5373 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5374 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5375 | case $as_dir/ in #(( | 
 | 5376 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5377 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5378 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5379 |   /usr/ucb/* ) ;; | 
 | 5380 |   *) | 
 | 5381 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5382 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5383 |     # by default. | 
 | 5384 |     for ac_prog in ginstall scoinst install; do | 
 | 5385 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5386 | 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
 | 5387 | 	  if test $ac_prog = install && | 
 | 5388 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5389 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5390 | 	    : | 
 | 5391 | 	  elif test $ac_prog = install && | 
 | 5392 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5393 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5394 | 	    : | 
 | 5395 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5396 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5397 | 	    echo one > conftest.one | 
 | 5398 | 	    echo two > conftest.two | 
 | 5399 | 	    mkdir conftest.dir | 
 | 5400 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5401 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5402 | 	      test -s conftest.dir/conftest.one && | 
 | 5403 | 	      test -s conftest.dir/conftest.two | 
 | 5404 | 	    then | 
 | 5405 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5406 | 	      break 3 | 
 | 5407 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5408 | 	  fi | 
 | 5409 | 	fi | 
 | 5410 |       done | 
 | 5411 |     done | 
 | 5412 |     ;; | 
 | 5413 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5414 |  | 
 | 5415 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5416 | IFS=$as_save_IFS | 
 | 5417 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5418 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5419 |  | 
 | 5420 | fi | 
 | 5421 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5422 |     INSTALL=$ac_cv_path_install | 
 | 5423 |   else | 
 | 5424 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5425 |     # value for INSTALL within a source directory, because that will | 
 | 5426 |     # break other packages using the cache if that directory is | 
 | 5427 |     # removed, or if the value is a relative name. | 
 | 5428 |     INSTALL=$ac_install_sh | 
 | 5429 |   fi | 
 | 5430 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5432 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5433 |  | 
 | 5434 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5435 | # It thinks the first close brace ends the variable substitution. | 
 | 5436 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5437 |  | 
 | 5438 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5439 |  | 
 | 5440 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5441 |  | 
| Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 5443 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 5444 | if test -z "$MKDIR_P"; then | 
 | 5445 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 5446 |   $as_echo_n "(cached) " >&6 | 
 | 5447 | else | 
 | 5448 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5449 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 5450 | do | 
 | 5451 |   IFS=$as_save_IFS | 
 | 5452 |   test -z "$as_dir" && as_dir=. | 
 | 5453 |     for ac_prog in mkdir gmkdir; do | 
 | 5454 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5455 | 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | 
 | 5456 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 5457 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 5458 | 	     'mkdir (coreutils) '* | \ | 
 | 5459 | 	     'mkdir (fileutils) '4.1*) | 
 | 5460 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 5461 | 	       break 3;; | 
 | 5462 | 	   esac | 
 | 5463 | 	 done | 
 | 5464 |        done | 
 | 5465 |   done | 
 | 5466 | IFS=$as_save_IFS | 
 | 5467 |  | 
 | 5468 | fi | 
 | 5469 |  | 
 | 5470 |   test -d ./--version && rmdir ./--version | 
 | 5471 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 5472 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 5473 |   else | 
 | 5474 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5475 |     # value for MKDIR_P within a source directory, because that will | 
 | 5476 |     # break other packages using the cache if that directory is | 
 | 5477 |     # removed, or if the value is a relative name. | 
 | 5478 |     MKDIR_P="$ac_install_sh -d" | 
 | 5479 |   fi | 
 | 5480 | fi | 
 | 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 5482 | $as_echo "$MKDIR_P" >&6; } | 
 | 5483 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5484 |  | 
 | 5485 | # Not every filesystem supports hard links | 
 | 5486 |  | 
 | 5487 | if test -z "$LN" ; then | 
 | 5488 | 	case $ac_sys_system in | 
 | 5489 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5490 | 		*) LN=ln;; | 
 | 5491 | 	esac | 
 | 5492 | fi | 
 | 5493 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5494 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5495 |  | 
 | 5496 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5497 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5498 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5500 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5501 |  | 
 | 5502 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5503 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5504 |   withval=$with_pydebug; | 
 | 5505 | if test "$withval" != no | 
 | 5506 | then | 
 | 5507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5508 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5509 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5510 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5511 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5512 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5513 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5514 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5515 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5516 | fi | 
 | 5517 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5518 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5519 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5520 | fi | 
 | 5521 |  | 
 | 5522 |  | 
 | 5523 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5524 | # merged with this chunk of code? | 
 | 5525 |  | 
 | 5526 | # Optimizer/debugger flags | 
 | 5527 | # ------------------------ | 
 | 5528 | # (The following bit of code is complicated enough - please keep things | 
 | 5529 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5530 |  | 
 | 5531 | # There are two parallel sets of case statements below, one that checks to | 
 | 5532 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5533 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5534 | # user set OPT. | 
 | 5535 |  | 
 | 5536 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5537 | # it on the command line | 
 | 5538 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5539 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5540 | then | 
 | 5541 |     case $GCC in | 
 | 5542 |     yes) | 
 | 5543 |         if test "$CC" != 'g++' ; then | 
 | 5544 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5545 | 	fi | 
 | 5546 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5547 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5548 |            WRAP="-fwrapv" | 
 | 5549 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 5550 |  | 
 | 5551 |         # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 5552 |         case $CC in | 
 | 5553 |             *clang*) WRAP="-fwrapv" | 
 | 5554 |             ;; | 
 | 5555 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 5556 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5557 | 	case $ac_cv_prog_cc_g in | 
 | 5558 | 	yes) | 
 | 5559 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5560 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5561 | 		# debug builds. | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5562 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5563 | 	    else | 
 | 5564 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5565 | 	    fi | 
 | 5566 | 	    ;; | 
 | 5567 | 	*) | 
 | 5568 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5569 | 	    ;; | 
 | 5570 | 	esac | 
 | 5571 | 	case $ac_sys_system in | 
 | 5572 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5573 | 	    ;; | 
 | 5574 |         esac | 
 | 5575 | 	;; | 
 | 5576 |  | 
 | 5577 |     *) | 
 | 5578 | 	OPT="-O" | 
 | 5579 | 	;; | 
 | 5580 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5581 | fi | 
 | 5582 |  | 
 | 5583 |  | 
 | 5584 |  | 
 | 5585 | # The -arch flags for universal builds on OSX | 
 | 5586 | UNIVERSAL_ARCH_FLAGS= | 
 | 5587 |  | 
 | 5588 |  | 
 | 5589 | # tweak BASECFLAGS based on compiler and platform | 
 | 5590 | case $GCC in | 
 | 5591 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5592 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 5593 |     # GCC produce warnings for legal Python code.  Enable | 
 | 5594 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 5595 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5596 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 5597 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5598 |      ac_save_cc="$CC" | 
 | 5599 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5600 |      save_CFLAGS="$CFLAGS" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5601 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5602 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5603 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5604 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5605 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5606 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5607 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5608 | int | 
 | 5609 | main () | 
 | 5610 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5611 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5612 |   ; | 
 | 5613 |   return 0; | 
 | 5614 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5615 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5616 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5617 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5618 |  | 
 | 5619 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 5620 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 5621 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5622 | /* end confdefs.h.  */ | 
 | 5623 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5624 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5625 | int | 
 | 5626 | main () | 
 | 5627 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5628 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5629 |   ; | 
 | 5630 |   return 0; | 
 | 5631 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5632 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5633 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5634 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5635 |  | 
 | 5636 | 	       ac_cv_no_strict_aliasing=no | 
 | 5637 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5638 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5639 |  | 
 | 5640 |                ac_cv_no_strict_aliasing=yes | 
 | 5641 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5642 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5644 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5645 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5646 |  | 
 | 5647 | 	   ac_cv_no_strict_aliasing=no | 
 | 5648 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5649 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5651 | fi | 
 | 5652 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5653 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5654 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5655 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 5656 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5657 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5658 |     then | 
 | 5659 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 5660 |     fi | 
 | 5661 |  | 
 | 5662 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 5663 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 5664 |     # the standard. | 
 | 5665 |     case $ac_sys_machine in | 
 | 5666 |          alpha*) | 
 | 5667 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5668 |                 ;; | 
 | 5669 |     esac | 
 | 5670 |  | 
 | 5671 |     case $ac_sys_system in | 
 | 5672 | 	SCO_SV*) | 
 | 5673 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 5674 | 	    ;; | 
 | 5675 | 	# is there any other compiler on Darwin besides gcc? | 
 | 5676 | 	Darwin*) | 
 | 5677 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 5678 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5679 |             if test "${CC}" = gcc | 
 | 5680 | 	    then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5681 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 5682 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5683 | 		case "${UNIVERSALSDK}" in | 
 | 5684 | 		*/MacOSX10.4u.sdk) | 
 | 5685 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 5686 | 			# compiler is gcc, otherwise the user will get very | 
 | 5687 | 			# confusing error messages when building on OSX 10.6 | 
 | 5688 | 			CC=gcc-4.0 | 
 | 5689 | 			CPP=cpp-4.0 | 
 | 5690 | 			;; | 
 | 5691 | 		esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5692 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5693 | $as_echo "$CC" >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5694 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5695 |  | 
 | 5696 |  | 
 | 5697 | 	    if test "${enable_universalsdk}"; then | 
 | 5698 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 5699 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 5700 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 5701 | 		   ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5702 | 		   LIPO_32BIT_FLAGS="" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5703 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 5704 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5705 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5706 | 		   ARCH_RUN_32BIT="true" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5707 |  | 
 | 5708 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 5709 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5710 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5711 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 |  | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5713 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 5714 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5715 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5716 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5717 |  | 
 | 5718 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 5719 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5720 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5721 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5722 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5723 | 		 else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5724 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5725 |  | 
 | 5726 | 		 fi | 
 | 5727 |  | 
 | 5728 |  | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5729 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 5730 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 5731 | 		then | 
 | 5732 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 5733 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5734 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | 		fi | 
 | 5736 | 	    fi | 
 | 5737 |  | 
 | 5738 | 	    # Calculate the right deployment target for this build. | 
 | 5739 | 	    # | 
 | 5740 | 	    cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
 | 5741 | 	    if test ${cur_target} '>' 10.2; then | 
 | 5742 | 		    cur_target=10.3 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5743 | 		    if test ${enable_universalsdk}; then | 
 | 5744 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 5745 | 				    # Ensure that the default platform for a | 
 | 5746 | 				    # 4-way universal build is OSX 10.5, | 
 | 5747 | 				    # that's the first OS release where | 
 | 5748 | 				    # 4-way builds make sense. | 
 | 5749 | 				    cur_target='10.5' | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5750 |  | 
 | 5751 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 5752 | 				    cur_target='10.5' | 
 | 5753 |  | 
 | 5754 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 5755 | 				    cur_target='10.5' | 
 | 5756 |  | 
 | 5757 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 5758 | 				    cur_target='10.5' | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5759 | 			    fi | 
 | 5760 | 		    else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5761 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5762 | 				    # On Intel macs default to a deployment | 
 | 5763 | 				    # target of 10.4, that's the first OSX | 
 | 5764 | 				    # release with Intel support. | 
 | 5765 | 				    cur_target="10.4" | 
 | 5766 | 			    fi | 
 | 5767 | 		    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | 	    fi | 
 | 5769 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 5770 |  | 
 | 5771 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 5772 | 	    # environment with a value that is the same as what we'll use | 
 | 5773 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 5774 | 	    # environment during configure and build time. | 
 | 5775 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 5776 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 5777 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 5778 |  | 
 | 5779 | 	    ;; | 
 | 5780 | 	OSF*) | 
 | 5781 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 5782 | 	    ;; | 
 | 5783 |     esac | 
 | 5784 |     ;; | 
 | 5785 |  | 
 | 5786 | *) | 
 | 5787 |     case $ac_sys_system in | 
 | 5788 |     OpenUNIX*|UnixWare*) | 
 | 5789 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 5790 | 	;; | 
 | 5791 |     OSF*) | 
 | 5792 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 5793 |     	;; | 
 | 5794 |     SCO_SV*) | 
 | 5795 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 5796 | 	;; | 
 | 5797 |     esac | 
 | 5798 |     ;; | 
 | 5799 | esac | 
 | 5800 |  | 
 | 5801 | if test "$Py_DEBUG" = 'true'; then | 
 | 5802 |   : | 
 | 5803 | else | 
 | 5804 |   OPT="-DNDEBUG $OPT" | 
 | 5805 | fi | 
 | 5806 |  | 
 | 5807 | if test "$ac_arch_flags" | 
 | 5808 | then | 
 | 5809 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 5810 | fi | 
 | 5811 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5812 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 5813 | if test "$GCC" = "yes" | 
 | 5814 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5815 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 5816 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 |   save_CFLAGS=$CFLAGS | 
 | 5818 |   CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5819 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5820 | /* end confdefs.h.  */ | 
 | 5821 |  | 
 | 5822 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5823 | int | 
 | 5824 | main () | 
 | 5825 | { | 
 | 5826 |  | 
 | 5827 |   ; | 
 | 5828 |   return 0; | 
 | 5829 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5830 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5832 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5833 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5834 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5835 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5836 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5837 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5838 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5839 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5840 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5841 |  | 
 | 5842 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5843 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5844 |  | 
 | 5845 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5847 |   CFLAGS=$save_CFLAGS | 
 | 5848 | fi | 
 | 5849 |  | 
 | 5850 | # On some compilers, pthreads are available without further options | 
 | 5851 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 5852 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 5853 | # So we have to see first whether pthreads are available without | 
 | 5854 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 5856 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5857 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5858 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5859 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5860 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5861 |   ac_cv_pthread_is_default=no | 
 | 5862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5863 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5864 | /* end confdefs.h.  */ | 
 | 5865 |  | 
 | 5866 | #include <pthread.h> | 
 | 5867 |  | 
 | 5868 | void* routine(void* p){return NULL;} | 
 | 5869 |  | 
 | 5870 | int main(){ | 
 | 5871 |   pthread_t p; | 
 | 5872 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5873 |     return 1; | 
 | 5874 |   (void)pthread_detach(p); | 
 | 5875 |   return 0; | 
 | 5876 | } | 
 | 5877 |  | 
 | 5878 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5879 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5880 |  | 
 | 5881 |   ac_cv_pthread_is_default=yes | 
 | 5882 |   ac_cv_kthread=no | 
 | 5883 |   ac_cv_pthread=no | 
 | 5884 |  | 
 | 5885 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5886 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5887 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5889 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5890 | fi | 
 | 5891 |  | 
 | 5892 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 | fi | 
 | 5894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 5896 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5897 |  | 
 | 5898 |  | 
 | 5899 | if test $ac_cv_pthread_is_default = yes | 
 | 5900 | then | 
 | 5901 |   ac_cv_kpthread=no | 
 | 5902 | else | 
 | 5903 | # -Kpthread, if available, provides the right #defines | 
 | 5904 | # and linker options to make pthread_create available | 
 | 5905 | # Some compilers won't report that they do not support -Kpthread, | 
 | 5906 | # so we need to run a program to see whether it really made the | 
 | 5907 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 5909 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5910 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5911 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5912 | else | 
 | 5913 |   ac_save_cc="$CC" | 
 | 5914 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5915 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5916 |   ac_cv_kpthread=no | 
 | 5917 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5918 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 | /* end confdefs.h.  */ | 
 | 5920 |  | 
 | 5921 | #include <pthread.h> | 
 | 5922 |  | 
 | 5923 | void* routine(void* p){return NULL;} | 
 | 5924 |  | 
 | 5925 | int main(){ | 
 | 5926 |   pthread_t p; | 
 | 5927 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5928 |     return 1; | 
 | 5929 |   (void)pthread_detach(p); | 
 | 5930 |   return 0; | 
 | 5931 | } | 
 | 5932 |  | 
 | 5933 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5934 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5935 |   ac_cv_kpthread=yes | 
 | 5936 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5937 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5940 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5941 | fi | 
 | 5942 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5943 | CC="$ac_save_cc" | 
 | 5944 | fi | 
 | 5945 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 5947 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 | fi | 
 | 5949 |  | 
 | 5950 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 5951 | then | 
 | 5952 | # -Kthread, if available, provides the right #defines | 
 | 5953 | # and linker options to make pthread_create available | 
 | 5954 | # Some compilers won't report that they do not support -Kthread, | 
 | 5955 | # so we need to run a program to see whether it really made the | 
 | 5956 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 5958 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5959 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5960 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5961 | else | 
 | 5962 |   ac_save_cc="$CC" | 
 | 5963 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5964 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5965 |   ac_cv_kthread=no | 
 | 5966 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5967 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5968 | /* end confdefs.h.  */ | 
 | 5969 |  | 
 | 5970 | #include <pthread.h> | 
 | 5971 |  | 
 | 5972 | void* routine(void* p){return NULL;} | 
 | 5973 |  | 
 | 5974 | int main(){ | 
 | 5975 |   pthread_t p; | 
 | 5976 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 5977 |     return 1; | 
 | 5978 |   (void)pthread_detach(p); | 
 | 5979 |   return 0; | 
 | 5980 | } | 
 | 5981 |  | 
 | 5982 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5983 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5984 |   ac_cv_kthread=yes | 
 | 5985 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5986 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5987 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5988 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5989 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5990 | fi | 
 | 5991 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5992 | CC="$ac_save_cc" | 
 | 5993 | fi | 
 | 5994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 5996 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5997 | fi | 
 | 5998 |  | 
 | 5999 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6000 | then | 
 | 6001 | # -pthread, if available, provides the right #defines | 
 | 6002 | # and linker options to make pthread_create available | 
 | 6003 | # Some compilers won't report that they do not support -pthread, | 
 | 6004 | # so we need to run a program to see whether it really made the | 
 | 6005 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6007 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6008 | if ${ac_cv_thread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6009 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6010 | else | 
 | 6011 |   ac_save_cc="$CC" | 
 | 6012 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6013 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6014 |   ac_cv_pthread=no | 
 | 6015 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6016 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6017 | /* end confdefs.h.  */ | 
 | 6018 |  | 
 | 6019 | #include <pthread.h> | 
 | 6020 |  | 
 | 6021 | void* routine(void* p){return NULL;} | 
 | 6022 |  | 
 | 6023 | int main(){ | 
 | 6024 |   pthread_t p; | 
 | 6025 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6026 |     return 1; | 
 | 6027 |   (void)pthread_detach(p); | 
 | 6028 |   return 0; | 
 | 6029 | } | 
 | 6030 |  | 
 | 6031 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6032 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6033 |   ac_cv_pthread=yes | 
 | 6034 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6035 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6036 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6038 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6039 | fi | 
 | 6040 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6041 | CC="$ac_save_cc" | 
 | 6042 | fi | 
 | 6043 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6045 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6046 | fi | 
 | 6047 |  | 
 | 6048 | # If we have set a CC compiler flag for thread support then | 
 | 6049 | # check if it works for CXX, too. | 
 | 6050 | ac_cv_cxx_thread=no | 
 | 6051 | if test ! -z "$CXX" | 
 | 6052 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6054 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6055 | ac_save_cxx="$CXX" | 
 | 6056 |  | 
 | 6057 | if test "$ac_cv_kpthread" = "yes" | 
 | 6058 | then | 
 | 6059 |   CXX="$CXX -Kpthread" | 
 | 6060 |   ac_cv_cxx_thread=yes | 
 | 6061 | elif test "$ac_cv_kthread" = "yes" | 
 | 6062 | then | 
 | 6063 |   CXX="$CXX -Kthread" | 
 | 6064 |   ac_cv_cxx_thread=yes | 
 | 6065 | elif test "$ac_cv_pthread" = "yes" | 
 | 6066 | then | 
 | 6067 |   CXX="$CXX -pthread" | 
 | 6068 |   ac_cv_cxx_thread=yes | 
 | 6069 | fi | 
 | 6070 |  | 
 | 6071 | if test $ac_cv_cxx_thread = yes | 
 | 6072 | then | 
 | 6073 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6074 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6075 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6076 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6077 |   then | 
 | 6078 |     ac_cv_cxx_thread=yes | 
 | 6079 |   else | 
 | 6080 |     ac_cv_cxx_thread=no | 
 | 6081 |   fi | 
 | 6082 |   rm -fr conftest* | 
 | 6083 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6085 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6086 | fi | 
 | 6087 | CXX="$ac_save_cxx" | 
 | 6088 |  | 
 | 6089 |  | 
 | 6090 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6092 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6093 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6094 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6095 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6096 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6097 | /* end confdefs.h.  */ | 
 | 6098 | #include <stdlib.h> | 
 | 6099 | #include <stdarg.h> | 
 | 6100 | #include <string.h> | 
 | 6101 | #include <float.h> | 
 | 6102 |  | 
 | 6103 | int | 
 | 6104 | main () | 
 | 6105 | { | 
 | 6106 |  | 
 | 6107 |   ; | 
 | 6108 |   return 0; | 
 | 6109 | } | 
 | 6110 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6111 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6112 |   ac_cv_header_stdc=yes | 
 | 6113 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6114 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6115 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6117 |  | 
 | 6118 | if test $ac_cv_header_stdc = yes; then | 
 | 6119 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6120 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6121 | /* end confdefs.h.  */ | 
 | 6122 | #include <string.h> | 
 | 6123 |  | 
 | 6124 | _ACEOF | 
 | 6125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6126 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6127 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6128 | else | 
 | 6129 |   ac_cv_header_stdc=no | 
 | 6130 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6131 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6132 |  | 
 | 6133 | fi | 
 | 6134 |  | 
 | 6135 | if test $ac_cv_header_stdc = yes; then | 
 | 6136 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6137 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6138 | /* end confdefs.h.  */ | 
 | 6139 | #include <stdlib.h> | 
 | 6140 |  | 
 | 6141 | _ACEOF | 
 | 6142 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6143 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6144 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6145 | else | 
 | 6146 |   ac_cv_header_stdc=no | 
 | 6147 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6148 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6149 |  | 
 | 6150 | fi | 
 | 6151 |  | 
 | 6152 | if test $ac_cv_header_stdc = yes; then | 
 | 6153 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6154 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6155 |   : | 
 | 6156 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6157 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6158 | /* end confdefs.h.  */ | 
 | 6159 | #include <ctype.h> | 
 | 6160 | #include <stdlib.h> | 
 | 6161 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6162 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6163 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6164 | #else | 
 | 6165 | # define ISLOWER(c) \ | 
 | 6166 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6167 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6168 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6169 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6170 | #endif | 
 | 6171 |  | 
 | 6172 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6173 | int | 
 | 6174 | main () | 
 | 6175 | { | 
 | 6176 |   int i; | 
 | 6177 |   for (i = 0; i < 256; i++) | 
 | 6178 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6179 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6180 |       return 2; | 
 | 6181 |   return 0; | 
 | 6182 | } | 
 | 6183 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6184 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6185 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6186 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6187 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6190 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6191 | fi | 
 | 6192 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6193 | fi | 
 | 6194 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6196 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6197 | if test $ac_cv_header_stdc = yes; then | 
 | 6198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6199 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6200 |  | 
 | 6201 | fi | 
 | 6202 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6203 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
 | 6204 | fcntl.h grp.h \ | 
| Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6205 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6206 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 6207 | unistd.h utime.h \ | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6208 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6209 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6210 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Gregory P. Smith | 8facece | 2012-01-21 14:01:08 -0800 | [diff] [blame] | 6211 | sys/syscall.h sys/termio.h sys/time.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6212 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 6213 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6214 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6215 | do : | 
 | 6216 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6217 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6218 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6220 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | _ACEOF | 
 | 6222 |  | 
 | 6223 | fi | 
 | 6224 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6225 | done | 
 | 6226 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6227 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6228 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6229 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6231 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6232 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6233 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6234 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6235 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6236 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6237 | #include <sys/types.h> | 
 | 6238 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6239 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 | int | 
 | 6241 | main () | 
 | 6242 | { | 
 | 6243 | if ((DIR *) 0) | 
 | 6244 | return 0; | 
 | 6245 |   ; | 
 | 6246 |   return 0; | 
 | 6247 | } | 
 | 6248 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6250 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6251 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6252 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6253 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6255 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6256 | eval ac_res=\$$as_ac_Header | 
 | 6257 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6258 | $as_echo "$ac_res" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6259 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6260 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6261 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6262 | _ACEOF | 
 | 6263 |  | 
 | 6264 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6265 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6266 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6267 | done | 
 | 6268 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6269 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6270 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6271 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6272 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6273 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6274 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6277 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6278 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6279 | /* Override any GCC internal prototype to avoid an error. | 
 | 6280 |    Use char because int might match the return type of a GCC | 
 | 6281 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6282 | #ifdef __cplusplus | 
 | 6283 | extern "C" | 
 | 6284 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6285 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6286 | int | 
 | 6287 | main () | 
 | 6288 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6289 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6290 |   ; | 
 | 6291 |   return 0; | 
 | 6292 | } | 
 | 6293 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6294 | for ac_lib in '' dir; do | 
 | 6295 |   if test -z "$ac_lib"; then | 
 | 6296 |     ac_res="none required" | 
 | 6297 |   else | 
 | 6298 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6299 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6300 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6301 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6302 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6303 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6304 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6305 |     conftest$ac_exeext | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6306 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6307 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6308 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6309 | done | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6310 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6311 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6312 | else | 
 | 6313 |   ac_cv_search_opendir=no | 
 | 6314 | fi | 
 | 6315 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | LIBS=$ac_func_search_save_LIBS | 
 | 6317 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6319 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6320 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6321 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6322 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6323 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6324 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6325 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6326 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6327 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6328 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6329 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6330 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6331 | else | 
 | 6332 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6334 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6335 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6336 | /* Override any GCC internal prototype to avoid an error. | 
 | 6337 |    Use char because int might match the return type of a GCC | 
 | 6338 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | #ifdef __cplusplus | 
 | 6340 | extern "C" | 
 | 6341 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6342 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6343 | int | 
 | 6344 | main () | 
 | 6345 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6346 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6347 |   ; | 
 | 6348 |   return 0; | 
 | 6349 | } | 
 | 6350 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6351 | for ac_lib in '' x; do | 
 | 6352 |   if test -z "$ac_lib"; then | 
 | 6353 |     ac_res="none required" | 
 | 6354 |   else | 
 | 6355 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6356 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6357 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6358 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6359 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6360 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6361 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6362 |     conftest$ac_exeext | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6363 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6364 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6365 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6366 | done | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6367 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6368 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6369 | else | 
 | 6370 |   ac_cv_search_opendir=no | 
 | 6371 | fi | 
 | 6372 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | LIBS=$ac_func_search_save_LIBS | 
 | 6374 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6376 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6377 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6378 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6379 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6380 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6381 | fi | 
 | 6382 |  | 
 | 6383 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6384 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6386 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6387 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6388 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6389 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6390 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6391 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6392 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6393 | int | 
 | 6394 | main () | 
 | 6395 | { | 
 | 6396 | return makedev(0, 0); | 
 | 6397 |   ; | 
 | 6398 |   return 0; | 
 | 6399 | } | 
 | 6400 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6401 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6402 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6403 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6404 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6405 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6406 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6407 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6408 |  | 
 | 6409 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6411 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6412 |  | 
 | 6413 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6414 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6415 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6417 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6418 |  | 
 | 6419 | fi | 
 | 6420 |  | 
 | 6421 |  | 
 | 6422 |  | 
 | 6423 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6424 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6425 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6426 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6427 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6428 |  | 
 | 6429 | fi | 
 | 6430 |  | 
 | 6431 |  | 
 | 6432 |   fi | 
 | 6433 | fi | 
 | 6434 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6435 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6436 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6437 | for ac_header in term.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6438 | do : | 
 | 6439 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
| Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6440 | #ifdef HAVE_CURSES_H | 
 | 6441 | #include <curses.h> | 
 | 6442 | #endif | 
 | 6443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6444 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6445 | if test "x$ac_cv_header_term_h" = xyes; then : | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6446 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6447 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6448 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6449 |  | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6450 | fi | 
 | 6451 |  | 
 | 6452 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6453 |  | 
 | 6454 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6455 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6456 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6457 | do : | 
 | 6458 |   ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6459 | #ifdef HAVE_ASM_TYPES_H | 
 | 6460 | #include <asm/types.h> | 
 | 6461 | #endif | 
 | 6462 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6463 | #include <sys/socket.h> | 
 | 6464 | #endif | 
 | 6465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6466 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6467 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6468 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6469 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6470 | _ACEOF | 
 | 6471 |  | 
 | 6472 | fi | 
 | 6473 |  | 
 | 6474 | done | 
 | 6475 |  | 
 | 6476 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6477 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6478 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 6480 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 6481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6482 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6483 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6484 |  | 
 | 6485 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6487 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6488 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6489 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6490 |  | 
 | 6491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6492 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6493 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6494 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6495 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6496 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6497 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 6499 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6500 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6501 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 6503 | $as_echo_n "checking for makedev... " >&6; } | 
 | 6504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6505 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6506 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6507 | #if defined(MAJOR_IN_MKDEV) | 
 | 6508 | #include <sys/mkdev.h> | 
 | 6509 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 6510 | #include <sys/sysmacros.h> | 
 | 6511 | #else | 
 | 6512 | #include <sys/types.h> | 
 | 6513 | #endif | 
 | 6514 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6515 | int | 
 | 6516 | main () | 
 | 6517 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6518 |  | 
 | 6519 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6520 |   ; | 
 | 6521 |   return 0; | 
 | 6522 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6523 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6524 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6525 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6526 |   ac_cv_has_makedev=yes | 
 | 6527 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6528 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6529 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6530 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6531 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6532 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 6533 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6534 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6535 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6536 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6537 | #define _OSF_SOURCE 1 | 
 | 6538 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6539 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6540 | int | 
 | 6541 | main () | 
 | 6542 | { | 
 | 6543 |  makedev(0, 0) | 
 | 6544 |   ; | 
 | 6545 |   return 0; | 
 | 6546 | } | 
 | 6547 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6548 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6549 |   ac_cv_has_makedev=yes | 
 | 6550 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6551 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6552 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6553 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6554 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6555 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6556 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6557 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6558 |  | 
 | 6559 |     fi | 
 | 6560 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 6562 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6563 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6564 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6565 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6566 |  | 
 | 6567 | fi | 
 | 6568 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6569 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 6570 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 6571 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 6572 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 6573 | # structures (such as rlimit64) without declaring them. As a | 
 | 6574 | # work-around, disable LFS on such configurations | 
 | 6575 |  | 
 | 6576 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 6578 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 6579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6580 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6581 |  | 
 | 6582 | #define _LARGEFILE_SOURCE 1 | 
 | 6583 | #define _FILE_OFFSET_BITS 64 | 
 | 6584 | #include <sys/resource.h> | 
 | 6585 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6586 | int | 
 | 6587 | main () | 
 | 6588 | { | 
 | 6589 | struct rlimit foo; | 
 | 6590 |   ; | 
 | 6591 |   return 0; | 
 | 6592 | } | 
 | 6593 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6594 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6595 |   sol_lfs_bug=no | 
 | 6596 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6597 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6598 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 6601 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6602 | if test "$sol_lfs_bug" = "yes"; then | 
 | 6603 |   use_lfs=no | 
 | 6604 | fi | 
 | 6605 |  | 
 | 6606 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6607 | # Two defines needed to enable largefile support on various platforms | 
 | 6608 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6609 | case $ac_sys_system/$ac_sys_release in | 
 | 6610 | AIX*) | 
 | 6611 |  | 
 | 6612 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 6613 |  | 
 | 6614 |     ;; | 
 | 6615 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6617 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 |  | 
 | 6619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6620 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6621 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6622 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6623 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6624 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 6625 | cat >> confdefs.h <<\EOF | 
 | 6626 | #if defined(SCO_DS) | 
 | 6627 | #undef _OFF_T | 
 | 6628 | #endif | 
 | 6629 | EOF | 
 | 6630 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6631 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6632 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6633 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6634 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6635 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6636 |  | 
 | 6637 | cat >>confdefs.h <<_ACEOF | 
 | 6638 | #define mode_t int | 
 | 6639 | _ACEOF | 
 | 6640 |  | 
 | 6641 | fi | 
 | 6642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6643 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6644 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6645 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6646 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6647 |  | 
 | 6648 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6649 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6650 | _ACEOF | 
 | 6651 |  | 
 | 6652 | fi | 
 | 6653 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6654 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6655 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6656 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6657 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6658 |  | 
 | 6659 | cat >>confdefs.h <<_ACEOF | 
 | 6660 | #define pid_t int | 
 | 6661 | _ACEOF | 
 | 6662 |  | 
 | 6663 | fi | 
 | 6664 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6665 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6667 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6669 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6670 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6671 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6672 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6673 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6674 |  | 
 | 6675 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6676 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | _ACEOF | 
 | 6678 |  | 
 | 6679 | fi | 
 | 6680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 6682 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6683 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6684 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6686 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6687 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6688 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6689 |  | 
 | 6690 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6692 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6693 |   ac_cv_type_uid_t=yes | 
 | 6694 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6695 |   ac_cv_type_uid_t=no | 
 | 6696 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6697 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6698 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6699 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 6701 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6702 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6703 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6704 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 |  | 
 | 6706 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6707 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6708 |  | 
 | 6709 | fi | 
 | 6710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6711 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 6712 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6713 |   no|yes) ;; #( | 
 | 6714 |   *) | 
 | 6715 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6716 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6717 |  | 
 | 6718 |  | 
 | 6719 | cat >>confdefs.h <<_ACEOF | 
 | 6720 | #define uint32_t $ac_cv_c_uint32_t | 
 | 6721 | _ACEOF | 
 | 6722 | ;; | 
 | 6723 |   esac | 
 | 6724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6725 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 6726 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6727 |   no|yes) ;; #( | 
 | 6728 |   *) | 
 | 6729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6730 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6731 |  | 
 | 6732 |  | 
 | 6733 | cat >>confdefs.h <<_ACEOF | 
 | 6734 | #define uint64_t $ac_cv_c_uint64_t | 
 | 6735 | _ACEOF | 
 | 6736 | ;; | 
 | 6737 |   esac | 
 | 6738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6739 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 6740 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6741 |   no|yes) ;; #( | 
 | 6742 |   *) | 
 | 6743 |  | 
 | 6744 | cat >>confdefs.h <<_ACEOF | 
 | 6745 | #define int32_t $ac_cv_c_int32_t | 
 | 6746 | _ACEOF | 
 | 6747 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6748 | esac | 
 | 6749 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6750 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 6751 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6752 |   no|yes) ;; #( | 
 | 6753 |   *) | 
 | 6754 |  | 
 | 6755 | cat >>confdefs.h <<_ACEOF | 
 | 6756 | #define int64_t $ac_cv_c_int64_t | 
 | 6757 | _ACEOF | 
 | 6758 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6759 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6761 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6762 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6764 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6765 |  | 
 | 6766 | fi | 
 | 6767 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6768 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6769 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6770 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6771 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6772 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6773 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6774 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 6776 | $as_echo_n "checking size of int... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6777 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6778 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6779 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6780 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6783 |   if test "$ac_cv_type_int" = yes; then | 
 | 6784 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6785 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6786 | as_fn_error 77 "cannot compute sizeof (int) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6787 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6788 |    else | 
 | 6789 |      ac_cv_sizeof_int=0 | 
 | 6790 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6792 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 6795 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6796 |  | 
 | 6797 |  | 
 | 6798 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6800 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6802 |  | 
 | 6803 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6804 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6805 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6806 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6807 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 6809 | $as_echo_n "checking size of long... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6810 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6811 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6813 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6816 |   if test "$ac_cv_type_long" = yes; then | 
 | 6817 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6819 | as_fn_error 77 "cannot compute sizeof (long) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6820 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6821 |    else | 
 | 6822 |      ac_cv_sizeof_long=0 | 
 | 6823 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6825 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 6828 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6829 |  | 
 | 6830 |  | 
 | 6831 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6832 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6833 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6835 |  | 
 | 6836 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6837 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6838 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6839 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6840 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 6842 | $as_echo_n "checking size of void *... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6843 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6844 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6845 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6846 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6848 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6849 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 6850 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6852 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6853 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6854 |    else | 
 | 6855 |      ac_cv_sizeof_void_p=0 | 
 | 6856 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6858 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6859 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 6861 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6862 |  | 
 | 6863 |  | 
 | 6864 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6865 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6866 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6868 |  | 
 | 6869 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6870 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6871 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6872 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6873 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 6875 | $as_echo_n "checking size of short... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6876 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6877 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6879 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6880 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6882 |   if test "$ac_cv_type_short" = yes; then | 
 | 6883 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6885 | as_fn_error 77 "cannot compute sizeof (short) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6886 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6887 |    else | 
 | 6888 |      ac_cv_sizeof_short=0 | 
 | 6889 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6891 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 6894 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6895 |  | 
 | 6896 |  | 
 | 6897 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6898 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6899 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6901 |  | 
 | 6902 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6903 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6906 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 6908 | $as_echo_n "checking size of float... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6909 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6910 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6912 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6915 |   if test "$ac_cv_type_float" = yes; then | 
 | 6916 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6918 | as_fn_error 77 "cannot compute sizeof (float) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6919 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6920 |    else | 
 | 6921 |      ac_cv_sizeof_float=0 | 
 | 6922 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6924 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 6927 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6928 |  | 
 | 6929 |  | 
 | 6930 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6932 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6933 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6934 |  | 
 | 6935 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6936 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6937 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6938 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6939 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 6941 | $as_echo_n "checking size of double... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6942 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6943 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6945 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6947 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6948 |   if test "$ac_cv_type_double" = yes; then | 
 | 6949 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6951 | as_fn_error 77 "cannot compute sizeof (double) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6952 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6953 |    else | 
 | 6954 |      ac_cv_sizeof_double=0 | 
 | 6955 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6957 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 6960 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6961 |  | 
 | 6962 |  | 
 | 6963 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6965 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6967 |  | 
 | 6968 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6969 | # The cast to long int works around a bug in the HP C Compiler | 
 | 6970 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 6971 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 6972 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 6974 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6975 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6976 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6978 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6980 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6981 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 6982 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 6983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6984 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6985 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6986 |    else | 
 | 6987 |      ac_cv_sizeof_fpos_t=0 | 
 | 6988 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6990 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 6993 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6994 |  | 
 | 6995 |  | 
 | 6996 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6997 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6998 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7000 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7001 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7002 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7003 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7004 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7005 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7007 | $as_echo_n "checking size of size_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7008 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7009 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7010 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7011 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7012 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7013 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7014 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7015 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7016 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7017 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7018 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7019 |    else | 
 | 7020 |      ac_cv_sizeof_size_t=0 | 
 | 7021 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7022 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7023 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7024 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7026 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7027 |  | 
 | 7028 |  | 
 | 7029 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7030 | cat >>confdefs.h <<_ACEOF | 
 | 7031 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7032 | _ACEOF | 
 | 7033 |  | 
 | 7034 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7035 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7036 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7037 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7038 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7040 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7041 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7042 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7043 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7044 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7045 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7046 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7047 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7048 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7050 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7051 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7052 |    else | 
 | 7053 |      ac_cv_sizeof_pid_t=0 | 
 | 7054 |    fi | 
 | 7055 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7056 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7059 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7060 |  | 
 | 7061 |  | 
 | 7062 |  | 
 | 7063 | cat >>confdefs.h <<_ACEOF | 
 | 7064 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7065 | _ACEOF | 
 | 7066 |  | 
 | 7067 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7070 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7071 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7073 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7074 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7075 | int | 
 | 7076 | main () | 
 | 7077 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7078 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7079 |   ; | 
 | 7080 |   return 0; | 
 | 7081 | } | 
 | 7082 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7083 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7084 |  | 
 | 7085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7086 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7087 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7088 |   have_long_long=yes | 
 | 7089 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7090 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7093 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7094 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7095 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7096 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7097 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7098 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7100 | $as_echo_n "checking size of long long... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7101 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7102 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7103 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7104 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7105 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7107 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7108 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7109 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7110 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7111 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7112 |    else | 
 | 7113 |      ac_cv_sizeof_long_long=0 | 
 | 7114 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7116 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7119 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7120 |  | 
 | 7121 |  | 
 | 7122 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7124 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7125 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7126 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7127 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7128 | fi | 
 | 7129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7131 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7132 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7134 | /* end confdefs.h.  */ | 
 | 7135 |  | 
 | 7136 | int | 
 | 7137 | main () | 
 | 7138 | { | 
 | 7139 | long double x; x = (long double)0; | 
 | 7140 |   ; | 
 | 7141 |   return 0; | 
 | 7142 | } | 
 | 7143 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7144 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7145 |  | 
 | 7146 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7147 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7148 |  | 
 | 7149 |   have_long_double=yes | 
 | 7150 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7151 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7154 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7155 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7156 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7157 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7158 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7159 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7161 | $as_echo_n "checking size of long double... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7162 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7163 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7164 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7165 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7166 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7168 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7169 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7170 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7171 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7172 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7173 |    else | 
 | 7174 |      ac_cv_sizeof_long_double=0 | 
 | 7175 |    fi | 
 | 7176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7177 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7178 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7180 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7181 |  | 
 | 7182 |  | 
 | 7183 |  | 
 | 7184 | cat >>confdefs.h <<_ACEOF | 
 | 7185 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7186 | _ACEOF | 
 | 7187 |  | 
 | 7188 |  | 
 | 7189 | fi | 
 | 7190 |  | 
 | 7191 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7193 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7194 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7196 | /* end confdefs.h.  */ | 
 | 7197 |  | 
 | 7198 | int | 
 | 7199 | main () | 
 | 7200 | { | 
 | 7201 | _Bool x; x = (_Bool)0; | 
 | 7202 |   ; | 
 | 7203 |   return 0; | 
 | 7204 | } | 
 | 7205 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7206 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7207 |  | 
 | 7208 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7209 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7210 |  | 
 | 7211 |   have_c99_bool=yes | 
 | 7212 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7213 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7216 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7217 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7218 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7219 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7220 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7221 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7223 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7224 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7225 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7227 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7228 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7229 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7230 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7231 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7233 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7234 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7235 |    else | 
 | 7236 |      ac_cv_sizeof__Bool=0 | 
 | 7237 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7238 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7239 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7240 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7242 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7243 |  | 
 | 7244 |  | 
 | 7245 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7246 | cat >>confdefs.h <<_ACEOF | 
 | 7247 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7248 | _ACEOF | 
 | 7249 |  | 
 | 7250 |  | 
 | 7251 | fi | 
 | 7252 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7253 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7254 |         #include <stdint.h> | 
 | 7255 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7256 |         #ifdef HAVE_INTTYPES_H | 
 | 7257 |         #include <inttypes.h> | 
 | 7258 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7259 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7260 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7261 |  | 
 | 7262 | cat >>confdefs.h <<_ACEOF | 
 | 7263 | #define HAVE_UINTPTR_T 1 | 
 | 7264 | _ACEOF | 
 | 7265 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7266 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7269 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7271 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7272 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7273 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7274 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7275 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7277 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7278 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7279 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7281 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7282 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7283 |    else | 
 | 7284 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7285 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7286 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7287 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7288 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7290 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7291 |  | 
 | 7292 |  | 
 | 7293 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7295 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7297 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7298 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7299 | fi | 
 | 7300 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7301 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7302 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7303 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7304 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7305 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7307 | $as_echo_n "checking size of off_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7308 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7309 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7310 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7311 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7312 | #ifdef HAVE_SYS_TYPES_H | 
 | 7313 | #include <sys/types.h> | 
 | 7314 | #endif | 
 | 7315 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7316 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7317 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7318 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7319 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7320 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7322 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7323 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7324 |    else | 
 | 7325 |      ac_cv_sizeof_off_t=0 | 
 | 7326 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7328 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7329 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7331 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7332 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7333 |  | 
 | 7334 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7336 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7338 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7339 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7340 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7342 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7343 | if test "$have_long_long" = yes | 
 | 7344 | then | 
 | 7345 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7346 | 	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7348 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7350 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7351 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7352 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7353 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7354 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7355 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7356 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7357 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7358 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7359 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7360 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7361 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7362 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7363 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7364 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7366 | $as_echo_n "checking size of time_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7367 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7368 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7370 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7371 | #ifdef HAVE_SYS_TYPES_H | 
 | 7372 | #include <sys/types.h> | 
 | 7373 | #endif | 
 | 7374 | #ifdef HAVE_TIME_H | 
 | 7375 | #include <time.h> | 
 | 7376 | #endif | 
 | 7377 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7378 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7379 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7381 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7382 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7384 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7385 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7386 |    else | 
 | 7387 |      ac_cv_sizeof_time_t=0 | 
 | 7388 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7389 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7390 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7391 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7393 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7394 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7395 |  | 
 | 7396 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7397 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7398 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7399 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7400 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7401 |  | 
 | 7402 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7403 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7404 | ac_save_cc="$CC" | 
 | 7405 | if test "$ac_cv_kpthread" = "yes" | 
 | 7406 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7407 | elif test "$ac_cv_kthread" = "yes" | 
 | 7408 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7409 | elif test "$ac_cv_pthread" = "yes" | 
 | 7410 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7411 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7414 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7415 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7417 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7418 |  | 
 | 7419 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7420 | int | 
 | 7421 | main () | 
 | 7422 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7423 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7424 |   ; | 
 | 7425 |   return 0; | 
 | 7426 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7427 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7428 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7429 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7430 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7431 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 7434 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7435 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7436 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7437 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7438 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7439 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 7441 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7442 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7443 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7444 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7445 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7446 | #ifdef HAVE_PTHREAD_H | 
 | 7447 | #include <pthread.h> | 
 | 7448 | #endif | 
 | 7449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7450 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7451 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7452 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7453 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 7454 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7455 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7456 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7457 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7458 |    else | 
 | 7459 |      ac_cv_sizeof_pthread_t=0 | 
 | 7460 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7461 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7462 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7463 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 7465 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7466 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7467 |  | 
 | 7468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7470 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7472 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7473 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7474 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7475 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7476 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7477 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7478 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7479 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7480 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 7481 |     ;; | 
 | 7482 |   Darwin/*) | 
 | 7483 |     OTHER_LIBTOOL_OPT="" | 
 | 7484 |     ;; | 
 | 7485 | esac | 
 | 7486 |  | 
 | 7487 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7488 | ARCH_RUN_32BIT="" | 
 | 7489 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7490 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7491 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7492 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 7493 |     if test "${enable_universalsdk}"; then | 
 | 7494 | 	    : | 
 | 7495 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7496 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7497 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7498 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7499 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7500 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7501 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7502 |     if test ${gcc_version} '<' 4.0 | 
 | 7503 |         then | 
 | 7504 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 7505 |         else | 
 | 7506 |             LIBTOOL_CRUFT="" | 
 | 7507 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7508 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7509 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7510 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7511 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7512 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7513 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7514 |     #include <unistd.h> | 
 | 7515 |     int main(int argc, char*argv[]) | 
 | 7516 |     { | 
 | 7517 |       if (sizeof(long) == 4) { | 
 | 7518 |     	  return 0; | 
 | 7519 |       } else { | 
 | 7520 |       	  return 1; | 
 | 7521 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7522 |     } | 
 | 7523 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7524 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7525 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7526 |   ac_osx_32bit=yes | 
 | 7527 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7528 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7529 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7531 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7532 | fi | 
 | 7533 |  | 
 | 7534 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7535 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7536 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7537 |     	i386) | 
 | 7538 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 7539 |     		;; | 
 | 7540 |     	ppc) | 
 | 7541 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 7542 |     		;; | 
 | 7543 |     	*) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7544 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7545 |     		;; | 
 | 7546 |     	esac | 
 | 7547 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7548 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7549 |     	i386) | 
 | 7550 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 7551 |     		;; | 
 | 7552 |     	ppc) | 
 | 7553 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 7554 |     		;; | 
 | 7555 |     	*) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7556 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7557 |     		;; | 
 | 7558 |     	esac | 
 | 7559 |  | 
 | 7560 | 	#ARCH_RUN_32BIT="true" | 
 | 7561 |     fi | 
 | 7562 |  | 
 | 7563 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7564 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7565 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7566 | esac | 
 | 7567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 7569 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7570 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7571 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7572 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7574 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7576 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7578 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7579 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7580 | 	if test $enable_shared = "yes" | 
 | 7581 | 	then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7582 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7583 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7584 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7585 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7586 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7587 | fi | 
 | 7588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 7590 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7591 | case $ac_sys_system/$ac_sys_release in | 
 | 7592 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7594 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7596 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 7597 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7598 |   	;; | 
 | 7599 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7600 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7601 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7602 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7603 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7604 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7605 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7606 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7607 |  | 
 | 7608 |  | 
 | 7609 |  | 
 | 7610 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7611 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7612 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7613 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7614 | cat >>confdefs.h <<_ACEOF | 
 | 7615 | #define SHLIB_EXT "$SO" | 
 | 7616 | _ACEOF | 
 | 7617 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7618 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7619 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7620 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 7621 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 7623 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7624 | if test -z "$LDSHARED" | 
 | 7625 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7626 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7627 | 	AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7628 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7629 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7630 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7631 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7632 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7634 | 		if test "$GCC" = "yes" ; then | 
 | 7635 | 			LDSHARED='$(CC) -shared' | 
 | 7636 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7637 | 		else | 
 | 7638 | 			LDSHARED='$(CC) -G' | 
 | 7639 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7640 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7641 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7642 | 		if test "$GCC" = "yes" ; then | 
 | 7643 | 			LDSHARED='$(CC) -shared' | 
 | 7644 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7645 | 		else | 
 | 7646 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7647 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7648 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7649 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7650 | 		LDSHARED='$(CC) -bundle' | 
 | 7651 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7652 | 		if test "$enable_framework" ; then | 
 | 7653 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7654 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7655 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7656 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7657 | 		else | 
 | 7658 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7659 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7660 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7661 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7662 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7663 | 		LDSHARED='$(CC) -bundle' | 
 | 7664 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7665 | 		if test "$enable_framework" ; then | 
 | 7666 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7667 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7668 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7669 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7670 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7671 | 			# No framework, use the Python app as bundle-loader | 
 | 7672 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7673 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7674 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7675 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7676 | 	Darwin/*) | 
 | 7677 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 7678 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7679 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7680 | 		if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7681 | 		then | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7682 | 			if test "${enable_universalsdk}"; then | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7683 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7684 | 			fi | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7685 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 7686 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7687 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7688 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7689 | 			LDSHARED='$(CC) -bundle' | 
 | 7690 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7691 | 			if test "$enable_framework" ; then | 
 | 7692 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7693 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 7694 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7695 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7696 | 			else | 
 | 7697 | 				# No framework, use the Python app as bundle-loader | 
 | 7698 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 7699 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7700 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7701 | 			fi | 
 | 7702 | 		fi | 
 | 7703 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7704 | 	Linux*|GNU*|QNX*) | 
 | 7705 | 		LDSHARED='$(CC) -shared' | 
 | 7706 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 7707 | 	BSD/OS*/4*) | 
 | 7708 | 		LDSHARED="gcc -shared" | 
 | 7709 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7710 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7711 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7712 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7713 | 			LDSHARED='$(CC) -shared' | 
 | 7714 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7715 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7716 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7717 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7718 | 	OpenBSD*) | 
 | 7719 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7720 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7721 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7722 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7723 | 		else | 
 | 7724 | 				case `uname -r` in | 
 | 7725 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 7726 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 7727 | 				   ;; | 
 | 7728 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7729 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 7730 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7731 | 				   ;; | 
 | 7732 | 				esac | 
 | 7733 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7734 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7735 | 		LDSHARED='$(CC) -shared' | 
 | 7736 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7737 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7738 | 		if test "$GCC" = "yes" ; then | 
 | 7739 | 			LDSHARED='$(CC) -shared' | 
 | 7740 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 7741 | 		else | 
 | 7742 | 			LDSHARED='$(CC) -G' | 
 | 7743 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7744 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7745 | 	SCO_SV*) | 
 | 7746 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 7747 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 7748 | 	CYGWIN*) | 
 | 7749 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 7750 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7751 | 	*)	LDSHARED="ld";; | 
 | 7752 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7753 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 7755 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7756 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7757 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7758 | # CCSHARED are the C *flags* used to create objects to go into a shared | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7759 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 7761 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7762 | if test -z "$CCSHARED" | 
 | 7763 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7764 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7765 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7766 | 		then CCSHARED="-fPIC"; | 
 | 7767 | 		elif test `uname -p` = sparc; | 
 | 7768 | 		then CCSHARED="-xcode=pic32"; | 
 | 7769 | 		else CCSHARED="-Kpic"; | 
 | 7770 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7771 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7772 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7773 | 		 else CCSHARED="+z"; | 
 | 7774 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7775 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7776 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7777 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7778 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7779 | 		if test "$GCC" = "yes" | 
 | 7780 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7781 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7782 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7783 | 	SCO_SV*) | 
 | 7784 | 		if test "$GCC" = "yes" | 
 | 7785 | 		then CCSHARED="-fPIC" | 
 | 7786 | 		else CCSHARED="-Kpic -belf" | 
 | 7787 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7788 | 	IRIX*/6*)  case $CC in | 
 | 7789 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7790 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7791 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7792 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7793 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 7795 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7796 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7797 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 7799 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7800 | if test -z "$LINKFORSHARED" | 
 | 7801 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7802 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7803 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7804 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7805 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 7806 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7807 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7808 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7809 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7811 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7812 | 		if test "$enable_framework" | 
 | 7813 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7814 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7815 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7816 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7817 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7818 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7819 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7820 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7821 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 7822 | 		then | 
 | 7823 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 7824 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7825 | 	SunOS/5*) case $CC in | 
 | 7826 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7827 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7828 | 		    then | 
 | 7829 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7830 | 		    fi;; | 
 | 7831 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7832 | 	CYGWIN*) | 
 | 7833 | 		if test $enable_shared = "no" | 
 | 7834 | 		then | 
 | 7835 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 7836 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7837 | 	QNX*) | 
 | 7838 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 7839 | 		# symbol table so that they can be found when a module | 
 | 7840 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 7841 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 7842 | 		# when running test_compile.py. | 
 | 7843 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7844 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7845 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 7847 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7848 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7849 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7850 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 7852 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7853 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 7854 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7855 | 	case $ac_sys_system in | 
 | 7856 | 	CYGWIN*) | 
 | 7857 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 7858 | 		# but not when building the interpreter DLL. | 
 | 7859 | 		CFLAGSFORSHARED='';; | 
 | 7860 | 	*) | 
 | 7861 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 7862 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7863 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 7865 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7866 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7867 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 7868 | # library (with --enable-shared). | 
 | 7869 | # For platforms on which shared libraries are not allowed to have unresolved | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7870 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 7871 | # if it is not required, since it creates a dependency of the shared library | 
 | 7872 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 7873 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 7874 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7875 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 7877 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7878 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7879 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7880 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7881 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 7883 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7884 |  | 
 | 7885 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7886 | # checks for libraries | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 7888 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7889 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7890 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7891 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7893 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7895 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7897 | /* Override any GCC internal prototype to avoid an error. | 
 | 7898 |    Use char because int might match the return type of a GCC | 
 | 7899 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | #ifdef __cplusplus | 
 | 7901 | extern "C" | 
 | 7902 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | int | 
 | 7905 | main () | 
 | 7906 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7907 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 |   ; | 
 | 7909 |   return 0; | 
 | 7910 | } | 
 | 7911 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7912 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7914 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7915 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7916 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7917 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7918 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7920 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 7922 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7923 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 |   cat >>confdefs.h <<_ACEOF | 
 | 7925 | #define HAVE_LIBDL 1 | 
 | 7926 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7927 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7928 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7929 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7930 | fi | 
 | 7931 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 7933 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7934 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7935 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7936 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7938 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7940 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7941 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7942 | /* Override any GCC internal prototype to avoid an error. | 
 | 7943 |    Use char because int might match the return type of a GCC | 
 | 7944 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | #ifdef __cplusplus | 
 | 7946 | extern "C" | 
 | 7947 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | int | 
 | 7950 | main () | 
 | 7951 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7952 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7953 |   ; | 
 | 7954 |   return 0; | 
 | 7955 | } | 
 | 7956 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7957 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7960 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7962 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7963 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7965 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 7967 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7968 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7969 |   cat >>confdefs.h <<_ACEOF | 
 | 7970 | #define HAVE_LIBDLD 1 | 
 | 7971 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7972 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7973 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7974 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7975 | fi | 
 | 7976 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7977 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7978 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7979 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7980 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 7981 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7982 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7983 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7984 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7985 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7987 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7989 | /* Override any GCC internal prototype to avoid an error. | 
 | 7990 |    Use char because int might match the return type of a GCC | 
 | 7991 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | #ifdef __cplusplus | 
 | 7993 | extern "C" | 
 | 7994 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | int | 
 | 7997 | main () | 
 | 7998 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7999 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 |   ; | 
 | 8001 |   return 0; | 
 | 8002 | } | 
 | 8003 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8004 | for ac_lib in '' pthread rt posix4; do | 
 | 8005 |   if test -z "$ac_lib"; then | 
 | 8006 |     ac_res="none required" | 
 | 8007 |   else | 
 | 8008 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8009 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8010 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8011 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8012 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8013 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8014 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8015 |     conftest$ac_exeext | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8016 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8017 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8018 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8019 | done | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8020 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8021 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8022 | else | 
 | 8023 |   ac_cv_search_sem_init=no | 
 | 8024 | fi | 
 | 8025 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8026 | LIBS=$ac_func_search_save_LIBS | 
 | 8027 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8029 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8030 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8031 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8032 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8033 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8034 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8035 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8036 | 						# posix4 on Solaris 2.6 | 
 | 8037 | 						# pthread (first!) on Linux | 
 | 8038 | fi | 
 | 8039 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8040 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8042 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8043 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8044 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8045 | else | 
 | 8046 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8047 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8049 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8050 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8051 | /* Override any GCC internal prototype to avoid an error. | 
 | 8052 |    Use char because int might match the return type of a GCC | 
 | 8053 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8054 | #ifdef __cplusplus | 
 | 8055 | extern "C" | 
 | 8056 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8057 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8058 | int | 
 | 8059 | main () | 
 | 8060 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8061 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8062 |   ; | 
 | 8063 |   return 0; | 
 | 8064 | } | 
 | 8065 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8066 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8067 |   ac_cv_lib_intl_textdomain=yes | 
 | 8068 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8069 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8070 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8071 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8072 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8073 | LIBS=$ac_check_lib_save_LIBS | 
 | 8074 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8076 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8077 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8078 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8079 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8080 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8081 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8082 | fi | 
 | 8083 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8084 |  | 
 | 8085 | # checks for system dependent C++ extensions support | 
 | 8086 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8087 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8088 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8089 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8090 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8091 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 8092 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | int | 
 | 8094 | main () | 
 | 8095 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8096 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8097 |   ; | 
 | 8098 |   return 0; | 
 | 8099 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8100 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8102 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8103 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8104 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8105 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8107 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8108 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8109 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8110 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8111 |  | 
 | 8112 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8113 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8114 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8115 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8116 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8117 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8118 | 	*) ;; | 
 | 8119 | esac | 
 | 8120 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8121 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8123 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8124 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8125 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8126 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8128 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8130 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8132 | /* Override any GCC internal prototype to avoid an error. | 
 | 8133 |    Use char because int might match the return type of a GCC | 
 | 8134 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | #ifdef __cplusplus | 
 | 8136 | extern "C" | 
 | 8137 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | int | 
 | 8140 | main () | 
 | 8141 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 |   ; | 
 | 8144 |   return 0; | 
 | 8145 | } | 
 | 8146 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8147 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8149 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8150 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8151 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8152 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8153 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8155 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8157 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8158 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8159 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8160 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8161 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8163 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8164 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8165 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8166 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8168 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8170 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8172 | /* Override any GCC internal prototype to avoid an error. | 
 | 8173 |    Use char because int might match the return type of a GCC | 
 | 8174 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8175 | #ifdef __cplusplus | 
 | 8176 | extern "C" | 
 | 8177 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | int | 
 | 8180 | main () | 
 | 8181 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8182 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 |   ; | 
 | 8184 |   return 0; | 
 | 8185 | } | 
 | 8186 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8187 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8190 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8191 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8192 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8193 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8197 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8198 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8199 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8200 | fi | 
 | 8201 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8204 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8206 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8207 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8208 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8210 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8211 | LIBS="$withval $LIBS" | 
 | 8212 |  | 
 | 8213 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8214 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8215 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8216 | fi | 
 | 8217 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8218 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8219 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8220 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8221 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8223 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8224 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8225 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8226 | else | 
 | 8227 |   case $PKG_CONFIG in | 
 | 8228 |   [\\/]* | ?:[\\/]*) | 
 | 8229 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8230 |   ;; | 
 | 8231 |   *) | 
 | 8232 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8233 | for as_dir in $PATH | 
 | 8234 | do | 
 | 8235 |   IFS=$as_save_IFS | 
 | 8236 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8237 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8238 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8239 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8240 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8241 |     break 2 | 
 | 8242 |   fi | 
 | 8243 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8245 | IFS=$as_save_IFS | 
 | 8246 |  | 
 | 8247 |   ;; | 
 | 8248 | esac | 
 | 8249 | fi | 
 | 8250 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8251 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8252 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8253 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8254 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8255 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8256 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8257 | fi | 
 | 8258 |  | 
 | 8259 |  | 
 | 8260 | fi | 
 | 8261 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8262 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8263 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8264 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8266 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8267 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8268 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8269 | else | 
 | 8270 |   case $ac_pt_PKG_CONFIG in | 
 | 8271 |   [\\/]* | ?:[\\/]*) | 
 | 8272 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8273 |   ;; | 
 | 8274 |   *) | 
 | 8275 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8276 | for as_dir in $PATH | 
 | 8277 | do | 
 | 8278 |   IFS=$as_save_IFS | 
 | 8279 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8280 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8281 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8282 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8283 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8284 |     break 2 | 
 | 8285 |   fi | 
 | 8286 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8287 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8288 | IFS=$as_save_IFS | 
 | 8289 |  | 
 | 8290 |   ;; | 
 | 8291 | esac | 
 | 8292 | fi | 
 | 8293 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8294 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8295 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8296 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8297 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8298 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8299 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8300 | fi | 
 | 8301 |  | 
 | 8302 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8303 |     PKG_CONFIG="" | 
 | 8304 |   else | 
 | 8305 |     case $cross_compiling:$ac_tool_warned in | 
 | 8306 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8309 | ac_tool_warned=yes ;; | 
 | 8310 | esac | 
 | 8311 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8312 |   fi | 
 | 8313 | else | 
 | 8314 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8315 | fi | 
 | 8316 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8317 |  | 
 | 8318 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 8320 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8321 |  | 
 | 8322 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8323 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8324 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8325 | else | 
 | 8326 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8327 | fi | 
 | 8328 |  | 
 | 8329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 8331 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8332 |  | 
 | 8333 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 8335 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8336 |  | 
 | 8337 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8338 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8339 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8340 | else | 
 | 8341 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8342 | fi | 
 | 8343 |  | 
 | 8344 |  | 
 | 8345 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8346 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 8347 | else | 
 | 8348 |     LIBFFI_INCLUDEDIR="" | 
 | 8349 | fi | 
 | 8350 |  | 
 | 8351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 8353 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8354 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8355 | # Check for support for loadable sqlite extensions | 
 | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 8357 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 8358 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 8359 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 8360 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 8361 | else | 
 | 8362 |   enable_loadable_sqlite_extensions="no" | 
 | 8363 | fi | 
 | 8364 |  | 
 | 8365 |  | 
 | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 8367 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 8368 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8369 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 8371 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8372 |  | 
 | 8373 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8375 |   withval=$with_dbmliborder; | 
 | 8376 | if test x$with_dbmliborder = xyes | 
 | 8377 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8378 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8379 | else | 
 | 8380 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 8381 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 8382 |     then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8383 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8384 |     fi | 
 | 8385 |   done | 
 | 8386 | fi | 
 | 8387 | fi | 
 | 8388 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 8390 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8391 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8392 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8393 |  | 
 | 8394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 8396 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8398 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8399 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8400 |   withval=$with_signal_module; | 
 | 8401 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8402 |  | 
 | 8403 |  | 
 | 8404 | if test -z "$with_signal_module" | 
 | 8405 | then with_signal_module="yes" | 
 | 8406 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 8408 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8409 |  | 
 | 8410 | if test "${with_signal_module}" = "yes"; then | 
 | 8411 | 	USE_SIGNAL_MODULE="" | 
 | 8412 | 	SIGNAL_OBJS="" | 
 | 8413 | else | 
 | 8414 | 	USE_SIGNAL_MODULE="#" | 
 | 8415 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 8416 | fi | 
 | 8417 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8418 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8419 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8420 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8421 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 8423 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8425 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8426 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8427 | if test "${with_dec_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8428 |   withval=$with_dec_threads; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8430 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8431 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8432 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8433 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8434 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8435 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8436 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8437 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8438 | fi | 
 | 8439 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 |  | 
 | 8441 | # Templates for things AC_DEFINEd more than once. | 
 | 8442 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8443 |  | 
 | 8444 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 |  | 
 | 8446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 8448 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8450 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8451 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8452 |   withval=$with_threads; | 
 | 8453 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8454 |  | 
 | 8455 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8456 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8458 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8460 |   withval=$with_thread; with_threads=$with_thread | 
 | 8461 | fi | 
 | 8462 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8463 |  | 
 | 8464 | if test -z "$with_threads" | 
 | 8465 | then with_threads="yes" | 
 | 8466 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 8468 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8469 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8470 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8471 | if test "$with_threads" = "no" | 
 | 8472 | then | 
 | 8473 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8474 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 8475 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8476 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8477 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8478 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8479 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8480 |  | 
 | 8481 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8483 | elif test "$ac_cv_kpthread" = "yes" | 
 | 8484 | then | 
 | 8485 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8486 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8487 |         CXX="$CXX -Kpthread" | 
 | 8488 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8489 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8490 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8491 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8492 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8493 | elif test "$ac_cv_kthread" = "yes" | 
 | 8494 | then | 
 | 8495 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8496 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8497 |         CXX="$CXX -Kthread" | 
 | 8498 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8499 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8500 |  | 
 | 8501 |     posix_threads=yes | 
 | 8502 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8503 | elif test "$ac_cv_pthread" = "yes" | 
 | 8504 | then | 
 | 8505 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8506 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 8507 |         CXX="$CXX -pthread" | 
 | 8508 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8509 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8510 |  | 
 | 8511 |     posix_threads=yes | 
 | 8512 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8513 | else | 
 | 8514 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 8515 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 8516 |     fi | 
 | 8517 |     if test ! -z "$withval" -a -d "$withval" | 
 | 8518 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 8519 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8520 |  | 
 | 8521 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8522 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 8523 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 8525 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 8526 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8527 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8528 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8529 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8530 | #ifdef _POSIX_THREADS | 
 | 8531 | yes | 
 | 8532 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 |  | 
 | 8534 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8536 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8537 |   unistd_defines_pthreads=yes | 
 | 8538 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8539 |   unistd_defines_pthreads=no | 
 | 8540 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8541 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8542 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8543 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 8544 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8545 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8549 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8550 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8551 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8552 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8555 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8556 |  | 
 | 8557 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8558 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8559 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8562 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8564 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8565 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8566 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8568 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8569 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8570 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8571 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8572 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8573 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 8574 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 8575 |     # So we really have to include pthread.h, and then link. | 
 | 8576 |     _libs=$LIBS | 
 | 8577 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8578 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 8579 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 8580 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8581 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8582 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8583 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8584 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | int | 
 | 8586 | main () | 
 | 8587 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8588 |  | 
 | 8589 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 |   ; | 
 | 8591 |   return 0; | 
 | 8592 | } | 
 | 8593 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8594 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8596 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8597 | $as_echo "yes" >&6; } | 
 | 8598 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8599 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8600 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8601 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8602 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8604 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8605 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8606 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8607 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8608 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8609 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8610 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8611 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8612 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8613 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 8614 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8615 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8616 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8617 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8619 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8621 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8622 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8623 | /* Override any GCC internal prototype to avoid an error. | 
 | 8624 |    Use char because int might match the return type of a GCC | 
 | 8625 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | #ifdef __cplusplus | 
 | 8627 | extern "C" | 
 | 8628 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | int | 
 | 8631 | main () | 
 | 8632 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8633 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 |   ; | 
 | 8635 |   return 0; | 
 | 8636 | } | 
 | 8637 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8638 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8640 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8641 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8642 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8643 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8644 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8646 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 8648 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8649 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8650 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8651 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8652 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8653 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8654 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8655 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8657 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 8658 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8659 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8660 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8661 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8663 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8665 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8667 | /* Override any GCC internal prototype to avoid an error. | 
 | 8668 |    Use char because int might match the return type of a GCC | 
 | 8669 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | #ifdef __cplusplus | 
 | 8671 | extern "C" | 
 | 8672 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | int | 
 | 8675 | main () | 
 | 8676 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8677 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 |   ; | 
 | 8679 |   return 0; | 
 | 8680 | } | 
 | 8681 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8682 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8684 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8685 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8686 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8687 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8688 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8690 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 8692 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8693 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8694 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8695 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8696 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8697 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8698 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8699 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8700 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8701 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 8702 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8703 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8704 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8705 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8707 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8709 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8711 | /* Override any GCC internal prototype to avoid an error. | 
 | 8712 |    Use char because int might match the return type of a GCC | 
 | 8713 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | #ifdef __cplusplus | 
 | 8715 | extern "C" | 
 | 8716 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | int | 
 | 8719 | main () | 
 | 8720 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8721 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 |   ; | 
 | 8723 |   return 0; | 
 | 8724 | } | 
 | 8725 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8726 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8728 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8730 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8732 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 8736 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8737 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8738 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8739 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8740 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8741 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8742 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8743 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8745 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 8746 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8747 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8748 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8749 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8751 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8753 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8755 | /* Override any GCC internal prototype to avoid an error. | 
 | 8756 |    Use char because int might match the return type of a GCC | 
 | 8757 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | #ifdef __cplusplus | 
 | 8759 | extern "C" | 
 | 8760 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | int | 
 | 8763 | main () | 
 | 8764 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8765 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 |   ; | 
 | 8767 |   return 0; | 
 | 8768 | } | 
 | 8769 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8770 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8772 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8773 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8774 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8775 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8776 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8778 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 8780 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8781 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8783 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8784 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8785 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8786 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8787 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8788 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8789 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8790 | fi | 
 | 8791 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8792 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8793 | fi | 
 | 8794 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8795 | fi | 
 | 8796 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8797 | fi | 
 | 8798 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8799 | fi | 
 | 8800 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8803 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8804 | fi | 
 | 8805 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 |  | 
 | 8807 | fi | 
 | 8808 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8809 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8811 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 8812 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8813 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8814 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8815 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8817 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8819 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8821 | /* Override any GCC internal prototype to avoid an error. | 
 | 8822 |    Use char because int might match the return type of a GCC | 
 | 8823 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | #ifdef __cplusplus | 
 | 8825 | extern "C" | 
 | 8826 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | int | 
 | 8829 | main () | 
 | 8830 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8831 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 |   ; | 
 | 8833 |   return 0; | 
 | 8834 | } | 
 | 8835 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8838 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8839 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8840 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8841 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8842 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8844 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 8846 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8847 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8848 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8849 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8850 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8851 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8852 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8853 | fi | 
 | 8854 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8855 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8856 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8857 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 8858 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8859 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8860 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8861 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8863 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8865 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8867 | /* Override any GCC internal prototype to avoid an error. | 
 | 8868 |    Use char because int might match the return type of a GCC | 
 | 8869 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | #ifdef __cplusplus | 
 | 8871 | extern "C" | 
 | 8872 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | int | 
 | 8875 | main () | 
 | 8876 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8877 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 |   ; | 
 | 8879 |   return 0; | 
 | 8880 | } | 
 | 8881 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8882 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8884 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8885 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8886 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8887 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8888 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 8892 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8893 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8894 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8895 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8896 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8897 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8898 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8899 | fi | 
 | 8900 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8901 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8902 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8903 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 8904 |     then | 
 | 8905 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 8906 |         # needs this '-threads' argument during linking. | 
 | 8907 |         case $ac_sys_system in | 
 | 8908 |         OSF1) LDLAST=-threads;; | 
 | 8909 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8910 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8911 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8912 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8913 | if test "$posix_threads" = "yes"; then | 
 | 8914 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8915 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8916 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8917 |  | 
 | 8918 |       fi | 
 | 8919 |  | 
 | 8920 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 8921 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8922 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8923 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8924 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8925 | 		       ;; | 
 | 8926 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8927 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8928 |  | 
 | 8929 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8930 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8932 |  | 
 | 8933 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8934 |       esac | 
 | 8935 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8936 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 8937 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8938 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8939 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8940 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8941 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8942 |   ac_cv_pthread_system_supported=no | 
 | 8943 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8944 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8945 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8946 | #include <pthread.h> | 
 | 8947 |       void *foo(void *parm) { | 
 | 8948 |         return NULL; | 
 | 8949 |       } | 
 | 8950 |       main() { | 
 | 8951 |         pthread_attr_t attr; | 
 | 8952 |         pthread_t id; | 
 | 8953 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 8954 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 8955 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 8956 |         exit(0); | 
 | 8957 |       } | 
 | 8958 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8959 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8960 |   ac_cv_pthread_system_supported=yes | 
 | 8961 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8962 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8963 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8965 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8966 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8967 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8968 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8969 | fi | 
 | 8970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8971 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 8972 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8973 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 8974 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8975 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8976 |  | 
 | 8977 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8978 |       for ac_func in pthread_sigmask | 
 | 8979 | do : | 
 | 8980 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8981 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8982 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8984 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8985 |  case $ac_sys_system in | 
 | 8986 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8987 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8988 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8989 |  | 
 | 8990 |             ;; | 
 | 8991 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8992 | fi | 
 | 8993 | done | 
 | 8994 |  | 
 | 8995 | fi | 
 | 8996 |  | 
 | 8997 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8998 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9001 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9002 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9003 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9004 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9005 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9006 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9007 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9008 |        ipv6=no | 
 | 9009 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9010 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9011 | $as_echo "yes" >&6; } | 
 | 9012 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9013 |  | 
 | 9014 |        ipv6=yes | 
 | 9015 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9017 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9019 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9021 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9022 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9023 |   ipv6=no | 
 | 9024 |  | 
 | 9025 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9027 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9028 |  /* AF_INET6 available check */ | 
 | 9029 | #include <sys/types.h> | 
 | 9030 | #include <sys/socket.h> | 
 | 9031 | main() | 
 | 9032 | { | 
 | 9033 |  if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
 | 9034 |    exit(1); | 
 | 9035 |  else | 
 | 9036 |    exit(0); | 
 | 9037 | } | 
 | 9038 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9040 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9041 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9042 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9043 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9044 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9045 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9046 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9048 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9049 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9050 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9051 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9052 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9053 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9054 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9055 | fi | 
 | 9056 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9057 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9058 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9059 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9060 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9061 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9062 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9063 |  | 
 | 9064 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9065 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | int | 
 | 9067 | main () | 
 | 9068 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9069 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9070 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 |   ; | 
 | 9072 |   return 0; | 
 | 9073 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9074 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9076 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9077 |  | 
 | 9078 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9079 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9080 | 	  ipv6=yes | 
 | 9081 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9082 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9083 |  | 
 | 9084 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9085 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9086 | 	  ipv6=no | 
 | 9087 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9088 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9090 | fi | 
 | 9091 |  | 
 | 9092 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9093 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9094 |  | 
 | 9095 | fi | 
 | 9096 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9097 | fi | 
 | 9098 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9099 |  | 
 | 9100 | ipv6type=unknown | 
 | 9101 | ipv6lib=none | 
 | 9102 | ipv6trylibc=no | 
 | 9103 |  | 
 | 9104 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9106 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9107 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9108 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9109 | 		case $i in | 
 | 9110 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9111 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9112 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9113 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9114 | #include <netinet/in.h> | 
 | 9115 | #ifdef IPV6_INRIA_VERSION | 
 | 9116 | yes | 
 | 9117 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9120 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9121 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9122 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9123 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9124 |  | 
 | 9125 | 			;; | 
 | 9126 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9127 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9128 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9129 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9130 | #include <netinet/in.h> | 
 | 9131 | #ifdef __KAME__ | 
 | 9132 | yes | 
 | 9133 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9136 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9137 |   ipv6type=$i; | 
 | 9138 | 				ipv6lib=inet6 | 
 | 9139 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9140 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9141 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9142 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9143 |  | 
 | 9144 | 			;; | 
 | 9145 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9146 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9147 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9148 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9149 | #include <features.h> | 
 | 9150 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 9151 | yes | 
 | 9152 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9155 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9156 |   ipv6type=$i; | 
 | 9157 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9158 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9159 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9160 |  | 
 | 9161 | 			;; | 
 | 9162 | 		linux-inet6) | 
 | 9163 | 						if test -d /usr/inet6; then | 
 | 9164 | 				ipv6type=$i | 
 | 9165 | 				ipv6lib=inet6 | 
 | 9166 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9167 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9168 | 			fi | 
 | 9169 | 			;; | 
 | 9170 | 		solaris) | 
 | 9171 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9172 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9173 | 				ipv6type=$i | 
 | 9174 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9175 |                           fi | 
 | 9176 |                         fi | 
 | 9177 | 			;; | 
 | 9178 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9179 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9181 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9182 | #include <sys/param.h> | 
 | 9183 | #ifdef _TOSHIBA_INET6 | 
 | 9184 | yes | 
 | 9185 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9188 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9189 |   ipv6type=$i; | 
 | 9190 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9191 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9192 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9193 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9194 |  | 
 | 9195 | 			;; | 
 | 9196 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9197 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9198 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9199 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9200 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 9201 | #ifdef __V6D__ | 
 | 9202 | yes | 
 | 9203 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9206 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9207 |   ipv6type=$i; | 
 | 9208 | 				ipv6lib=v6; | 
 | 9209 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9210 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9211 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9212 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9213 |  | 
 | 9214 | 			;; | 
 | 9215 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9216 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9217 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9218 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9219 | #include <sys/param.h> | 
 | 9220 | #ifdef _ZETA_MINAMI_INET6 | 
 | 9221 | yes | 
 | 9222 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9223 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9225 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9226 |   ipv6type=$i; | 
 | 9227 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9228 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9229 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9230 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9231 |  | 
 | 9232 | 			;; | 
 | 9233 | 		esac | 
 | 9234 | 		if test "$ipv6type" != "unknown"; then | 
 | 9235 | 			break | 
 | 9236 | 		fi | 
 | 9237 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9238 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 9239 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9240 | fi | 
 | 9241 |  | 
 | 9242 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 9243 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 9244 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 9245 | 		echo "using lib$ipv6lib" | 
 | 9246 | 	else | 
 | 9247 | 		if test $ipv6trylibc = "yes"; then | 
 | 9248 | 			echo "using libc" | 
 | 9249 | 		else | 
 | 9250 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 9251 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 9252 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 9253 | 			exit 1 | 
 | 9254 | 		fi | 
 | 9255 | 	fi | 
 | 9256 | fi | 
 | 9257 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 9259 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 9260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9261 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9262 |  | 
 | 9263 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9264 | int | 
 | 9265 | main () | 
 | 9266 | { | 
 | 9267 | FSIORefNum fRef = 0 | 
 | 9268 |   ; | 
 | 9269 |   return 0; | 
 | 9270 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9271 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9272 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9273 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9274 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9275 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9276 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9277 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9278 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9279 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9280 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9281 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9283 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9284 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9285 |  | 
 | 9286 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9288 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9289 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 9291 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9292 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9293 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9294 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9295 |   withval=$with_doc_strings; | 
 | 9296 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9297 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9298 |  | 
 | 9299 | if test -z "$with_doc_strings" | 
 | 9300 | then with_doc_strings="yes" | 
 | 9301 | fi | 
 | 9302 | if test "$with_doc_strings" != "no" | 
 | 9303 | then | 
 | 9304 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9305 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9306 |  | 
 | 9307 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 9309 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9310 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9311 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 9313 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9314 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9315 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9316 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9317 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9318 | if test "$withval" != no | 
 | 9319 | then | 
 | 9320 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9321 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9322 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9323 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9324 | $as_echo "yes" >&6; } | 
 | 9325 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9326 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9327 | fi | 
 | 9328 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9329 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9330 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9331 | fi | 
 | 9332 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9333 |  | 
 | 9334 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 9336 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9338 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9339 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9340 |   withval=$with_pymalloc; | 
 | 9341 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9342 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9343 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9344 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9345 | then | 
 | 9346 |     with_pymalloc="yes" | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9347 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9348 | fi | 
 | 9349 | if test "$with_pymalloc" != "no" | 
 | 9350 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9353 |  | 
 | 9354 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 9356 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9357 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9358 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 9360 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9361 |  | 
 | 9362 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9363 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9364 |   withval=$with_valgrind; | 
 | 9365 | else | 
 | 9366 |   with_valgrind=no | 
 | 9367 | fi | 
 | 9368 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 9370 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9371 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9372 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9373 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9374 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9375 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9376 |  | 
 | 9377 | else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9378 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9379 |  | 
 | 9380 | fi | 
 | 9381 |  | 
 | 9382 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9383 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9384 | fi | 
 | 9385 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9386 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9387 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9388 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9389 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9390 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 9391 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9392 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9393 | do : | 
 | 9394 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9395 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9396 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9397 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9399 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9400 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9401 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9402 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9403 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9404 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 9405 | # loading of modules. | 
 | 9406 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 9408 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9409 | if test -z "$DYNLOADFILE" | 
 | 9410 | then | 
 | 9411 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9412 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 9413 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9414 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9415 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 9416 | 	fi | 
 | 9417 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9418 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9419 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 9420 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9421 | 	*) | 
 | 9422 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 9423 | 	# out any dynamic loading | 
 | 9424 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 9425 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 9426 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 9427 | 	fi | 
 | 9428 | 	;; | 
 | 9429 | 	esac | 
 | 9430 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 9432 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9433 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 9434 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9436 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9437 |  | 
 | 9438 | fi | 
 | 9439 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9440 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 9441 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9442 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 9444 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9445 | if test -z "$MACHDEP_OBJS" | 
 | 9446 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9447 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 9448 | else | 
 | 9449 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9450 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 9452 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9453 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9454 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9455 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 9456 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9457 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9458 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | b7572f0 | 2009-12-02 20:46:48 +0000 | [diff] [blame] | 9459 |  initgroups kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9460 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9461 |  putenv readlink realpath \ | 
| Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9462 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 9463 |  setgid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9464 |  setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setuid setvbuf \ | 
| Jean-Paul Calderone | 6ed7ac4 | 2010-06-19 19:58:37 +0000 | [diff] [blame] | 9465 |  sigaction siginterrupt sigrelse snprintf strftime strlcpy \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9466 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9467 |  truncate uname unsetenv utimes waitpid wait3 wait4 \ | 
 | 9468 |  wcscoll wcsftime wcsxfrm _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9469 | do : | 
 | 9470 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9471 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9472 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9474 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9476 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9477 | fi | 
 | 9478 | done | 
 | 9479 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9480 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 9481 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 9482 |        #include <dirent.h> | 
 | 9483 | " | 
 | 9484 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 9485 |  | 
 | 9486 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 9487 |  | 
 | 9488 | fi | 
 | 9489 |  | 
 | 9490 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9491 | # For some functions, having a definition is not sufficient, since | 
 | 9492 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 9494 | $as_echo_n "checking for chroot... " >&6; } | 
 | 9495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9496 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9497 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9498 | int | 
 | 9499 | main () | 
 | 9500 | { | 
 | 9501 | void *x=chroot | 
 | 9502 |   ; | 
 | 9503 |   return 0; | 
 | 9504 | } | 
 | 9505 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9506 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9508 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9509 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9510 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9511 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9513 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9514 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9515 |  | 
 | 9516 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 9519 | $as_echo_n "checking for link... " >&6; } | 
 | 9520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9521 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9522 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9523 | int | 
 | 9524 | main () | 
 | 9525 | { | 
 | 9526 | void *x=link | 
 | 9527 |   ; | 
 | 9528 |   return 0; | 
 | 9529 | } | 
 | 9530 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9531 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9533 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9534 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9535 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9536 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9537 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9538 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9539 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9540 |  | 
 | 9541 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 9544 | $as_echo_n "checking for symlink... " >&6; } | 
 | 9545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9546 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9547 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9548 | int | 
 | 9549 | main () | 
 | 9550 | { | 
 | 9551 | void *x=symlink | 
 | 9552 |   ; | 
 | 9553 |   return 0; | 
 | 9554 | } | 
 | 9555 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9556 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9558 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9559 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9560 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9561 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9562 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9563 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9564 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9565 |  | 
 | 9566 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 9569 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 9570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9571 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9572 | #include <unistd.h> | 
 | 9573 | int | 
 | 9574 | main () | 
 | 9575 | { | 
 | 9576 | void *x=fchdir | 
 | 9577 |   ; | 
 | 9578 |   return 0; | 
 | 9579 | } | 
 | 9580 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9581 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9583 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9584 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9585 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9587 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9588 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9589 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9590 |  | 
 | 9591 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 9594 | $as_echo_n "checking for fsync... " >&6; } | 
 | 9595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9596 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9597 | #include <unistd.h> | 
 | 9598 | int | 
 | 9599 | main () | 
 | 9600 | { | 
 | 9601 | void *x=fsync | 
 | 9602 |   ; | 
 | 9603 |   return 0; | 
 | 9604 | } | 
 | 9605 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9606 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9607 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9608 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9609 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9610 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9611 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9612 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9613 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9614 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9615 |  | 
 | 9616 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 9619 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 9620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9621 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9622 | #include <unistd.h> | 
 | 9623 | int | 
 | 9624 | main () | 
 | 9625 | { | 
 | 9626 | void *x=fdatasync | 
 | 9627 |   ; | 
 | 9628 |   return 0; | 
 | 9629 | } | 
 | 9630 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9631 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9632 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9633 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9634 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9635 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9638 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9639 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9640 |  | 
 | 9641 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 9644 | $as_echo_n "checking for epoll... " >&6; } | 
 | 9645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9646 | /* end confdefs.h.  */ | 
 | 9647 | #include <sys/epoll.h> | 
 | 9648 | int | 
 | 9649 | main () | 
 | 9650 | { | 
 | 9651 | void *x=epoll_create | 
 | 9652 |   ; | 
 | 9653 |   return 0; | 
 | 9654 | } | 
 | 9655 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9656 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9657 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9658 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9659 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9660 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9661 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9662 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9663 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9664 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9665 |  | 
 | 9666 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 9669 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 9670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9671 | /* end confdefs.h.  */ | 
 | 9672 |  | 
 | 9673 | #include <sys/types.h> | 
 | 9674 | #include <sys/event.h> | 
 | 9675 |  | 
 | 9676 | int | 
 | 9677 | main () | 
 | 9678 | { | 
 | 9679 | int x=kqueue() | 
 | 9680 |   ; | 
 | 9681 |   return 0; | 
 | 9682 | } | 
 | 9683 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9684 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9686 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9687 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9688 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9689 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9690 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9691 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9692 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9693 |  | 
 | 9694 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9696 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 9697 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 9698 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 9699 | # address to avoid compiler warnings and potential miscompilations | 
 | 9700 | # because of the missing prototypes. | 
 | 9701 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 9703 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 9704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9706 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9707 | #include <stdio.h> | 
 | 9708 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9709 | int | 
 | 9710 | main () | 
 | 9711 | { | 
 | 9712 | void* p = ctermid_r | 
 | 9713 |   ; | 
 | 9714 |   return 0; | 
 | 9715 | } | 
 | 9716 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9717 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9718 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9719 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9720 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9721 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9722 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9723 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9724 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9725 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9726 |  | 
 | 9727 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9729 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 9731 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9732 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9733 |   $as_echo_n "(cached) " >&6 | 
 | 9734 | else | 
 | 9735 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9736 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9737 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9738 | int | 
 | 9739 | main () | 
 | 9740 | { | 
 | 9741 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9742 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9743 |   ; | 
 | 9744 |   return 0; | 
 | 9745 | } | 
 | 9746 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9747 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9748 |   ac_cv_flock_decl=yes | 
 | 9749 | else | 
 | 9750 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9751 |  | 
 | 9752 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9754 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9755 | fi | 
 | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 9757 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 9758 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 9759 |   for ac_func in flock | 
 | 9760 | do : | 
 | 9761 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9762 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9763 |   cat >>confdefs.h <<_ACEOF | 
 | 9764 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9765 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9766 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9767 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9768 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9769 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9770 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9771 |   $as_echo_n "(cached) " >&6 | 
 | 9772 | else | 
 | 9773 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9774 | LIBS="-lbsd  $LIBS" | 
 | 9775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9776 | /* end confdefs.h.  */ | 
 | 9777 |  | 
 | 9778 | /* Override any GCC internal prototype to avoid an error. | 
 | 9779 |    Use char because int might match the return type of a GCC | 
 | 9780 |    builtin and then its argument prototype would still apply.  */ | 
 | 9781 | #ifdef __cplusplus | 
 | 9782 | extern "C" | 
 | 9783 | #endif | 
 | 9784 | char flock (); | 
 | 9785 | int | 
 | 9786 | main () | 
 | 9787 | { | 
 | 9788 | return flock (); | 
 | 9789 |   ; | 
 | 9790 |   return 0; | 
 | 9791 | } | 
 | 9792 | _ACEOF | 
 | 9793 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9794 |   ac_cv_lib_bsd_flock=yes | 
 | 9795 | else | 
 | 9796 |   ac_cv_lib_bsd_flock=no | 
 | 9797 | fi | 
 | 9798 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9799 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9800 | LIBS=$ac_check_lib_save_LIBS | 
 | 9801 | fi | 
 | 9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 9803 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9804 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9805 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9806 |  | 
 | 9807 |  | 
 | 9808 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 9809 |  | 
 | 9810 |  | 
 | 9811 | fi | 
 | 9812 |  | 
 | 9813 |  | 
 | 9814 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9815 | done | 
 | 9816 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9817 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9818 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 9820 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 9821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9822 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9823 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9824 | #include <unistd.h> | 
 | 9825 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9826 | int | 
 | 9827 | main () | 
 | 9828 | { | 
 | 9829 | void* p = getpagesize | 
 | 9830 |   ; | 
 | 9831 |   return 0; | 
 | 9832 | } | 
 | 9833 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9834 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9835 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9836 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9837 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9838 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9839 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9840 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9841 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9842 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9843 |  | 
 | 9844 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9846 |  | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 9848 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 9849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9850 | /* end confdefs.h.  */ | 
 | 9851 |  | 
 | 9852 | #include <stdlib.h> | 
 | 9853 |  | 
 | 9854 | int | 
 | 9855 | main () | 
 | 9856 | { | 
 | 9857 | int res = unsetenv("DUMMY") | 
 | 9858 |   ; | 
 | 9859 |   return 0; | 
 | 9860 | } | 
 | 9861 | _ACEOF | 
 | 9862 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 9863 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9864 | $as_echo "no" >&6; } | 
 | 9865 | else | 
 | 9866 |  | 
 | 9867 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 9868 |  | 
 | 9869 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9870 | $as_echo "yes" >&6; } | 
 | 9871 |  | 
 | 9872 | fi | 
 | 9873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9874 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9875 | for ac_prog in true | 
 | 9876 | do | 
 | 9877 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 9878 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9880 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9881 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9882 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9883 | else | 
 | 9884 |   if test -n "$TRUE"; then | 
 | 9885 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 9886 | else | 
 | 9887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9888 | for as_dir in $PATH | 
 | 9889 | do | 
 | 9890 |   IFS=$as_save_IFS | 
 | 9891 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9892 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9893 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9894 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9896 |     break 2 | 
 | 9897 |   fi | 
 | 9898 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9900 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9901 |  | 
 | 9902 | fi | 
 | 9903 | fi | 
 | 9904 | TRUE=$ac_cv_prog_TRUE | 
 | 9905 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9906 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 9907 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9910 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9911 | fi | 
 | 9912 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9913 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9914 |   test -n "$TRUE" && break | 
 | 9915 | done | 
 | 9916 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 9917 |  | 
 | 9918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 9920 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9921 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9922 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9923 | else | 
 | 9924 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9925 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9927 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9928 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9929 | /* Override any GCC internal prototype to avoid an error. | 
 | 9930 |    Use char because int might match the return type of a GCC | 
 | 9931 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9932 | #ifdef __cplusplus | 
 | 9933 | extern "C" | 
 | 9934 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9935 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9936 | int | 
 | 9937 | main () | 
 | 9938 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9939 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9940 |   ; | 
 | 9941 |   return 0; | 
 | 9942 | } | 
 | 9943 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9944 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9945 |   ac_cv_lib_c_inet_aton=yes | 
 | 9946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9947 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9948 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9949 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9950 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9951 | LIBS=$ac_check_lib_save_LIBS | 
 | 9952 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 9954 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9955 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9956 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9957 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9958 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 9959 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9960 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9961 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9962 | else | 
 | 9963 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9964 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9966 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9967 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9968 | /* Override any GCC internal prototype to avoid an error. | 
 | 9969 |    Use char because int might match the return type of a GCC | 
 | 9970 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9971 | #ifdef __cplusplus | 
 | 9972 | extern "C" | 
 | 9973 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9974 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9975 | int | 
 | 9976 | main () | 
 | 9977 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9978 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9979 |   ; | 
 | 9980 |   return 0; | 
 | 9981 | } | 
 | 9982 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9983 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9984 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 9985 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9986 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9987 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9988 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9989 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9990 | LIBS=$ac_check_lib_save_LIBS | 
 | 9991 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 9993 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9994 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9995 |   cat >>confdefs.h <<_ACEOF | 
 | 9996 | #define HAVE_LIBRESOLV 1 | 
 | 9997 | _ACEOF | 
 | 9998 |  | 
 | 9999 |   LIBS="-lresolv $LIBS" | 
 | 10000 |  | 
 | 10001 | fi | 
 | 10002 |  | 
 | 10003 |  | 
 | 10004 | fi | 
 | 10005 |  | 
 | 10006 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10007 | # On Tru64, chflags seems to be present, but calling it will | 
 | 10008 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 10010 | $as_echo_n "checking for chflags... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10011 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10012 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10013 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10014 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10015 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10016 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10017 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10018 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10019 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10020 | #include <sys/stat.h> | 
 | 10021 | #include <unistd.h> | 
 | 10022 | int main(int argc, char*argv[]) | 
 | 10023 | { | 
 | 10024 |   if(chflags(argv[0], 0) != 0) | 
 | 10025 |     return 1; | 
 | 10026 |   return 0; | 
 | 10027 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10028 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10029 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10030 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10031 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10032 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10033 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10034 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10036 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 10037 | fi | 
 | 10038 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10039 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10040 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 10042 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10043 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10044 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10045 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10046 |   ac_cv_have_chflags="yes" | 
 | 10047 | else | 
 | 10048 |   ac_cv_have_chflags="no" | 
 | 10049 | fi | 
 | 10050 |  | 
 | 10051 | fi | 
 | 10052 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10053 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10054 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10055 |  | 
 | 10056 | fi | 
 | 10057 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 10059 | $as_echo_n "checking for lchflags... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10060 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10061 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10062 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10063 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10064 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10065 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10066 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10067 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10068 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10069 | #include <sys/stat.h> | 
 | 10070 | #include <unistd.h> | 
 | 10071 | int main(int argc, char*argv[]) | 
 | 10072 | { | 
 | 10073 |   if(lchflags(argv[0], 0) != 0) | 
 | 10074 |     return 1; | 
 | 10075 |   return 0; | 
 | 10076 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10077 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10078 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10079 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10080 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10082 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10083 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10085 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10086 | fi | 
 | 10087 |  | 
 | 10088 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10089 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10091 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10092 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10093 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10094 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10095 |   ac_cv_have_lchflags="yes" | 
 | 10096 | else | 
 | 10097 |   ac_cv_have_lchflags="no" | 
 | 10098 | fi | 
 | 10099 |  | 
 | 10100 | fi | 
 | 10101 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10103 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10104 |  | 
 | 10105 | fi | 
 | 10106 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10107 | case $ac_sys_system/$ac_sys_release in | 
 | 10108 | Darwin/*) | 
 | 10109 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10110 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10111 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10112 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10113 | 	;; | 
 | 10114 | esac | 
 | 10115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10117 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10118 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10119 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10120 | else | 
 | 10121 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10122 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10124 | /* end confdefs.h.  */ | 
 | 10125 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10126 | /* Override any GCC internal prototype to avoid an error. | 
 | 10127 |    Use char because int might match the return type of a GCC | 
 | 10128 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10129 | #ifdef __cplusplus | 
 | 10130 | extern "C" | 
 | 10131 | #endif | 
 | 10132 | char inflateCopy (); | 
 | 10133 | int | 
 | 10134 | main () | 
 | 10135 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10136 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10137 |   ; | 
 | 10138 |   return 0; | 
 | 10139 | } | 
 | 10140 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10141 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10142 |   ac_cv_lib_z_inflateCopy=yes | 
 | 10143 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10144 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10145 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10147 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10148 | LIBS=$ac_check_lib_save_LIBS | 
 | 10149 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 10151 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10152 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10153 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10154 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10155 |  | 
 | 10156 | fi | 
 | 10157 |  | 
 | 10158 |  | 
 | 10159 | case $ac_sys_system/$ac_sys_release in | 
 | 10160 | Darwin/*) | 
 | 10161 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 10162 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 10163 | 	;; | 
 | 10164 | esac | 
 | 10165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 10167 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 10168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10169 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10170 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10171 | #include <netdb.h> | 
 | 10172 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10173 | int | 
 | 10174 | main () | 
 | 10175 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10176 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10177 |   ; | 
 | 10178 |   return 0; | 
 | 10179 | } | 
 | 10180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10181 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10182 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10183 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10184 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10185 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10186 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10187 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10188 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10189 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10190 |  | 
 | 10191 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10193 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10194 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 10196 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 10197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10198 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10199 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10200 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10201 | #include <sys/socket.h> | 
 | 10202 | #include <netinet/in.h> | 
 | 10203 | #include <arpa/inet.h> | 
 | 10204 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10205 | int | 
 | 10206 | main () | 
 | 10207 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10208 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10209 |   ; | 
 | 10210 |   return 0; | 
 | 10211 | } | 
 | 10212 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10214 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10215 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10216 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10217 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10218 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10219 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10220 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10221 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10222 |  | 
 | 10223 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10224 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10225 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10226 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 10228 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 10229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10230 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10231 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10232 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10233 | #include <sys/socket.h> | 
 | 10234 | #include <netinet/in.h> | 
 | 10235 | #include <arpa/inet.h> | 
 | 10236 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10237 | int | 
 | 10238 | main () | 
 | 10239 | { | 
 | 10240 | void* p = inet_pton | 
 | 10241 |   ; | 
 | 10242 |   return 0; | 
 | 10243 | } | 
 | 10244 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10245 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10246 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10247 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10248 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10249 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10250 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10251 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10252 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10253 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10254 |  | 
 | 10255 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10257 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10258 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 10260 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 10261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10262 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10263 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10264 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10265 | #ifdef HAVE_GRP_H | 
 | 10266 | #include <grp.h> | 
 | 10267 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10268 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10269 | int | 
 | 10270 | main () | 
 | 10271 | { | 
 | 10272 | void* p = setgroups | 
 | 10273 |   ; | 
 | 10274 |   return 0; | 
 | 10275 | } | 
 | 10276 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10277 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10278 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10279 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10280 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10281 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10282 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10283 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10284 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10285 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10286 |  | 
 | 10287 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10289 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10290 | # check for openpty and forkpty | 
 | 10291 |  | 
 | 10292 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | do : | 
 | 10294 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10295 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10297 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10299 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10300 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10301 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 10302 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10303 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10307 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10309 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10311 | /* Override any GCC internal prototype to avoid an error. | 
 | 10312 |    Use char because int might match the return type of a GCC | 
 | 10313 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | #ifdef __cplusplus | 
 | 10315 | extern "C" | 
 | 10316 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | int | 
 | 10319 | main () | 
 | 10320 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10321 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 |   ; | 
 | 10323 |   return 0; | 
 | 10324 | } | 
 | 10325 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10326 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10328 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10329 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10330 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10332 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10334 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 10336 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10337 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10338 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10339 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10341 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 10342 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10343 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10345 | else | 
 | 10346 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10347 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10349 | /* end confdefs.h.  */ | 
 | 10350 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10351 | /* Override any GCC internal prototype to avoid an error. | 
 | 10352 |    Use char because int might match the return type of a GCC | 
 | 10353 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10354 | #ifdef __cplusplus | 
 | 10355 | extern "C" | 
 | 10356 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10357 | char openpty (); | 
 | 10358 | int | 
 | 10359 | main () | 
 | 10360 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10361 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10362 |   ; | 
 | 10363 |   return 0; | 
 | 10364 | } | 
 | 10365 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10366 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10367 |   ac_cv_lib_bsd_openpty=yes | 
 | 10368 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10369 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10370 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10372 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10373 | LIBS=$ac_check_lib_save_LIBS | 
 | 10374 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 10376 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10377 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10379 |  LIBS="$LIBS -lbsd" | 
 | 10380 | fi | 
 | 10381 |  | 
 | 10382 |  | 
 | 10383 | fi | 
 | 10384 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10385 |  | 
 | 10386 | fi | 
 | 10387 | done | 
 | 10388 |  | 
 | 10389 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10390 | do : | 
 | 10391 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10392 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10394 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10396 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10397 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10398 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 10399 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10400 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10402 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10404 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10406 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10408 | /* Override any GCC internal prototype to avoid an error. | 
 | 10409 |    Use char because int might match the return type of a GCC | 
 | 10410 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | #ifdef __cplusplus | 
 | 10412 | extern "C" | 
 | 10413 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | int | 
 | 10416 | main () | 
 | 10417 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10418 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10419 |   ; | 
 | 10420 |   return 0; | 
 | 10421 | } | 
 | 10422 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10423 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10425 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10426 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10427 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10429 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10430 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10431 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 10433 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10434 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10435 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10436 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10437 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10438 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 10439 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10440 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10441 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10442 | else | 
 | 10443 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10444 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10446 | /* end confdefs.h.  */ | 
 | 10447 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10448 | /* Override any GCC internal prototype to avoid an error. | 
 | 10449 |    Use char because int might match the return type of a GCC | 
 | 10450 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10451 | #ifdef __cplusplus | 
 | 10452 | extern "C" | 
 | 10453 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10454 | char forkpty (); | 
 | 10455 | int | 
 | 10456 | main () | 
 | 10457 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10458 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10459 |   ; | 
 | 10460 |   return 0; | 
 | 10461 | } | 
 | 10462 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10463 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10464 |   ac_cv_lib_bsd_forkpty=yes | 
 | 10465 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10466 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10467 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10468 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10469 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10470 | LIBS=$ac_check_lib_save_LIBS | 
 | 10471 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 10473 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10474 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10475 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10476 |  LIBS="$LIBS -lbsd" | 
 | 10477 | fi | 
 | 10478 |  | 
 | 10479 |  | 
 | 10480 | fi | 
 | 10481 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10482 |  | 
 | 10483 | fi | 
 | 10484 | done | 
 | 10485 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10486 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10487 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10488 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10489 | do : | 
 | 10490 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10491 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10492 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10493 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10494 | _ACEOF | 
 | 10495 |  | 
 | 10496 | fi | 
 | 10497 | done | 
 | 10498 |  | 
 | 10499 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10500 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10501 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10502 | do : | 
 | 10503 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10504 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10505 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10509 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10510 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10511 | done | 
 | 10512 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10513 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10514 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10515 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10516 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10517 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10518 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10519 |   case " $LIBOBJS " in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10520 |   *" dup2.$ac_objext "* ) ;; | 
 | 10521 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10522 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10523 | esac | 
 | 10524 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10525 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10526 |  | 
 | 10527 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10528 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10529 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 10530 |  | 
 | 10531 | else | 
 | 10532 |   case " $LIBOBJS " in | 
 | 10533 |   *" getcwd.$ac_objext "* ) ;; | 
 | 10534 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 10535 |  ;; | 
 | 10536 | esac | 
 | 10537 |  | 
 | 10538 | fi | 
 | 10539 |  | 
 | 10540 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10541 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10542 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 10543 |  | 
 | 10544 | else | 
 | 10545 |   case " $LIBOBJS " in | 
 | 10546 |   *" strdup.$ac_objext "* ) ;; | 
 | 10547 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 10548 |  ;; | 
 | 10549 | esac | 
 | 10550 |  | 
 | 10551 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10552 |  | 
 | 10553 |  | 
 | 10554 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | do : | 
 | 10556 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10557 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10559 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10561 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10562 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10563 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10564 | int | 
 | 10565 | main () | 
 | 10566 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10567 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10568 |   ; | 
 | 10569 |   return 0; | 
 | 10570 | } | 
 | 10571 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10572 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10573 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10574 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10575 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10576 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10578 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10579 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10580 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10581 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10582 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10583 | do : | 
 | 10584 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10585 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10586 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10588 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10589 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10590 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10591 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10592 | int | 
 | 10593 | main () | 
 | 10594 | { | 
 | 10595 | setpgrp(0,0); | 
 | 10596 |   ; | 
 | 10597 |   return 0; | 
 | 10598 | } | 
 | 10599 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10600 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10602 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10603 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10604 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10606 |  | 
 | 10607 | fi | 
 | 10608 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10609 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10610 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10611 | do : | 
 | 10612 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10613 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10615 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10617 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10618 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10619 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | int | 
 | 10621 | main () | 
 | 10622 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10623 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10624 |   ; | 
 | 10625 |   return 0; | 
 | 10626 | } | 
 | 10627 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10628 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10629 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10630 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10631 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10632 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10633 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10635 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10637 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10638 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10639 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10640 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 10643 | $as_echo_n "checking for major... " >&6; } | 
 | 10644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10645 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10646 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10647 | #if defined(MAJOR_IN_MKDEV) | 
 | 10648 | #include <sys/mkdev.h> | 
 | 10649 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 10650 | #include <sys/sysmacros.h> | 
 | 10651 | #else | 
 | 10652 | #include <sys/types.h> | 
 | 10653 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10654 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10655 | int | 
 | 10656 | main () | 
 | 10657 | { | 
 | 10658 |  | 
 | 10659 |   makedev(major(0),minor(0)); | 
 | 10660 |  | 
 | 10661 |   ; | 
 | 10662 |   return 0; | 
 | 10663 | } | 
 | 10664 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10665 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10666 |  | 
 | 10667 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10668 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10669 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10670 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10671 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10672 |  | 
 | 10673 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10674 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10675 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10676 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10677 |  | 
 | 10678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10679 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10680 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10681 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10682 | # On OSF/1 V5.1, getaddrinfo is available, but a define | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 10685 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 10686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10687 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10688 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10689 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10690 | #include <sys/socket.h> | 
 | 10691 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10692 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10693 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | int | 
 | 10695 | main () | 
 | 10696 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10697 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10698 |   ; | 
 | 10699 |   return 0; | 
 | 10700 | } | 
 | 10701 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10702 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10703 |   have_getaddrinfo=yes | 
 | 10704 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10705 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10706 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10707 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10708 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 10710 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10711 | if test $have_getaddrinfo = yes | 
 | 10712 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10713 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 10714 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10715 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10716 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10718 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10719 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10720 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10721 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10722 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10723 |  | 
 | 10724 | #include <sys/types.h> | 
 | 10725 | #include <netdb.h> | 
 | 10726 | #include <string.h> | 
 | 10727 | #include <sys/socket.h> | 
 | 10728 | #include <netinet/in.h> | 
 | 10729 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10730 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10731 | { | 
 | 10732 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 10733 |   struct addrinfo hints, *ai, *aitop; | 
 | 10734 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 10735 |  | 
 | 10736 |   for (passive = 0; passive <= 1; passive++) { | 
 | 10737 |     memset(&hints, 0, sizeof(hints)); | 
 | 10738 |     hints.ai_family = AF_UNSPEC; | 
 | 10739 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 10740 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10741 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10742 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 10743 |       (void)gai_strerror(gaierr); | 
 | 10744 |       goto bad; | 
 | 10745 |     } | 
 | 10746 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 10747 |       if (ai->ai_addr == NULL || | 
 | 10748 |           ai->ai_addrlen == 0 || | 
 | 10749 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 10750 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 10751 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 10752 |         goto bad; | 
 | 10753 |       } | 
 | 10754 |       switch (ai->ai_family) { | 
 | 10755 |       case AF_INET: | 
 | 10756 |         if (strcmp(strport, "54321") != 0) { | 
 | 10757 |           goto bad; | 
 | 10758 |         } | 
 | 10759 |         if (passive) { | 
 | 10760 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 10761 |             goto bad; | 
 | 10762 |           } | 
 | 10763 |         } else { | 
 | 10764 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 10765 |             goto bad; | 
 | 10766 |           } | 
 | 10767 |         } | 
 | 10768 |         inet4++; | 
 | 10769 |         break; | 
 | 10770 |       case AF_INET6: | 
 | 10771 |         if (strcmp(strport, "54321") != 0) { | 
 | 10772 |           goto bad; | 
 | 10773 |         } | 
 | 10774 |         if (passive) { | 
 | 10775 |           if (strcmp(straddr, "::") != 0) { | 
 | 10776 |             goto bad; | 
 | 10777 |           } | 
 | 10778 |         } else { | 
 | 10779 |           if (strcmp(straddr, "::1") != 0) { | 
 | 10780 |             goto bad; | 
 | 10781 |           } | 
 | 10782 |         } | 
 | 10783 |         inet6++; | 
 | 10784 |         break; | 
 | 10785 |       case AF_UNSPEC: | 
 | 10786 |         goto bad; | 
 | 10787 |         break; | 
 | 10788 |       default: | 
 | 10789 |         /* another family support? */ | 
 | 10790 |         break; | 
 | 10791 |       } | 
 | 10792 |     } | 
 | 10793 |   } | 
 | 10794 |  | 
 | 10795 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 10796 |     goto bad; | 
 | 10797 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 10798 |     goto bad; | 
 | 10799 |  | 
 | 10800 |   if (aitop) | 
 | 10801 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10802 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10803 |  | 
 | 10804 |  bad: | 
 | 10805 |   if (aitop) | 
 | 10806 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10807 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10808 | } | 
 | 10809 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10811 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10812 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10813 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10814 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10815 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10816 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10817 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10818 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10819 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10820 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10821 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10822 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10823 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 10825 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 10826 |  | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10827 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10828 | then | 
 | 10829 | 	if test $ipv6 = yes | 
 | 10830 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10831 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 10832 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 10833 | 		exit 1 | 
 | 10834 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10835 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10836 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10837 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10838 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10839 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10840 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10841 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10842 | do : | 
 | 10843 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10844 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10846 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10848 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10849 | fi | 
 | 10850 | done | 
 | 10851 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10852 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10853 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 10855 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10856 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10857 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10859 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10860 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10861 | #include <sys/types.h> | 
 | 10862 | #include <sys/time.h> | 
 | 10863 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | int | 
 | 10866 | main () | 
 | 10867 | { | 
 | 10868 | if ((struct tm *) 0) | 
 | 10869 | return 0; | 
 | 10870 |   ; | 
 | 10871 |   return 0; | 
 | 10872 | } | 
 | 10873 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10874 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10875 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10876 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10877 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10878 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10880 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 10882 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10883 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10885 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10886 |  | 
 | 10887 | fi | 
 | 10888 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 10890 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10891 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10892 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10893 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10894 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10895 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10896 | #include <sys/types.h> | 
 | 10897 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | int | 
 | 10900 | main () | 
 | 10901 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10902 | struct tm tm; | 
 | 10903 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 |   ; | 
 | 10906 |   return 0; | 
 | 10907 | } | 
 | 10908 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10909 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10910 |   ac_cv_struct_tm=time.h | 
 | 10911 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10912 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10913 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10915 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 10917 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10918 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10920 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10921 |  | 
 | 10922 | fi | 
 | 10923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10925 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10927 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10928 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 |  | 
 | 10930 | cat >>confdefs.h <<_ACEOF | 
 | 10931 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 10932 | _ACEOF | 
 | 10933 |  | 
 | 10934 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10935 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10936 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10937 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 10938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10940 |  | 
 | 10941 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10942 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 10943 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10944 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10945 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10947 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10948 | fi | 
 | 10949 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10950 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10951 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10952 | _ACEOF | 
 | 10953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 10955 | $as_echo_n "checking for tzname... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10956 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10957 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10958 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10959 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10960 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10961 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10962 | #if !HAVE_DECL_TZNAME | 
 | 10963 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10964 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10965 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10966 | int | 
 | 10967 | main () | 
 | 10968 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10969 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 |   ; | 
 | 10971 |   return 0; | 
 | 10972 | } | 
 | 10973 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10975 |   ac_cv_var_tzname=yes | 
 | 10976 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10977 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10978 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10979 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10980 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 10983 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10984 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10986 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10987 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10988 |   fi | 
 | 10989 | fi | 
 | 10990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10991 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10992 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 |  | 
 | 10994 | cat >>confdefs.h <<_ACEOF | 
 | 10995 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 10996 | _ACEOF | 
 | 10997 |  | 
 | 10998 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10999 | fi | 
 | 11000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11001 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11002 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11003 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11004 | cat >>confdefs.h <<_ACEOF | 
 | 11005 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 11006 | _ACEOF | 
 | 11007 |  | 
 | 11008 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11009 | fi | 
 | 11010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11011 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11012 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 11013 |  | 
 | 11014 | cat >>confdefs.h <<_ACEOF | 
 | 11015 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 11016 | _ACEOF | 
 | 11017 |  | 
 | 11018 |  | 
 | 11019 | fi | 
 | 11020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11022 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 11023 |  | 
 | 11024 | cat >>confdefs.h <<_ACEOF | 
 | 11025 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 11026 | _ACEOF | 
 | 11027 |  | 
 | 11028 |  | 
 | 11029 | fi | 
 | 11030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11032 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 11033 |  | 
 | 11034 | cat >>confdefs.h <<_ACEOF | 
 | 11035 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 11036 | _ACEOF | 
 | 11037 |  | 
 | 11038 |  | 
 | 11039 | fi | 
 | 11040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11042 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11043 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | cat >>confdefs.h <<_ACEOF | 
 | 11045 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 11046 | _ACEOF | 
 | 11047 |  | 
 | 11048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11049 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11050 |  | 
 | 11051 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11052 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11053 |   *" fileblocks.$ac_objext "* ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11054 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 11055 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11056 | esac | 
 | 11057 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11058 | fi | 
 | 11059 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11060 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 11063 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11064 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11065 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11066 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11068 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11069 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11070 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | int | 
 | 11072 | main () | 
 | 11073 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11074 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 |   ; | 
 | 11076 |   return 0; | 
 | 11077 | } | 
 | 11078 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11079 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11080 |   ac_cv_header_time_altzone=yes | 
 | 11081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11082 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11083 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11085 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11086 | fi | 
 | 11087 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11089 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11090 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11092 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11093 |  | 
 | 11094 | fi | 
 | 11095 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11096 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11098 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11100 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11101 |  | 
 | 11102 | #include <sys/types.h> | 
 | 11103 | #include <sys/select.h> | 
 | 11104 | #include <sys/time.h> | 
 | 11105 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | int | 
 | 11107 | main () | 
 | 11108 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11109 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 |   ; | 
 | 11111 |   return 0; | 
 | 11112 | } | 
 | 11113 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11114 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 |  | 
 | 11116 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11117 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11119 |   was_it_defined=yes | 
 | 11120 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11121 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11124 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11125 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11127 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11128 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11130 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11131 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11132 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11133 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | int | 
 | 11135 | main () | 
 | 11136 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11137 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 |   ; | 
 | 11139 |   return 0; | 
 | 11140 | } | 
 | 11141 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11142 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11143 |   ac_cv_struct_addrinfo=yes | 
 | 11144 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11145 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11146 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11148 | fi | 
 | 11149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 11151 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11152 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11154 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11155 |  | 
 | 11156 | fi | 
 | 11157 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 11159 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11160 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11161 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11163 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11164 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11165 |  | 
 | 11166 | #		include <sys/types.h> | 
 | 11167 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | int | 
 | 11169 | main () | 
 | 11170 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11171 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 |   ; | 
 | 11173 |   return 0; | 
 | 11174 | } | 
 | 11175 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11176 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11177 |   ac_cv_struct_sockaddr_storage=yes | 
 | 11178 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11179 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11180 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11182 | fi | 
 | 11183 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 11185 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11186 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11188 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11189 |  | 
 | 11190 | fi | 
 | 11191 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11192 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 11195 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11196 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11197 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11198 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11199 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11200 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | int | 
 | 11203 | main () | 
 | 11204 | { | 
 | 11205 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
 | 11206 | test_array [0] = 0 | 
 | 11207 |  | 
 | 11208 |   ; | 
 | 11209 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11210 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11212 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11213 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11215 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11216 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11218 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 11220 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11221 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11222 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11223 |  | 
 | 11224 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11225 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 11227 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11228 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11229 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11231 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11232 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11233 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | int | 
 | 11235 | main () | 
 | 11236 | { | 
 | 11237 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 11238 | #ifndef __cplusplus | 
 | 11239 |   /* Ultrix mips cc rejects this.  */ | 
 | 11240 |   typedef int charset[2]; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11241 |   const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11243 |   char const *const *pcpcc; | 
 | 11244 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 11246 |   struct point {int x, y;}; | 
 | 11247 |   static struct point const zero = {0,0}; | 
 | 11248 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 11249 |      It does not let you subtract one const X* pointer from another in | 
 | 11250 |      an arm of an if-expression whose if-part is not a constant | 
 | 11251 |      expression */ | 
 | 11252 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11253 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11255 |   ++pcpcc; | 
 | 11256 |   ppc = (char**) pcpcc; | 
 | 11257 |   pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 11259 |     char *t; | 
 | 11260 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11261 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11263 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 |   } | 
 | 11265 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 11266 |     int x[] = {25, 17}; | 
 | 11267 |     const int *foo = &x[0]; | 
 | 11268 |     ++foo; | 
 | 11269 |   } | 
 | 11270 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 11271 |     typedef const int *iptr; | 
 | 11272 |     iptr p = 0; | 
 | 11273 |     ++p; | 
 | 11274 |   } | 
 | 11275 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 11276 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 11277 |     struct s { int j; const int *ap[3]; }; | 
 | 11278 |     struct s *b; b->j = 5; | 
 | 11279 |   } | 
 | 11280 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 11281 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11282 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11284 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11286 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 |   ; | 
 | 11288 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11289 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11291 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11292 |   ac_cv_c_const=yes | 
 | 11293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11294 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11295 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11297 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 11299 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11300 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11302 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11303 |  | 
 | 11304 | fi | 
 | 11305 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11306 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11307 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 11309 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 11310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11311 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11312 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | int | 
 | 11314 | main () | 
 | 11315 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11316 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11317 |   ; | 
 | 11318 |   return 0; | 
 | 11319 | } | 
 | 11320 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11321 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11322 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11323 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11324 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11325 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11326 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11327 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11328 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11331 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11332 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11333 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 11335 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 11336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11337 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11338 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | int | 
 | 11340 | main () | 
 | 11341 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11342 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 |   ; | 
 | 11344 |   return 0; | 
 | 11345 | } | 
 | 11346 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11347 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11348 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11349 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11350 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11351 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11352 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11353 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11354 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11357 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11358 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11359 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 11361 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 11362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11363 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11364 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | int | 
 | 11366 | main () | 
 | 11367 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11368 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 |   ; | 
 | 11370 |   return 0; | 
 | 11371 | } | 
 | 11372 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11373 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11375 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11376 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11377 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11378 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 11381 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11382 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11383 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 11385 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 11386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11387 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11388 |  | 
 | 11389 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11390 | int foo(int x, ...) { | 
 | 11391 | 	va_list va; | 
 | 11392 | 	va_start(va, x); | 
 | 11393 | 	va_arg(va, int); | 
 | 11394 | 	va_arg(va, char *); | 
 | 11395 | 	va_arg(va, double); | 
 | 11396 | 	return 0; | 
 | 11397 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | int | 
 | 11400 | main () | 
 | 11401 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11402 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 |   ; | 
 | 11404 |   return 0; | 
 | 11405 | } | 
 | 11406 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11407 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 |  | 
 | 11409 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11410 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11412 |   works=yes | 
 | 11413 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11414 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11417 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11418 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11419 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 11421 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 11422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11423 | /* end confdefs.h.  */ | 
 | 11424 |  | 
 | 11425 | #include <sys/types.h> | 
 | 11426 | #include <sys/socket.h> | 
 | 11427 |  | 
 | 11428 | int | 
 | 11429 | main () | 
 | 11430 | { | 
 | 11431 | void *x=socketpair | 
 | 11432 |   ; | 
 | 11433 |   return 0; | 
 | 11434 | } | 
 | 11435 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11436 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11437 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11438 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11439 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11440 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11441 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11442 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11443 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11444 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11445 |  | 
 | 11446 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11448 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11449 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 11451 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 11452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11453 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11454 | #include <sys/types.h> | 
 | 11455 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | int | 
 | 11457 | main () | 
 | 11458 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11459 | struct sockaddr x; | 
 | 11460 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 |   ; | 
 | 11462 |   return 0; | 
 | 11463 | } | 
 | 11464 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11465 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11466 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11467 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11469 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11470 |  | 
 | 11471 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11473 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11474 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11475 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11477 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11478 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 11480 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 11481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11482 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11483 |  | 
 | 11484 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 11485 | #include <stdarg.h> | 
 | 11486 | #else | 
 | 11487 | #include <varargs.h> | 
 | 11488 | #endif | 
 | 11489 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | int | 
 | 11491 | main () | 
 | 11492 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11493 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 |   ; | 
 | 11495 |   return 0; | 
 | 11496 | } | 
 | 11497 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11498 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11499 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11500 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11501 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11503 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11504 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11505 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11506 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 11510 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11511 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11512 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 |  | 
 | 11514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11515 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11516 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11518 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11519 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11520 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 11521 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11522 |   OLD_CFLAGS=$CFLAGS | 
 | 11523 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11524 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11525 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11526 |  | 
 | 11527 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | int | 
 | 11530 | main () | 
 | 11531 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11532 |  | 
 | 11533 |     char *name; | 
 | 11534 |     struct hostent *he, *res; | 
 | 11535 |     char buffer[2048]; | 
 | 11536 |     int buflen = 2048; | 
 | 11537 |     int h_errnop; | 
 | 11538 |  | 
 | 11539 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 |  | 
 | 11541 |   ; | 
 | 11542 |   return 0; | 
 | 11543 | } | 
 | 11544 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11545 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11547 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11550 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11551 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11552 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11553 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11555 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11556 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11557 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11558 | $as_echo "no" >&6; } | 
 | 11559 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 11560 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 11561 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11562 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11563 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11564 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | int | 
 | 11567 | main () | 
 | 11568 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11569 |  | 
 | 11570 |         char *name; | 
 | 11571 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11572 |         char buffer[2048]; | 
 | 11573 |         int buflen = 2048; | 
 | 11574 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11575 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11576 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 |  | 
 | 11578 |   ; | 
 | 11579 |   return 0; | 
 | 11580 | } | 
 | 11581 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11582 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11584 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11585 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11587 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11589 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11590 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11592 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11594 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11595 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11596 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 11597 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 11598 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11599 | /* end confdefs.h.  */ | 
 | 11600 |  | 
 | 11601 | #           include <netdb.h> | 
 | 11602 |  | 
 | 11603 | int | 
 | 11604 | main () | 
 | 11605 | { | 
 | 11606 |  | 
 | 11607 |             char *name; | 
 | 11608 |             struct hostent *he; | 
 | 11609 |             struct hostent_data data; | 
 | 11610 |  | 
 | 11611 |             (void) gethostbyname_r(name, he, &data); | 
 | 11612 |  | 
 | 11613 |   ; | 
 | 11614 |   return 0; | 
 | 11615 | } | 
 | 11616 | _ACEOF | 
 | 11617 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11618 |  | 
 | 11619 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 11620 |  | 
 | 11621 |  | 
 | 11622 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 11623 |  | 
 | 11624 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11625 | $as_echo "yes" >&6; } | 
 | 11626 |  | 
 | 11627 | else | 
 | 11628 |  | 
 | 11629 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11630 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11632 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11635 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11637 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11638 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11640 |   CFLAGS=$OLD_CFLAGS | 
 | 11641 |  | 
 | 11642 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11644 |   for ac_func in gethostbyname | 
 | 11645 | do : | 
 | 11646 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11647 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11649 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11650 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11651 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11652 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11653 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11654 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11655 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11656 | fi | 
 | 11657 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11658 |  | 
 | 11659 |  | 
 | 11660 |  | 
 | 11661 |  | 
 | 11662 |  | 
 | 11663 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11664 | # checks for system services | 
 | 11665 | # (none yet) | 
 | 11666 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11667 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11668 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11669 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11670 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11671 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11672 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 11673 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11674 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11675 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11676 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11678 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11680 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11681 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11682 | /* Override any GCC internal prototype to avoid an error. | 
 | 11683 |    Use char because int might match the return type of a GCC | 
 | 11684 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | #ifdef __cplusplus | 
 | 11686 | extern "C" | 
 | 11687 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | int | 
 | 11690 | main () | 
 | 11691 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11692 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 |   ; | 
 | 11694 |   return 0; | 
 | 11695 | } | 
 | 11696 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11697 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11699 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11700 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11701 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11702 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11703 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 11707 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11708 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 |   cat >>confdefs.h <<_ACEOF | 
 | 11710 | #define HAVE_LIBIEEE 1 | 
 | 11711 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11712 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11713 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11714 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11715 | fi | 
 | 11716 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11717 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11718 | fi | 
 | 11719 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11720 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11721 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 11723 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11724 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11725 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11726 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11727 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11728 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | then | 
 | 11730 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11731 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11733 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11734 | $as_echo "yes" >&6; } | 
 | 11735 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11736 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11737 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11738 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11739 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11740 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11741 | fi | 
 | 11742 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11743 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11744 | # check for --with-libm=... | 
 | 11745 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11746 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11747 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11748 | *) LIBM=-lm | 
 | 11749 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 11751 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11752 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11753 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11755 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11756 | if test "$withval" = no | 
 | 11757 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11758 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 11759 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11760 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11761 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11762 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 11763 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11764 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11765 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11766 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11767 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 11768 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11769 | fi | 
 | 11770 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11771 |  | 
 | 11772 | # check for --with-libc=... | 
 | 11773 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 11775 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11777 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11778 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11779 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11780 | if test "$withval" = no | 
 | 11781 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11782 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 11783 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11784 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11785 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11786 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 11787 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11788 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11789 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 11792 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11793 | fi | 
 | 11794 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11795 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11796 | # ************************************************** | 
 | 11797 | # * Check for various properties of floating point * | 
 | 11798 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 11801 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11802 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11803 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11804 | else | 
 | 11805 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11806 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11807 |   ac_cv_little_endian_double=no | 
 | 11808 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11809 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11810 | /* end confdefs.h.  */ | 
 | 11811 |  | 
 | 11812 | #include <string.h> | 
 | 11813 | int main() { | 
 | 11814 |     double x = 9006104071832581.0; | 
 | 11815 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 11816 |         return 0; | 
 | 11817 |     else | 
 | 11818 |         return 1; | 
 | 11819 | } | 
 | 11820 |  | 
 | 11821 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11822 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11823 |   ac_cv_little_endian_double=yes | 
 | 11824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11825 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11826 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11828 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11829 | fi | 
 | 11830 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11831 | fi | 
 | 11832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 11834 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11835 | if test "$ac_cv_little_endian_double" = yes | 
 | 11836 | then | 
 | 11837 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11838 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11839 |  | 
 | 11840 | fi | 
 | 11841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 11843 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11844 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11845 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11846 | else | 
 | 11847 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11848 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11849 |   ac_cv_big_endian_double=no | 
 | 11850 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11852 | /* end confdefs.h.  */ | 
 | 11853 |  | 
 | 11854 | #include <string.h> | 
 | 11855 | int main() { | 
 | 11856 |     double x = 9006104071832581.0; | 
 | 11857 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 11858 |         return 0; | 
 | 11859 |     else | 
 | 11860 |         return 1; | 
 | 11861 | } | 
 | 11862 |  | 
 | 11863 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11864 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11865 |   ac_cv_big_endian_double=yes | 
 | 11866 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11867 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11868 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11870 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11871 | fi | 
 | 11872 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11873 | fi | 
 | 11874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 11876 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11877 | if test "$ac_cv_big_endian_double" = yes | 
 | 11878 | then | 
 | 11879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11881 |  | 
 | 11882 | fi | 
 | 11883 |  | 
 | 11884 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 11885 | # While Python doesn't currently have full support for these platforms | 
 | 11886 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 11887 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 11889 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11890 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11892 | else | 
 | 11893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11895 |   ac_cv_mixed_endian_double=no | 
 | 11896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11897 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11898 | /* end confdefs.h.  */ | 
 | 11899 |  | 
 | 11900 | #include <string.h> | 
 | 11901 | int main() { | 
 | 11902 |     double x = 9006104071832581.0; | 
 | 11903 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 11904 |         return 0; | 
 | 11905 |     else | 
 | 11906 |         return 1; | 
 | 11907 | } | 
 | 11908 |  | 
 | 11909 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11910 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11911 |   ac_cv_mixed_endian_double=yes | 
 | 11912 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11913 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11914 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11916 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11917 | fi | 
 | 11918 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11919 | fi | 
 | 11920 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 11922 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11923 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 11924 | then | 
 | 11925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11926 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11927 |  | 
 | 11928 | fi | 
 | 11929 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11930 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11931 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11932 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11933 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11934 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11935 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11936 |  | 
 | 11937 | # This inline assembler syntax may also work for suncc and icc, | 
 | 11938 | # so we try it on all platforms. | 
 | 11939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 11941 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 11942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11943 | /* end confdefs.h.  */ | 
 | 11944 |  | 
 | 11945 | int | 
 | 11946 | main () | 
 | 11947 | { | 
 | 11948 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11949 |   unsigned short cw; | 
 | 11950 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 11951 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11952 |  | 
 | 11953 |   ; | 
 | 11954 |   return 0; | 
 | 11955 | } | 
 | 11956 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11957 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11958 |   have_gcc_asm_for_x87=yes | 
 | 11959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11960 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11961 | fi | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 11964 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11965 | if test "$have_gcc_asm_for_x87" = yes | 
 | 11966 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11968 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11969 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11970 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11971 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11972 | # Detect whether system arithmetic is subject to x87-style double | 
 | 11973 | # rounding issues.  The result of this test has little meaning on non | 
 | 11974 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 11975 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 11976 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 11978 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11979 | # $BASECFLAGS may affect the result | 
 | 11980 | ac_save_cc="$CC" | 
 | 11981 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11982 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11983 |   ac_cv_x87_double_rounding=no | 
 | 11984 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11985 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11986 | /* end confdefs.h.  */ | 
 | 11987 |  | 
 | 11988 | #include <stdlib.h> | 
 | 11989 | #include <math.h> | 
 | 11990 | int main() { | 
 | 11991 |     volatile double x, y, z; | 
 | 11992 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 11993 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 11994 |     y = 1./x; | 
 | 11995 |     if (y != 1.) | 
 | 11996 |         exit(0); | 
 | 11997 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 11998 |     x = 1e16; | 
 | 11999 |     y = 2.99999; | 
 | 12000 |     z = x + y; | 
 | 12001 |     if (z != 1e16+4.) | 
 | 12002 |         exit(0); | 
 | 12003 |     /* both tests show evidence of double rounding */ | 
 | 12004 |     exit(1); | 
 | 12005 | } | 
 | 12006 |  | 
 | 12007 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12009 |   ac_cv_x87_double_rounding=no | 
 | 12010 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12012 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12014 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12015 | fi | 
 | 12016 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12017 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 12019 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12020 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 12021 | then | 
 | 12022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12023 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12024 |  | 
 | 12025 | fi | 
 | 12026 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12027 | # ************************************ | 
 | 12028 | # * Check for mathematical functions * | 
 | 12029 | # ************************************ | 
 | 12030 |  | 
 | 12031 | LIBS_SAVE=$LIBS | 
 | 12032 | LIBS="$LIBS $LIBM" | 
 | 12033 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12034 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 12035 | do : | 
 | 12036 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12037 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12038 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12039 |   cat >>confdefs.h <<_ACEOF | 
 | 12040 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12041 | _ACEOF | 
 | 12042 |  | 
 | 12043 | fi | 
 | 12044 | done | 
 | 12045 |  | 
 | 12046 | for ac_func in hypot lgamma log1p round tgamma | 
 | 12047 | do : | 
 | 12048 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12049 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12050 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12051 |   cat >>confdefs.h <<_ACEOF | 
 | 12052 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12053 | _ACEOF | 
 | 12054 |  | 
 | 12055 | fi | 
 | 12056 | done | 
 | 12057 |  | 
 | 12058 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 12059 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12060 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12061 |   ac_have_decl=1 | 
 | 12062 | else | 
 | 12063 |   ac_have_decl=0 | 
 | 12064 | fi | 
 | 12065 |  | 
 | 12066 | cat >>confdefs.h <<_ACEOF | 
 | 12067 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 12068 | _ACEOF | 
 | 12069 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 12070 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12071 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12072 |   ac_have_decl=1 | 
 | 12073 | else | 
 | 12074 |   ac_have_decl=0 | 
 | 12075 | fi | 
 | 12076 |  | 
 | 12077 | cat >>confdefs.h <<_ACEOF | 
 | 12078 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 12079 | _ACEOF | 
 | 12080 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 12081 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12082 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12083 |   ac_have_decl=1 | 
 | 12084 | else | 
 | 12085 |   ac_have_decl=0 | 
 | 12086 | fi | 
 | 12087 |  | 
 | 12088 | cat >>confdefs.h <<_ACEOF | 
 | 12089 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 12090 | _ACEOF | 
 | 12091 |  | 
 | 12092 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12093 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12094 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12096 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12097 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12098 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12099 | else | 
 | 12100 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12101 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12102 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12103 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12104 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12105 | /* end confdefs.h.  */ | 
 | 12106 |  | 
 | 12107 | #include <math.h> | 
 | 12108 | #include <stdlib.h> | 
 | 12109 | int main() { | 
 | 12110 |     /* return 0 if either negative zeros don't exist | 
 | 12111 |        on this platform or if negative zeros exist | 
 | 12112 |        and tanh(-0.) == -0. */ | 
 | 12113 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12114 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12115 |   else exit(1); | 
 | 12116 | } | 
 | 12117 |  | 
 | 12118 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12119 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12120 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12121 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12122 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12123 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12125 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12126 | fi | 
 | 12127 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12128 | fi | 
 | 12129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12131 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12132 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12133 | then | 
 | 12134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12135 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12136 |  | 
 | 12137 | fi | 
 | 12138 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12139 | if test "$ac_cv_func_log1p" = yes | 
 | 12140 | then | 
 | 12141 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 12142 |     # -0.  See issue #9920. | 
 | 12143 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 12144 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12145 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12146 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12147 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12148 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12149 |     if test "$cross_compiling" = yes; then : | 
 | 12150 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12151 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12152 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12153 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12154 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12155 |     #include <math.h> | 
 | 12156 |     #include <stdlib.h> | 
 | 12157 |     int main() { | 
 | 12158 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 12159 | 	   distinguished. */ | 
 | 12160 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 12161 |             return 0; | 
 | 12162 |         else | 
 | 12163 |             return 1; | 
 | 12164 |     } | 
 | 12165 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12166 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12167 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 12168 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12169 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12170 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 12171 | fi | 
 | 12172 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12173 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12174 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12175 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12176 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12177 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12178 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 12179 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 12180 | fi | 
 | 12181 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 12182 | then | 
 | 12183 |  | 
 | 12184 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 12185 |  | 
 | 12186 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12187 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12188 | LIBS=$LIBS_SAVE | 
 | 12189 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12190 | # For multiprocessing module, check that sem_open | 
 | 12191 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 12192 | # the kernel module that provides POSIX semaphores | 
 | 12193 | # isn't loaded by default, so an attempt to call | 
 | 12194 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 12196 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12197 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12198 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12199 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12200 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12201 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12202 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12204 | /* end confdefs.h.  */ | 
 | 12205 |  | 
 | 12206 | #include <unistd.h> | 
 | 12207 | #include <fcntl.h> | 
 | 12208 | #include <stdio.h> | 
 | 12209 | #include <semaphore.h> | 
 | 12210 | #include <sys/stat.h> | 
 | 12211 |  | 
 | 12212 | int main(void) { | 
 | 12213 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 12214 |   if (a == SEM_FAILED) { | 
 | 12215 |     perror("sem_open"); | 
 | 12216 |     return 1; | 
 | 12217 |   } | 
 | 12218 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12219 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12220 |   return 0; | 
 | 12221 | } | 
 | 12222 |  | 
 | 12223 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12224 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12225 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12227 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12230 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12231 | fi | 
 | 12232 |  | 
 | 12233 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12234 | fi | 
 | 12235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 12237 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12238 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 12239 | then | 
 | 12240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12241 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12242 |  | 
 | 12243 | fi | 
 | 12244 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12245 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 12247 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12248 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12249 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12250 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12251 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12252 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12253 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12254 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12255 | /* end confdefs.h.  */ | 
 | 12256 |  | 
 | 12257 | #include <unistd.h> | 
 | 12258 | #include <fcntl.h> | 
 | 12259 | #include <stdio.h> | 
 | 12260 | #include <semaphore.h> | 
 | 12261 | #include <sys/stat.h> | 
 | 12262 |  | 
 | 12263 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12264 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12265 |   int count; | 
 | 12266 |   int res; | 
 | 12267 |   if(a==SEM_FAILED){ | 
 | 12268 |     perror("sem_open"); | 
 | 12269 |     return 1; | 
 | 12270 |  | 
 | 12271 |   } | 
 | 12272 |   res = sem_getvalue(a, &count); | 
 | 12273 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12274 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12275 |   return res==-1 ? 1 : 0; | 
 | 12276 | } | 
 | 12277 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12278 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12279 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12280 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12281 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12283 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12285 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12286 | fi | 
 | 12287 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12288 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12289 | fi | 
 | 12290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 12292 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12293 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 12294 | then | 
 | 12295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12296 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12297 |  | 
 | 12298 | fi | 
 | 12299 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12300 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 12302 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12303 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12304 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12305 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 12306 | yes) | 
 | 12307 |   enable_big_digits=30 ;; | 
 | 12308 | no) | 
 | 12309 |   enable_big_digits=15 ;; | 
 | 12310 | 15|30) | 
 | 12311 |   ;; | 
 | 12312 | *) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12313 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12314 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 12316 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12317 |  | 
 | 12318 | cat >>confdefs.h <<_ACEOF | 
 | 12319 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 12320 | _ACEOF | 
 | 12321 |  | 
 | 12322 |  | 
 | 12323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12324 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 12325 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12326 | fi | 
 | 12327 |  | 
 | 12328 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12329 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12330 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12331 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 |  | 
 | 12333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12334 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12336 |   wchar_h="yes" | 
 | 12337 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12338 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12340 |  | 
 | 12341 | fi | 
 | 12342 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12343 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12345 | # determine wchar_t size | 
 | 12346 | if test "$wchar_h" = yes | 
 | 12347 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12348 |   # The cast to long int works around a bug in the HP C Compiler | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12349 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 12350 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 12351 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 12353 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12354 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12355 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12357 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 12358 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 12362 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 12363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12364 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12365 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12366 |    else | 
 | 12367 |      ac_cv_sizeof_wchar_t=0 | 
 | 12368 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12370 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 12373 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12374 |  | 
 | 12375 |  | 
 | 12376 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12378 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12379 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12380 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12381 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12382 | fi | 
 | 12383 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 12385 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12386 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12388 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12389 |  | 
 | 12390 | #include <tcl.h> | 
 | 12391 | #if TCL_UTF_MAX != 6 | 
 | 12392 | # error "NOT UCS4_TCL" | 
 | 12393 | #endif | 
 | 12394 | int | 
 | 12395 | main () | 
 | 12396 | { | 
 | 12397 |  | 
 | 12398 |   ; | 
 | 12399 |   return 0; | 
 | 12400 | } | 
 | 12401 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12402 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12403 |  | 
 | 12404 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12405 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12406 |  | 
 | 12407 |   have_ucs4_tcl=yes | 
 | 12408 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12409 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 12412 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12413 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12415 | if test "$wchar_h" = yes | 
 | 12416 | then | 
 | 12417 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12418 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 12419 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12420 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12421 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12422 | else | 
 | 12423 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12425 |   ac_cv_wchar_t_signed=yes | 
 | 12426 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12427 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12428 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12429 |  | 
 | 12430 |   #include <wchar.h> | 
 | 12431 |   int main() | 
 | 12432 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12433 | 	/* Success: exit code 0 */ | 
 | 12434 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12435 |   } | 
 | 12436 |  | 
 | 12437 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12438 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12439 |   ac_cv_wchar_t_signed=yes | 
 | 12440 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12441 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12442 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12444 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12445 | fi | 
 | 12446 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12447 | fi | 
 | 12448 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12449 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 12450 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12451 | fi | 
 | 12452 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 | 
 | 12454 | $as_echo_n "checking what type to use for str... " >&6; } | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12455 |  | 
 | 12456 | # Check whether --with-wide-unicode was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12457 | if test "${with_wide_unicode+set}" = set; then : | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12458 |   withval=$with_wide_unicode; | 
 | 12459 | if test "$withval" != no | 
 | 12460 | then unicode_size="4" | 
 | 12461 | else unicode_size="2" | 
 | 12462 | fi | 
 | 12463 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12464 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12465 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12466 | case "$have_ucs4_tcl" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12467 |   yes) unicode_size="4";; | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12468 |   *)   unicode_size="2" ;; | 
 | 12469 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12470 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12471 | fi | 
 | 12472 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12473 |  | 
 | 12474 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12475 | case "$unicode_size" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12476 |   4) | 
 | 12477 |      $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
 | 12478 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12479 |      ABIFLAGS="${ABIFLAGS}u" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12480 |      ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12481 |   *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12482 |  ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12483 | esac | 
 | 12484 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12485 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12487 | # wchar_t is only usable if it maps to an unsigned type | 
 | 12488 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12489 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12490 | then | 
 | 12491 |   PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12493 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12494 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12495 |   $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12496 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12497 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 12498 | then | 
 | 12499 |      PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12500 |      $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12501 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12502 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 12503 | then | 
 | 12504 |      PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12505 |      $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12506 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12507 | else | 
 | 12508 |      PY_UNICODE_TYPE="no type found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12509 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 12511 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12512 |  | 
 | 12513 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12514 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 12515 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12516 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12517 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12518 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12519 |   ac_cv_c_bigendian=unknown | 
 | 12520 |     # See if we're dealing with a universal compiler. | 
 | 12521 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12522 | /* end confdefs.h.  */ | 
 | 12523 | #ifndef __APPLE_CC__ | 
 | 12524 | 	       not a universal capable compiler | 
 | 12525 | 	     #endif | 
 | 12526 | 	     typedef int dummy; | 
 | 12527 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12529 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12530 |  | 
 | 12531 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 12532 | 	# there are at least two -arch flags with different values. | 
 | 12533 | 	ac_arch= | 
 | 12534 | 	ac_prev= | 
 | 12535 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 12536 | 	 if test -n "$ac_prev"; then | 
 | 12537 | 	   case $ac_word in | 
 | 12538 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 12539 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 12540 | 		 ac_arch=$ac_word | 
 | 12541 | 	       else | 
 | 12542 | 		 ac_cv_c_bigendian=universal | 
 | 12543 | 		 break | 
 | 12544 | 	       fi | 
 | 12545 | 	       ;; | 
 | 12546 | 	   esac | 
 | 12547 | 	   ac_prev= | 
 | 12548 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 12549 | 	   ac_prev=arch | 
 | 12550 | 	 fi | 
 | 12551 |        done | 
 | 12552 | fi | 
 | 12553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12554 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12555 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 12556 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12557 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12558 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12559 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12561 | int | 
 | 12562 | main () | 
 | 12563 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12564 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 12565 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 12566 | 		     && LITTLE_ENDIAN) | 
 | 12567 | 	      bogus endian macros | 
 | 12568 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 |  | 
 | 12570 |   ; | 
 | 12571 |   return 0; | 
 | 12572 | } | 
 | 12573 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12574 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12575 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12576 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12577 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12578 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12579 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | int | 
 | 12582 | main () | 
 | 12583 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12584 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12585 | 		 not big endian | 
 | 12586 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 |  | 
 | 12588 |   ; | 
 | 12589 |   return 0; | 
 | 12590 | } | 
 | 12591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12592 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12593 |   ac_cv_c_bigendian=yes | 
 | 12594 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12595 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12596 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12598 | fi | 
 | 12599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12600 |     fi | 
 | 12601 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12602 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 12603 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12604 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12605 | #include <limits.h> | 
 | 12606 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | int | 
 | 12608 | main () | 
 | 12609 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12610 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 12611 | 	      bogus endian macros | 
 | 12612 | 	     #endif | 
 | 12613 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 |   ; | 
 | 12615 |   return 0; | 
 | 12616 | } | 
 | 12617 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12618 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12619 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 12620 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12621 | /* end confdefs.h.  */ | 
 | 12622 | #include <limits.h> | 
 | 12623 |  | 
 | 12624 | int | 
 | 12625 | main () | 
 | 12626 | { | 
 | 12627 | #ifndef _BIG_ENDIAN | 
 | 12628 | 		 not big endian | 
 | 12629 | 		#endif | 
 | 12630 |  | 
 | 12631 |   ; | 
 | 12632 |   return 0; | 
 | 12633 | } | 
 | 12634 | _ACEOF | 
 | 12635 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12638 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12639 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12641 | fi | 
 | 12642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12643 |     fi | 
 | 12644 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 12645 |       # Compile a test program. | 
 | 12646 |       if test "$cross_compiling" = yes; then : | 
 | 12647 |   # Try to guess by grepping values from an object file. | 
 | 12648 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12649 | /* end confdefs.h.  */ | 
 | 12650 | short int ascii_mm[] = | 
 | 12651 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 12652 | 		short int ascii_ii[] = | 
 | 12653 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 12654 | 		int use_ascii (int i) { | 
 | 12655 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 12656 | 		} | 
 | 12657 | 		short int ebcdic_ii[] = | 
 | 12658 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 12659 | 		short int ebcdic_mm[] = | 
 | 12660 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 12661 | 		int use_ebcdic (int i) { | 
 | 12662 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 12663 | 		} | 
 | 12664 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12666 | int | 
 | 12667 | main () | 
 | 12668 | { | 
 | 12669 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 12670 |   ; | 
 | 12671 |   return 0; | 
 | 12672 | } | 
 | 12673 | _ACEOF | 
 | 12674 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12675 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 12676 | 	      ac_cv_c_bigendian=yes | 
 | 12677 | 	    fi | 
 | 12678 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 12679 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 12680 | 		ac_cv_c_bigendian=no | 
 | 12681 | 	      else | 
 | 12682 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 12683 | 		ac_cv_c_bigendian=unknown | 
 | 12684 | 	      fi | 
 | 12685 | 	    fi | 
 | 12686 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12689 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12690 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12691 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | int | 
 | 12693 | main () | 
 | 12694 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12695 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12696 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 12697 | 	     union | 
 | 12698 | 	     { | 
 | 12699 | 	       long int l; | 
 | 12700 | 	       char c[sizeof (long int)]; | 
 | 12701 | 	     } u; | 
 | 12702 | 	     u.l = 1; | 
 | 12703 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12704 |  | 
 | 12705 |   ; | 
 | 12706 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12707 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12709 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12710 |   ac_cv_c_bigendian=no | 
 | 12711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12712 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12713 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12714 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12715 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12716 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12717 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12718 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12719 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 12721 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 12722 |  case $ac_cv_c_bigendian in #( | 
 | 12723 |    yes) | 
 | 12724 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 12725 | ;; #( | 
 | 12726 |    no) | 
 | 12727 |       ;; #( | 
 | 12728 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12730 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12732 |      ;; #( | 
 | 12733 |    *) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12734 |      as_fn_error $? "unknown endianness | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12735 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12736 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12737 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12738 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12739 | # ABI version string for Python extension modules.  This appears between the | 
 | 12740 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 12741 | # from the following attributes which affect the ABI of this Python build (in | 
 | 12742 | # this order): | 
 | 12743 | # | 
 | 12744 | # * The Python implementation (always 'cpython-' for us) | 
 | 12745 | # * The major and minor version numbers | 
 | 12746 | # * --with-pydebug (adds a 'd') | 
 | 12747 | # * --with-pymalloc (adds a 'm') | 
 | 12748 | # * --with-wide-unicode (adds a 'u') | 
 | 12749 | # | 
 | 12750 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12751 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 12752 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12753 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 12755 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 12757 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 12759 | $as_echo_n "checking SOABI... " >&6; } | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12760 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 12762 | $as_echo "$SOABI" >&6; } | 
 | 12763 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 12765 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 12766 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 12768 | $as_echo "$LDVERSION" >&6; } | 
 | 12769 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12770 | # SO is the extension of shared libraries `(including the dot!) | 
 | 12771 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 12773 | $as_echo_n "checking SO... " >&6; } | 
 | 12774 | if test -z "$SO" | 
 | 12775 | then | 
 | 12776 | 	case $ac_sys_system in | 
 | 12777 | 	hp*|HP*) | 
 | 12778 | 		case `uname -m` in | 
 | 12779 | 			ia64) SO=.so;; | 
 | 12780 | 	  		*)    SO=.sl;; | 
 | 12781 | 		esac | 
 | 12782 | 		;; | 
 | 12783 | 	CYGWIN*)   SO=.dll;; | 
| Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12784 | 	Linux*|GNU*) | 
 | 12785 | 		   SO=.${SOABI}.so;; | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12786 | 	*)	   SO=.so;; | 
 | 12787 | 	esac | 
 | 12788 | else | 
 | 12789 | 	# this might also be a termcap variable, see #610332 | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12790 | 	echo | 
 | 12791 | 	echo '=====================================================================' | 
 | 12792 | 	echo '+                                                                   +' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12793 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12794 | 	echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 12795 | 	echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 12796 | 	echo '+                                                                   +' | 
 | 12797 | 	echo '=====================================================================' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12798 | 	sleep 10 | 
 | 12799 | fi | 
 | 12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 12801 | $as_echo "$SO" >&6; } | 
 | 12802 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12803 | # Check whether right shifting a negative integer extends the sign bit | 
 | 12804 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 12806 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12807 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12808 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12809 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12811 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12812 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12813 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12815 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12816 |  | 
 | 12817 | int main() | 
 | 12818 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12819 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12820 | } | 
 | 12821 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12823 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12824 |   ac_cv_rshift_extends_sign=yes | 
 | 12825 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12827 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12828 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12829 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12830 | fi | 
 | 12831 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12832 | fi | 
 | 12833 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 12835 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12836 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12837 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12839 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12840 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12841 | fi | 
 | 12842 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12843 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 12845 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12846 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12847 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12848 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12851 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12852 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | int | 
 | 12854 | main () | 
 | 12855 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12856 |  | 
 | 12857 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 12858 | 	flockfile(f); | 
 | 12859 | 	getc_unlocked(f); | 
 | 12860 | 	funlockfile(f); | 
 | 12861 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 |   ; | 
 | 12863 |   return 0; | 
 | 12864 | } | 
 | 12865 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12866 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12867 |   ac_cv_have_getc_unlocked=yes | 
 | 12868 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 |   ac_cv_have_getc_unlocked=no | 
 | 12870 | fi | 
 | 12871 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12872 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12873 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 12876 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12877 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 12878 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12880 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12881 |  | 
 | 12882 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12883 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12884 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12885 | # save the value of LIBS so we don't actually link Python with readline | 
 | 12886 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12887 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12888 | # On some systems we need to link readline to a termcap compatible | 
 | 12889 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 12890 | # with setup.py. | 
 | 12891 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 12893 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12894 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 12895 |   if test -z "$py_libtermcap"; then | 
 | 12896 |     READLINE_LIBS="-lreadline" | 
 | 12897 |   else | 
 | 12898 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 12899 |   fi | 
 | 12900 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12902 | /* end confdefs.h.  */ | 
 | 12903 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12904 | /* Override any GCC internal prototype to avoid an error. | 
 | 12905 |    Use char because int might match the return type of a GCC | 
 | 12906 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12907 | #ifdef __cplusplus | 
 | 12908 | extern "C" | 
 | 12909 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12910 | char readline (); | 
 | 12911 | int | 
 | 12912 | main () | 
 | 12913 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12914 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12915 |   ; | 
 | 12916 |   return 0; | 
 | 12917 | } | 
 | 12918 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12920 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12921 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12922 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12923 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12924 |   if test $py_cv_lib_readline = yes; then | 
 | 12925 |     break | 
 | 12926 |   fi | 
 | 12927 | done | 
 | 12928 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 12929 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12930 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 12932 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12933 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12934 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 12935 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12936 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12937 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12938 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12939 | fi | 
 | 12940 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12941 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 12943 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12944 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12945 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12946 | else | 
 | 12947 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12948 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12950 | /* end confdefs.h.  */ | 
 | 12951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12952 | /* Override any GCC internal prototype to avoid an error. | 
 | 12953 |    Use char because int might match the return type of a GCC | 
 | 12954 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12955 | #ifdef __cplusplus | 
 | 12956 | extern "C" | 
 | 12957 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12958 | char rl_callback_handler_install (); | 
 | 12959 | int | 
 | 12960 | main () | 
 | 12961 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12962 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12963 |   ; | 
 | 12964 |   return 0; | 
 | 12965 | } | 
 | 12966 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12967 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12968 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 12969 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12970 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12971 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12972 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12973 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12974 | LIBS=$ac_check_lib_save_LIBS | 
 | 12975 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 12977 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12978 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12980 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12981 |  | 
 | 12982 | fi | 
 | 12983 |  | 
 | 12984 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12985 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12987 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12988 | #include <readline/readline.h> | 
 | 12989 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12990 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12991 |   have_readline=yes | 
 | 12992 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12993 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12994 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12995 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12996 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12997 | if test $have_readline = yes | 
 | 12998 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12999 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13001 | #include <readline/readline.h> | 
 | 13002 |  | 
 | 13003 | _ACEOF | 
 | 13004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13005 |   $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13006 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13007 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13008 |  | 
 | 13009 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13010 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13011 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13013 | /* end confdefs.h.  */ | 
 | 13014 | #include <readline/readline.h> | 
 | 13015 |  | 
 | 13016 | _ACEOF | 
 | 13017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13018 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13020 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13021 |  | 
 | 13022 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13023 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13024 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13025 | fi | 
 | 13026 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13027 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 13029 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13030 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13031 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13032 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13034 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13036 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13038 | /* Override any GCC internal prototype to avoid an error. | 
 | 13039 |    Use char because int might match the return type of a GCC | 
 | 13040 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | #ifdef __cplusplus | 
 | 13042 | extern "C" | 
 | 13043 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | int | 
 | 13046 | main () | 
 | 13047 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13048 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 |   ; | 
 | 13050 |   return 0; | 
 | 13051 | } | 
 | 13052 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13055 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13056 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13059 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | LIBS=$ac_check_lib_save_LIBS | 
 | 13061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 13063 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13064 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13065 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13066 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13067 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13068 | fi | 
 | 13069 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13070 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13071 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 13073 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13074 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13075 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13076 | else | 
 | 13077 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13078 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13080 | /* end confdefs.h.  */ | 
 | 13081 |  | 
 | 13082 | /* Override any GCC internal prototype to avoid an error. | 
 | 13083 |    Use char because int might match the return type of a GCC | 
 | 13084 |    builtin and then its argument prototype would still apply.  */ | 
 | 13085 | #ifdef __cplusplus | 
 | 13086 | extern "C" | 
 | 13087 | #endif | 
 | 13088 | char rl_completion_display_matches_hook (); | 
 | 13089 | int | 
 | 13090 | main () | 
 | 13091 | { | 
 | 13092 | return rl_completion_display_matches_hook (); | 
 | 13093 |   ; | 
 | 13094 |   return 0; | 
 | 13095 | } | 
 | 13096 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13098 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13101 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13103 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13104 | LIBS=$ac_check_lib_save_LIBS | 
 | 13105 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13107 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13108 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13109 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13110 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13111 |  | 
 | 13112 | fi | 
 | 13113 |  | 
 | 13114 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13115 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13117 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13118 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13119 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13120 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13121 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13122 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13124 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13126 | /* Override any GCC internal prototype to avoid an error. | 
 | 13127 |    Use char because int might match the return type of a GCC | 
 | 13128 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | #ifdef __cplusplus | 
 | 13130 | extern "C" | 
 | 13131 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | int | 
 | 13134 | main () | 
 | 13135 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13136 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 |   ; | 
 | 13138 |   return 0; | 
 | 13139 | } | 
 | 13140 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13141 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13143 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13145 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13146 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13147 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13148 | LIBS=$ac_check_lib_save_LIBS | 
 | 13149 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13151 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13152 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13153 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13154 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13155 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13156 | fi | 
 | 13157 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13158 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13159 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13161 | /* end confdefs.h.  */ | 
 | 13162 | #include <readline/readline.h> | 
 | 13163 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13164 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13165 |   have_readline=yes | 
 | 13166 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13167 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13168 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13169 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 13170 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13171 | if test $have_readline = yes | 
 | 13172 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13173 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13174 | /* end confdefs.h.  */ | 
 | 13175 | #include <readline/readline.h> | 
 | 13176 |  | 
 | 13177 | _ACEOF | 
 | 13178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13179 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13181 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13182 |  | 
 | 13183 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13184 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13185 |  | 
 | 13186 | fi | 
 | 13187 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13188 | # End of readline checks: restore LIBS | 
 | 13189 | LIBS=$LIBS_no_readline | 
 | 13190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13192 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13193 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13194 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13195 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13198 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13199 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13200 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13201 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13202 |  | 
 | 13203 | int main() | 
 | 13204 | { | 
 | 13205 | 	int val1 = nice(1); | 
 | 13206 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13207 | 		exit(0); | 
 | 13208 | 	exit(1); | 
 | 13209 | } | 
 | 13210 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13212 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13213 |   ac_cv_broken_nice=yes | 
 | 13214 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13216 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13217 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13218 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13219 | fi | 
 | 13220 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13221 | fi | 
 | 13222 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 13224 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13225 | if test "$ac_cv_broken_nice" = yes | 
 | 13226 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13228 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13229 |  | 
 | 13230 | fi | 
 | 13231 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 13233 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13234 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13235 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13236 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13237 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13238 |   ac_cv_broken_poll=no | 
 | 13239 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13240 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13241 | /* end confdefs.h.  */ | 
 | 13242 |  | 
 | 13243 | #include <poll.h> | 
 | 13244 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13245 | int main() | 
 | 13246 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13247 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13248 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13249 |  | 
 | 13250 |     close (42); | 
 | 13251 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13252 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13253 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13254 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13255 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13256 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13257 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13258 |         return 1; | 
 | 13259 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13260 |  | 
 | 13261 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13262 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13263 |   ac_cv_broken_poll=yes | 
 | 13264 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13265 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13266 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13268 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13269 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13270 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13271 | fi | 
 | 13272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 13274 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13275 | if test "$ac_cv_broken_poll" = yes | 
 | 13276 | then | 
 | 13277 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13278 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13279 |  | 
 | 13280 | fi | 
 | 13281 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13282 | # Before we can test tzset, we need to check if struct tm has a tm_zone | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13283 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 13284 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13285 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13286 | #include <$ac_cv_struct_tm> | 
 | 13287 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13288 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13289 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13290 |  | 
 | 13291 | cat >>confdefs.h <<_ACEOF | 
 | 13292 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 13293 | _ACEOF | 
 | 13294 |  | 
 | 13295 |  | 
 | 13296 | fi | 
 | 13297 |  | 
 | 13298 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 13299 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13300 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13301 |  | 
 | 13302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13303 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 13304 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13305 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13306 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13307 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13308 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13309 | fi | 
 | 13310 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13311 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13312 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13313 | _ACEOF | 
 | 13314 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13315 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 13316 | $as_echo_n "checking for tzname... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13317 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13318 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13319 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13320 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13321 | /* end confdefs.h.  */ | 
 | 13322 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13323 | #if !HAVE_DECL_TZNAME | 
 | 13324 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13325 | #endif | 
 | 13326 |  | 
 | 13327 | int | 
 | 13328 | main () | 
 | 13329 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13330 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13331 |   ; | 
 | 13332 |   return 0; | 
 | 13333 | } | 
 | 13334 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13335 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13336 |   ac_cv_var_tzname=yes | 
 | 13337 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13338 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13340 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13341 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13342 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 13344 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13345 |   if test $ac_cv_var_tzname = yes; then | 
 | 13346 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13347 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13348 |  | 
 | 13349 |   fi | 
 | 13350 | fi | 
 | 13351 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13352 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13353 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 13355 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13356 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13358 | else | 
 | 13359 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13360 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13361 |   ac_cv_working_tzset=no | 
 | 13362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13363 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13364 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13365 |  | 
 | 13366 | #include <stdlib.h> | 
 | 13367 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13368 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13369 |  | 
 | 13370 | #if HAVE_TZNAME | 
 | 13371 | extern char *tzname[]; | 
 | 13372 | #endif | 
 | 13373 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13374 | int main() | 
 | 13375 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13376 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 13377 | 	   do 'something' with localtime, but it works as documented | 
 | 13378 | 	   in the library reference and as expected by the test suite. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13379 | 	   This includes making sure that tzname is set properly if | 
 | 13380 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 13381 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13382 |  | 
 | 13383 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13384 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13385 | 	*/ | 
 | 13386 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13387 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13388 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 13389 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13390 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13391 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13392 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 13393 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13394 | #if HAVE_TZNAME | 
 | 13395 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 13396 | 	if (strcmp(tzname[0], "UTC") || | 
 | 13397 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 13398 | 	    exit(1); | 
 | 13399 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13400 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13401 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13402 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13403 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13404 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13405 | #if HAVE_TZNAME | 
 | 13406 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 13407 | 	    exit(1); | 
 | 13408 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13409 |  | 
 | 13410 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 13411 | 	tzset(); | 
 | 13412 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 13413 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13414 | #if HAVE_TZNAME | 
 | 13415 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 13416 | 	    exit(1); | 
 | 13417 | #endif | 
 | 13418 |  | 
 | 13419 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13420 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 13421 | 	    exit(1); | 
 | 13422 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 13423 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13424 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13425 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13426 | 	exit(0); | 
 | 13427 | } | 
 | 13428 |  | 
 | 13429 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13430 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13431 |   ac_cv_working_tzset=yes | 
 | 13432 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13433 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13434 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13436 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13437 | fi | 
 | 13438 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13439 | fi | 
 | 13440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 13442 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13443 | if test "$ac_cv_working_tzset" = yes | 
 | 13444 | then | 
 | 13445 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13446 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13447 |  | 
 | 13448 | fi | 
 | 13449 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13450 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 13452 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13453 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13454 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13455 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13456 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13457 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13458 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13459 | int | 
 | 13460 | main () | 
 | 13461 | { | 
 | 13462 |  | 
 | 13463 | struct stat st; | 
 | 13464 | st.st_mtim.tv_nsec = 1; | 
 | 13465 |  | 
 | 13466 |   ; | 
 | 13467 |   return 0; | 
 | 13468 | } | 
 | 13469 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13471 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13472 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13473 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13474 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13476 | fi | 
 | 13477 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 13479 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13480 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 13481 | then | 
 | 13482 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13483 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13484 |  | 
 | 13485 | fi | 
 | 13486 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13487 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 13489 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13490 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13491 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13492 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13493 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13494 | /* end confdefs.h.  */ | 
 | 13495 | #include <sys/stat.h> | 
 | 13496 | int | 
 | 13497 | main () | 
 | 13498 | { | 
 | 13499 |  | 
 | 13500 | struct stat st; | 
 | 13501 | st.st_mtimespec.tv_nsec = 1; | 
 | 13502 |  | 
 | 13503 |   ; | 
 | 13504 |   return 0; | 
 | 13505 | } | 
 | 13506 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13507 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13508 |   ac_cv_stat_tv_nsec2=yes | 
 | 13509 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13510 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13511 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13513 | fi | 
 | 13514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 13516 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13517 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 13518 | then | 
 | 13519 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13520 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13521 |  | 
 | 13522 | fi | 
 | 13523 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13524 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 13526 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13527 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13528 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13529 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13530 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13531 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13532 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | int | 
 | 13534 | main () | 
 | 13535 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13536 |  | 
 | 13537 |   int rtn; | 
 | 13538 |   rtn = mvwdelch(0,0,0); | 
 | 13539 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 |   ; | 
 | 13541 |   return 0; | 
 | 13542 | } | 
 | 13543 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13544 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13545 |   ac_cv_mvwdelch_is_expression=yes | 
 | 13546 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13547 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13548 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13550 | fi | 
 | 13551 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 13553 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13554 |  | 
 | 13555 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 13556 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13558 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13559 |  | 
 | 13560 | fi | 
 | 13561 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 13563 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13564 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13566 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13567 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13568 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13569 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | int | 
 | 13571 | main () | 
 | 13572 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13573 |  | 
 | 13574 |   WINDOW *w; | 
 | 13575 |   w->_flags = 0; | 
 | 13576 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 |   ; | 
 | 13578 |   return 0; | 
 | 13579 | } | 
 | 13580 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13581 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13582 |   ac_cv_window_has_flags=yes | 
 | 13583 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13584 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13585 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13587 | fi | 
 | 13588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 13590 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13591 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13592 |  | 
 | 13593 | if test "$ac_cv_window_has_flags" = yes | 
 | 13594 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13596 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13597 |  | 
 | 13598 | fi | 
 | 13599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 13601 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 13602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13603 | /* end confdefs.h.  */ | 
 | 13604 | #include <curses.h> | 
 | 13605 | int | 
 | 13606 | main () | 
 | 13607 | { | 
 | 13608 | void *x=is_term_resized | 
 | 13609 |   ; | 
 | 13610 |   return 0; | 
 | 13611 | } | 
 | 13612 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13614 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13615 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13616 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13617 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13618 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13619 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13620 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13621 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13622 |  | 
 | 13623 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13625 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 13627 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 13628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13629 | /* end confdefs.h.  */ | 
 | 13630 | #include <curses.h> | 
 | 13631 | int | 
 | 13632 | main () | 
 | 13633 | { | 
 | 13634 | void *x=resize_term | 
 | 13635 |   ; | 
 | 13636 |   return 0; | 
 | 13637 | } | 
 | 13638 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13639 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13640 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13641 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13642 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13643 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13644 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13645 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13646 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13647 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13648 |  | 
 | 13649 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 13653 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 13654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13655 | /* end confdefs.h.  */ | 
 | 13656 | #include <curses.h> | 
 | 13657 | int | 
 | 13658 | main () | 
 | 13659 | { | 
 | 13660 | void *x=resizeterm | 
 | 13661 |   ; | 
 | 13662 |   return 0; | 
 | 13663 | } | 
 | 13664 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13665 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13666 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13668 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13669 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13670 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13671 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13672 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13673 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13674 |  | 
 | 13675 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13677 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 13679 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13680 |  | 
 | 13681 | if test -r /dev/ptmx | 
 | 13682 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13684 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13686 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13687 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13689 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13690 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13691 | fi | 
 | 13692 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 13694 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13695 |  | 
 | 13696 | if test -r /dev/ptc | 
 | 13697 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13699 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13700 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13701 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13702 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13703 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13704 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13705 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13706 | fi | 
 | 13707 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13708 | if test "$have_long_long" = yes | 
 | 13709 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13710 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 13711 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13712 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13713 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13715 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13716 |   ac_cv_have_long_long_format=no | 
 | 13717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13718 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13719 | /* end confdefs.h.  */ | 
 | 13720 |  | 
 | 13721 |   #include <stdio.h> | 
 | 13722 |   #include <stddef.h> | 
 | 13723 |   #include <string.h> | 
 | 13724 |  | 
 | 13725 |   #ifdef HAVE_SYS_TYPES_H | 
 | 13726 |   #include <sys/types.h> | 
 | 13727 |   #endif | 
 | 13728 |  | 
 | 13729 |   int main() | 
 | 13730 |   { | 
 | 13731 |       char buffer[256]; | 
 | 13732 |  | 
 | 13733 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 13734 |           return 1; | 
 | 13735 |       if (strcmp(buffer, "123")) | 
 | 13736 |           return 1; | 
 | 13737 |  | 
 | 13738 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 13739 |           return 1; | 
 | 13740 |       if (strcmp(buffer, "-123")) | 
 | 13741 |           return 1; | 
 | 13742 |  | 
 | 13743 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 13744 |           return 1; | 
 | 13745 |       if (strcmp(buffer, "123")) | 
 | 13746 |           return 1; | 
 | 13747 |  | 
 | 13748 |       return 0; | 
 | 13749 |   } | 
 | 13750 |  | 
 | 13751 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13753 |   ac_cv_have_long_long_format=yes | 
 | 13754 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13755 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13756 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13757 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13758 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13759 | fi | 
 | 13760 |  | 
 | 13761 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13762 | fi | 
 | 13763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13764 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 13765 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13766 | fi | 
 | 13767 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13768 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13769 | then | 
 | 13770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13771 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13772 |  | 
 | 13773 | fi | 
 | 13774 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13775 | if test $ac_sys_system = Darwin | 
 | 13776 | then | 
 | 13777 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 13778 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13779 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 13781 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13782 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13783 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13784 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13785 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13786 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 13787 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13789 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13790 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13791 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13792 | #include <stdio.h> | 
 | 13793 | #include <stddef.h> | 
 | 13794 | #include <string.h> | 
 | 13795 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13796 | #ifdef HAVE_SYS_TYPES_H | 
 | 13797 | #include <sys/types.h> | 
 | 13798 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13799 |  | 
 | 13800 | #ifdef HAVE_SSIZE_T | 
 | 13801 | typedef ssize_t Py_ssize_t; | 
 | 13802 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 13803 | typedef long Py_ssize_t; | 
 | 13804 | #else | 
 | 13805 | typedef int Py_ssize_t; | 
 | 13806 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13807 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13808 | int main() | 
 | 13809 | { | 
 | 13810 |     char buffer[256]; | 
 | 13811 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13812 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 13813 |        	return 1; | 
 | 13814 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13815 |     if (strcmp(buffer, "123")) | 
 | 13816 | 	return 1; | 
 | 13817 |  | 
 | 13818 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 13819 |        	return 1; | 
 | 13820 |  | 
 | 13821 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13822 | 	return 1; | 
 | 13823 |  | 
 | 13824 |     return 0; | 
 | 13825 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13826 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13827 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13828 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13829 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13830 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13831 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13832 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13834 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13835 | fi | 
 | 13836 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13837 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 13839 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13840 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13842 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13843 |  | 
 | 13844 | fi | 
 | 13845 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13846 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13847 | #ifdef HAVE_SYS_TYPES_H | 
 | 13848 | #include <sys/types.h> | 
 | 13849 | #endif | 
 | 13850 | #ifdef HAVE_SYS_SOCKET_H | 
 | 13851 | #include <sys/socket.h> | 
 | 13852 | #endif | 
 | 13853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13854 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13855 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13856 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13858 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13859 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13860 |  | 
 | 13861 | fi | 
 | 13862 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13863 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 13865 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13866 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13867 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13868 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13869 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13870 |   ac_cv_broken_mbstowcs=no | 
 | 13871 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13872 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13873 | /* end confdefs.h.  */ | 
 | 13874 |  | 
 | 13875 | #include<stdlib.h> | 
 | 13876 | int main() { | 
 | 13877 |     size_t len = -1; | 
 | 13878 |     const char *str = "text"; | 
 | 13879 |     len = mbstowcs(NULL, str, 0); | 
 | 13880 |     return (len != 4); | 
 | 13881 | } | 
 | 13882 |  | 
 | 13883 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13884 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13885 |   ac_cv_broken_mbstowcs=no | 
 | 13886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13888 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13890 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13891 | fi | 
 | 13892 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13893 | fi | 
 | 13894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 13896 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13897 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 13898 | then | 
 | 13899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13900 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13901 |  | 
 | 13902 | fi | 
 | 13903 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 13905 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13906 | if ${ac_cv_computed_gotos+:} false; then : | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13907 |   $as_echo_n "(cached) " >&6 | 
 | 13908 | else | 
 | 13909 |   if test "$cross_compiling" = yes; then : | 
 | 13910 |   ac_cv_computed_gotos=no | 
 | 13911 | else | 
 | 13912 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13913 | /* end confdefs.h.  */ | 
 | 13914 |  | 
 | 13915 | int main(int argc, char **argv) | 
 | 13916 | { | 
 | 13917 |     static void *targets[1] = { &&LABEL1 }; | 
 | 13918 |     goto LABEL2; | 
 | 13919 | LABEL1: | 
 | 13920 |     return 0; | 
 | 13921 | LABEL2: | 
 | 13922 |     goto *targets[0]; | 
 | 13923 |     return 1; | 
 | 13924 | } | 
 | 13925 |  | 
 | 13926 | _ACEOF | 
 | 13927 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 13928 |   ac_cv_computed_gotos=yes | 
 | 13929 | else | 
 | 13930 |   ac_cv_computed_gotos=no | 
 | 13931 | fi | 
 | 13932 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13933 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 13934 | fi | 
 | 13935 |  | 
 | 13936 | fi | 
 | 13937 |  | 
 | 13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 13939 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 13940 | if test "$ac_cv_computed_gotos" = yes | 
 | 13941 | then | 
 | 13942 |  | 
 | 13943 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 13944 |  | 
 | 13945 | fi | 
 | 13946 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13947 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 13949 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13950 |  | 
 | 13951 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13952 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13953 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13954 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13955 | then | 
 | 13956 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13957 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13959 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13960 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13961 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13962 | if test "$withval" = no | 
 | 13963 | then | 
 | 13964 |  | 
 | 13965 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 13966 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13967 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13968 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13969 | fi | 
 | 13970 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13971 | else | 
 | 13972 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 13973 | $as_echo "no value specified" >&6; } | 
 | 13974 | fi | 
 | 13975 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13976 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 13977 | case $ac_sys_system in | 
 | 13978 | AIX*) | 
 | 13979 |  | 
 | 13980 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 13981 |  ;; | 
 | 13982 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13983 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13984 |  | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13985 | case $ac_sys_system in | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13986 |   OSF*) as_fn_error $? "OSF* systems are deprecated unless somebody volunteers. Check http://bugs.python.org/issue8606" "$LINENO" 5 ;; | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13987 | esac | 
 | 13988 |  | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13989 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13990 | if test "x$ac_cv_func_pipe2" = xyes; then : | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13991 |  | 
 | 13992 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h | 
 | 13993 |  | 
 | 13994 | fi | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13995 |  | 
 | 13996 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 13997 |  | 
 | 13998 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13999 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 14000 | do | 
 | 14001 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 14002 | done | 
 | 14003 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14004 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14005 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 14007 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14008 | for dir in $SRCDIRS; do | 
 | 14009 |     if test ! -d $dir; then | 
 | 14010 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14011 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14012 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 14014 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14015 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14016 | # generate output files | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14017 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 14018 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14019 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 14020 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14022 | # This file is a shell script that caches the results of configure | 
 | 14023 | # tests run on this system so they can be shared between configure | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | # scripts and configure runs, see configure's option --config-cache. | 
 | 14025 | # It is not useful on other systems.  If it contains results you don't | 
 | 14026 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14027 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | # config.status only pays attention to the cache file if you give it | 
 | 14029 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14030 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14031 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14032 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 14033 | # following values. | 
 | 14034 |  | 
 | 14035 | _ACEOF | 
 | 14036 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14037 | # The following way of writing the cache mishandles newlines in values, | 
 | 14038 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14039 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14040 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 14041 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14042 | ( | 
 | 14043 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 14044 |     eval ac_val=\$$ac_var | 
 | 14045 |     case $ac_val in #( | 
 | 14046 |     *${as_nl}*) | 
 | 14047 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14048 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 14049 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14050 |       esac | 
 | 14051 |       case $ac_var in #( | 
 | 14052 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14053 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 14054 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14055 |       esac ;; | 
 | 14056 |     esac | 
 | 14057 |   done | 
 | 14058 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14060 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 14061 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14062 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 14063 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14065 | 	"s/'/'\\\\''/g; | 
 | 14066 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14067 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 |     *) | 
 | 14069 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14070 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14072 |     esac | | 
 | 14073 |     sort | 
 | 14074 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14075 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14076 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14078 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14079 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 14080 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14081 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 14082 |      :end' >>confcache | 
 | 14083 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 14084 |   if test -w "$cache_file"; then | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14085 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 14087 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14088 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14089 | 	cat confcache >"$cache_file" | 
 | 14090 |       else | 
 | 14091 |         case $cache_file in #( | 
 | 14092 |         */* | ?:*) | 
 | 14093 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14094 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14095 |         *) | 
 | 14096 | 	  mv -f confcache "$cache_file" ;; | 
 | 14097 | 	esac | 
 | 14098 |       fi | 
 | 14099 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14100 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14101 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14102 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14103 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14104 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14105 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14106 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14107 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14108 | # Let make expand exec_prefix. | 
 | 14109 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14110 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14111 | DEFS=-DHAVE_CONFIG_H | 
 | 14112 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14113 | ac_libobjs= | 
 | 14114 | ac_ltlibobjs= | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14115 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14116 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14117 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14118 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14119 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14120 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14121 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14122 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14123 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14124 | done | 
 | 14125 | LIBOBJS=$ac_libobjs | 
 | 14126 |  | 
 | 14127 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14128 |  | 
 | 14129 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14130 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14131 |  | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14132 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14133 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14134 | ac_clean_files_save=$ac_clean_files | 
 | 14135 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 14137 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 14138 | as_write_fail=0 | 
 | 14139 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | #! $SHELL | 
 | 14141 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14142 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14143 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14145 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14147 | ac_cs_recheck=false | 
 | 14148 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14150 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 14151 | export SHELL | 
 | 14152 | _ASEOF | 
 | 14153 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 14154 | ## -------------------- ## | 
 | 14155 | ## M4sh Initialization. ## | 
 | 14156 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14157 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14158 | # Be more Bourne compatible | 
 | 14159 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14160 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 |   emulate sh | 
 | 14162 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14163 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14164 |   # is contrary to our usage.  Disable this feature. | 
 | 14165 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14166 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 |   case `(set -o) 2>/dev/null` in #( | 
 | 14169 |   *posix*) : | 
 | 14170 |     set -o posix ;; #( | 
 | 14171 |   *) : | 
 | 14172 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14173 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14174 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14175 |  | 
 | 14176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14177 | as_nl=' | 
 | 14178 | ' | 
 | 14179 | export as_nl | 
 | 14180 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 14181 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 14182 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14183 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14184 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 14185 | # but without wasting forks for bash or zsh. | 
 | 14186 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 14187 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14188 |   as_echo='print -r --' | 
 | 14189 |   as_echo_n='print -rn --' | 
 | 14190 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14191 |   as_echo='printf %s\n' | 
 | 14192 |   as_echo_n='printf %s' | 
 | 14193 | else | 
 | 14194 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 14195 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 14196 |     as_echo_n='/usr/ucb/echo -n' | 
 | 14197 |   else | 
 | 14198 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 14199 |     as_echo_n_body='eval | 
 | 14200 |       arg=$1; | 
 | 14201 |       case $arg in #( | 
 | 14202 |       *"$as_nl"*) | 
 | 14203 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 14204 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 14205 |       esac; | 
 | 14206 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 14207 |     ' | 
 | 14208 |     export as_echo_n_body | 
 | 14209 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 14210 |   fi | 
 | 14211 |   export as_echo_body | 
 | 14212 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 14213 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 |  | 
 | 14215 | # The user is always right. | 
 | 14216 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14217 |   PATH_SEPARATOR=: | 
 | 14218 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 14219 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 14220 |       PATH_SEPARATOR=';' | 
 | 14221 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14222 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14223 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14224 |  | 
 | 14225 | # IFS | 
 | 14226 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 14227 | # there to prevent editors from complaining about space-tab. | 
 | 14228 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 14229 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14230 | IFS=" ""	$as_nl" | 
 | 14231 |  | 
 | 14232 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14233 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14234 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14235 |   *[\\/]* ) as_myself=$0 ;; | 
 | 14236 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14237 | for as_dir in $PATH | 
 | 14238 | do | 
 | 14239 |   IFS=$as_save_IFS | 
 | 14240 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14241 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 14242 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14243 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14245 |      ;; | 
 | 14246 | esac | 
 | 14247 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 14248 | # in which case we are not to be found in the path. | 
 | 14249 | if test "x$as_myself" = x; then | 
 | 14250 |   as_myself=$0 | 
 | 14251 | fi | 
 | 14252 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14253 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 14254 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14255 | fi | 
 | 14256 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14257 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 14258 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 14259 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 14260 | # trigger a bug in pdksh 5.2.14. | 
 | 14261 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 14262 | do eval test x\${$as_var+set} = xset \ | 
 | 14263 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14264 | done | 
 | 14265 | PS1='$ ' | 
 | 14266 | PS2='> ' | 
 | 14267 | PS4='+ ' | 
 | 14268 |  | 
 | 14269 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14270 | LC_ALL=C | 
 | 14271 | export LC_ALL | 
 | 14272 | LANGUAGE=C | 
 | 14273 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14274 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14275 | # CDPATH. | 
 | 14276 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 14277 |  | 
 | 14278 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14279 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 14280 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14281 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 14282 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14283 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14284 | as_fn_error () | 
 | 14285 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14286 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 14287 |   if test "$4"; then | 
 | 14288 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 14289 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14290 |   fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14291 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14292 |   as_fn_exit $as_status | 
 | 14293 | } # as_fn_error | 
 | 14294 |  | 
 | 14295 |  | 
 | 14296 | # as_fn_set_status STATUS | 
 | 14297 | # ----------------------- | 
 | 14298 | # Set $? to STATUS, without forking. | 
 | 14299 | as_fn_set_status () | 
 | 14300 | { | 
 | 14301 |   return $1 | 
 | 14302 | } # as_fn_set_status | 
 | 14303 |  | 
 | 14304 | # as_fn_exit STATUS | 
 | 14305 | # ----------------- | 
 | 14306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 14307 | as_fn_exit () | 
 | 14308 | { | 
 | 14309 |   set +e | 
 | 14310 |   as_fn_set_status $1 | 
 | 14311 |   exit $1 | 
 | 14312 | } # as_fn_exit | 
 | 14313 |  | 
 | 14314 | # as_fn_unset VAR | 
 | 14315 | # --------------- | 
 | 14316 | # Portably unset VAR. | 
 | 14317 | as_fn_unset () | 
 | 14318 | { | 
 | 14319 |   { eval $1=; unset $1;} | 
 | 14320 | } | 
 | 14321 | as_unset=as_fn_unset | 
 | 14322 | # as_fn_append VAR VALUE | 
 | 14323 | # ---------------------- | 
 | 14324 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 14325 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 14326 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 14327 | # implementations. | 
 | 14328 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 14329 |   eval 'as_fn_append () | 
 | 14330 |   { | 
 | 14331 |     eval $1+=\$2 | 
 | 14332 |   }' | 
 | 14333 | else | 
 | 14334 |   as_fn_append () | 
 | 14335 |   { | 
 | 14336 |     eval $1=\$$1\$2 | 
 | 14337 |   } | 
 | 14338 | fi # as_fn_append | 
 | 14339 |  | 
 | 14340 | # as_fn_arith ARG... | 
 | 14341 | # ------------------ | 
 | 14342 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 14343 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 14344 | # must be portable across $(()) and expr. | 
 | 14345 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 14346 |   eval 'as_fn_arith () | 
 | 14347 |   { | 
 | 14348 |     as_val=$(( $* )) | 
 | 14349 |   }' | 
 | 14350 | else | 
 | 14351 |   as_fn_arith () | 
 | 14352 |   { | 
 | 14353 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 14354 |   } | 
 | 14355 | fi # as_fn_arith | 
 | 14356 |  | 
 | 14357 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14358 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 14359 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 14360 |   as_expr=expr | 
 | 14361 | else | 
 | 14362 |   as_expr=false | 
 | 14363 | fi | 
 | 14364 |  | 
 | 14365 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 14366 |   as_basename=basename | 
 | 14367 | else | 
 | 14368 |   as_basename=false | 
 | 14369 | fi | 
 | 14370 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14371 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 14372 |   as_dirname=dirname | 
 | 14373 | else | 
 | 14374 |   as_dirname=false | 
 | 14375 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14376 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14377 | as_me=`$as_basename -- "$0" || | 
 | 14378 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 14379 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 14380 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14381 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14382 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 14383 | 	    s//\1/ | 
 | 14384 | 	    q | 
 | 14385 | 	  } | 
 | 14386 | 	  /^X\/\(\/\/\)$/{ | 
 | 14387 | 	    s//\1/ | 
 | 14388 | 	    q | 
 | 14389 | 	  } | 
 | 14390 | 	  /^X\/\(\/\).*/{ | 
 | 14391 | 	    s//\1/ | 
 | 14392 | 	    q | 
 | 14393 | 	  } | 
 | 14394 | 	  s/.*/./; q'` | 
 | 14395 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14396 | # Avoid depending upon Character Ranges. | 
 | 14397 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 14398 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 14399 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 14400 | as_cr_digits='0123456789' | 
 | 14401 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14402 |  | 
 | 14403 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14404 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14405 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14406 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14407 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14408 |   xy)  ECHO_C='\c';; | 
 | 14409 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 14410 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14411 |   esac;; | 
 | 14412 | *) | 
 | 14413 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14414 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14415 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14416 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14417 | if test -d conf$$.dir; then | 
 | 14418 |   rm -f conf$$.dir/conf$$.file | 
 | 14419 | else | 
 | 14420 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14421 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14422 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14423 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 14424 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 14425 |     as_ln_s='ln -s' | 
 | 14426 |     # ... but there are two gotchas: | 
 | 14427 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 14428 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 14429 |     # In both cases, we have to default to `cp -p'. | 
 | 14430 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 14431 |       as_ln_s='cp -p' | 
 | 14432 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 14433 |     as_ln_s=ln | 
 | 14434 |   else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 |     as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14436 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | else | 
 | 14438 |   as_ln_s='cp -p' | 
 | 14439 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 14441 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14442 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 |  | 
 | 14444 | # as_fn_mkdir_p | 
 | 14445 | # ------------- | 
 | 14446 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 14447 | as_fn_mkdir_p () | 
 | 14448 | { | 
 | 14449 |  | 
 | 14450 |   case $as_dir in #( | 
 | 14451 |   -*) as_dir=./$as_dir;; | 
 | 14452 |   esac | 
 | 14453 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 14454 |     as_dirs= | 
 | 14455 |     while :; do | 
 | 14456 |       case $as_dir in #( | 
 | 14457 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 14458 |       *) as_qdir=$as_dir;; | 
 | 14459 |       esac | 
 | 14460 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 14461 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 14462 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 14463 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 14464 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 14465 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 14466 | $as_echo X"$as_dir" | | 
 | 14467 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 14468 | 	    s//\1/ | 
 | 14469 | 	    q | 
 | 14470 | 	  } | 
 | 14471 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 14472 | 	    s//\1/ | 
 | 14473 | 	    q | 
 | 14474 | 	  } | 
 | 14475 | 	  /^X\(\/\/\)$/{ | 
 | 14476 | 	    s//\1/ | 
 | 14477 | 	    q | 
 | 14478 | 	  } | 
 | 14479 | 	  /^X\(\/\).*/{ | 
 | 14480 | 	    s//\1/ | 
 | 14481 | 	    q | 
 | 14482 | 	  } | 
 | 14483 | 	  s/.*/./; q'` | 
 | 14484 |       test -d "$as_dir" && break | 
 | 14485 |     done | 
 | 14486 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14487 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14488 |  | 
 | 14489 |  | 
 | 14490 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14491 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14492 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14493 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14494 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14495 |   as_mkdir_p=false | 
 | 14496 | fi | 
 | 14497 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14498 | if test -x / >/dev/null 2>&1; then | 
 | 14499 |   as_test_x='test -x' | 
 | 14500 | else | 
 | 14501 |   if ls -dL / >/dev/null 2>&1; then | 
 | 14502 |     as_ls_L_option=L | 
 | 14503 |   else | 
 | 14504 |     as_ls_L_option= | 
 | 14505 |   fi | 
 | 14506 |   as_test_x=' | 
 | 14507 |     eval sh -c '\'' | 
 | 14508 |       if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14509 | 	test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14510 |       else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14511 | 	case $1 in #( | 
 | 14512 | 	-*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14513 | 	esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14515 | 	???[sx]*):;;*)false;;esac;fi | 
 | 14516 |     '\'' sh | 
 | 14517 |   ' | 
 | 14518 | fi | 
 | 14519 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 |  | 
 | 14521 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14522 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 |  | 
 | 14524 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14525 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14526 |  | 
 | 14527 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | ## ----------------------------------- ## | 
 | 14530 | ## Main body of $CONFIG_STATUS script. ## | 
 | 14531 | ## ----------------------------------- ## | 
 | 14532 | _ASEOF | 
 | 14533 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14535 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14536 | # Save the log message, to keep $0 and so on meaningful, and to | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14538 | # values after options handling. | 
 | 14539 | ac_log=" | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14540 | This file was extended by python $as_me 3.2, which was | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14541 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 |  | 
 | 14543 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 14544 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 14545 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 14546 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 14547 |   $ $0 $@ | 
 | 14548 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14549 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 14550 | " | 
 | 14551 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 | _ACEOF | 
 | 14553 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14554 | case $ac_config_files in *" | 
 | 14555 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 14556 | esac | 
 | 14557 |  | 
 | 14558 | case $ac_config_headers in *" | 
 | 14559 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 14560 | esac | 
 | 14561 |  | 
 | 14562 |  | 
 | 14563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 14565 | config_files="$ac_config_files" | 
 | 14566 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14568 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14571 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14572 | \`$as_me' instantiates files and other configuration actions | 
 | 14573 | from templates according to the current configuration.  Unless the files | 
 | 14574 | and actions are specified as TAGs, all are instantiated by default. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14576 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 |  | 
 | 14578 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14579 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14580 |       --config     print configuration, then exit | 
 | 14581 |   -q, --quiet, --silent | 
 | 14582 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 |   -d, --debug      don't remove temporary files | 
 | 14584 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14585 |       --file=FILE[:TEMPLATE] | 
 | 14586 |                    instantiate the configuration file FILE | 
 | 14587 |       --header=FILE[:TEMPLATE] | 
 | 14588 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14589 |  | 
 | 14590 | Configuration files: | 
 | 14591 | $config_files | 
 | 14592 |  | 
 | 14593 | Configuration headers: | 
 | 14594 | $config_headers | 
 | 14595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14596 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14597 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14598 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14600 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | ac_cs_version="\\ | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14602 | python config.status 3.2 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14603 | configured by $0, generated by GNU Autoconf 2.68, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14604 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14605 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14606 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14607 | This config.status script is free software; the Free Software Foundation | 
 | 14608 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14609 |  | 
 | 14610 | ac_pwd='$ac_pwd' | 
 | 14611 | srcdir='$srcdir' | 
 | 14612 | INSTALL='$INSTALL' | 
| Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 14613 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14614 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14615 | _ACEOF | 
 | 14616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14617 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14618 | # The default lists apply if the user does not specify any file. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | ac_need_defaults=: | 
 | 14620 | while test $# != 0 | 
 | 14621 | do | 
 | 14622 |   case $1 in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14623 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14624 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14625 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14626 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 |     ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14628 |   --*=) | 
 | 14629 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 14630 |     ac_optarg= | 
 | 14631 |     ac_shift=: | 
 | 14632 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14633 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14634 |     ac_option=$1 | 
 | 14635 |     ac_optarg=$2 | 
 | 14636 |     ac_shift=shift | 
 | 14637 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 |   esac | 
 | 14639 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14640 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14642 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 14643 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14644 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14645 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 14646 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 14647 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14648 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14649 |     debug=: ;; | 
 | 14650 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14651 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14652 |     case $ac_optarg in | 
 | 14653 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14654 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14655 |     esac | 
 | 14656 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14657 |     ac_need_defaults=false;; | 
 | 14658 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14659 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14660 |     case $ac_optarg in | 
 | 14661 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 14662 |     esac | 
 | 14663 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14664 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14665 |   --he | --h) | 
 | 14666 |     # Conflict between --help and --header | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14667 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14668 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14669 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14670 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14671 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 14672 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 14673 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 |  | 
 | 14675 |   # This is an error. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14676 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14677 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14679 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14680 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 |  | 
 | 14682 |   esac | 
 | 14683 |   shift | 
 | 14684 | done | 
 | 14685 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14686 | ac_configure_extra_args= | 
 | 14687 |  | 
 | 14688 | if $ac_cs_silent; then | 
 | 14689 |   exec 6>/dev/null | 
 | 14690 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 14691 | fi | 
 | 14692 |  | 
 | 14693 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14694 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14695 | if \$ac_cs_recheck; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14696 |   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 14697 |   shift | 
 | 14698 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 14699 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14700 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14701 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14702 | fi | 
 | 14703 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14705 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14706 | exec 5>>config.log | 
 | 14707 | { | 
 | 14708 |   echo | 
 | 14709 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 14710 | ## Running $as_me. ## | 
 | 14711 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14712 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14713 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14714 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14715 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14717 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14718 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14720 |  | 
 | 14721 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14722 | for ac_config_target in $ac_config_targets | 
 | 14723 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14724 |   case $ac_config_target in | 
 | 14725 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 14726 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 14727 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14728 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 14729 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14730 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 14731 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14732 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14733 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14734 |  | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14735 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 |   esac | 
 | 14737 | done | 
 | 14738 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14739 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 14741 | # then the envvar interface is used.  Set only those that are not. | 
 | 14742 | # We use the long form for the default assignment because of an extremely | 
 | 14743 | # bizarre bug on SunOS 4.1.3. | 
 | 14744 | if $ac_need_defaults; then | 
 | 14745 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 14746 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 14747 | fi | 
 | 14748 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14749 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14750 | # simply because there is no reason against having it here, and in addition, | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14751 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14752 | # Hook for its removal unless debugging. | 
 | 14753 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 14754 | # after its creation but before its name has been assigned to `$tmp'. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14755 | $debug || | 
 | 14756 | { | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14757 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14758 |   trap 'exit_status=$? | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14759 |   : "${ac_tmp:=$tmp}" | 
 | 14760 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14761 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14762 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14765 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14767 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14768 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | }  || | 
 | 14770 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14771 |   tmp=./conf$$-$RANDOM | 
 | 14772 |   (umask 077 && mkdir "$tmp") | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14773 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14774 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14776 | # Set up the scripts for CONFIG_FILES section. | 
 | 14777 | # No need to generate them if there are no CONFIG_FILES. | 
 | 14778 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14779 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14780 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14781 |  | 
 | 14782 | ac_cr=`echo X | tr X '\015'` | 
 | 14783 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 14784 | # But we know of no other shell where ac_cr would be empty at this | 
 | 14785 | # point, so we can use a bashism as a fallback. | 
 | 14786 | if test "x$ac_cr" = x; then | 
 | 14787 |   eval ac_cr=\$\'\\r\' | 
 | 14788 | fi | 
 | 14789 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 14790 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14791 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14792 | else | 
 | 14793 |   ac_cs_awk_cr=$ac_cr | 
 | 14794 | fi | 
 | 14795 |  | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14796 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | _ACEOF | 
 | 14798 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14800 | { | 
 | 14801 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 14802 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 14803 |   echo "_ACEOF" | 
 | 14804 | } >conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14805 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 14806 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14807 | ac_delim='%!_!# ' | 
 | 14808 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 |   . ./conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14810 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14812 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 14813 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14814 |     break | 
 | 14815 |   elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14816 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14817 |   else | 
 | 14818 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14820 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14822 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14823 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14824 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14825 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14826 | sed -n ' | 
 | 14827 | h | 
 | 14828 | s/^/S["/; s/!.*/"]=/ | 
 | 14829 | p | 
 | 14830 | g | 
 | 14831 | s/^[^!]*!// | 
 | 14832 | :repl | 
 | 14833 | t repl | 
 | 14834 | s/'"$ac_delim"'$// | 
 | 14835 | t delim | 
 | 14836 | :nl | 
 | 14837 | h | 
 | 14838 | s/\(.\{148\}\)..*/\1/ | 
 | 14839 | t more1 | 
 | 14840 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 14841 | p | 
 | 14842 | n | 
 | 14843 | b repl | 
 | 14844 | :more1 | 
 | 14845 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14846 | p | 
 | 14847 | g | 
 | 14848 | s/.\{148\}// | 
 | 14849 | t nl | 
 | 14850 | :delim | 
 | 14851 | h | 
 | 14852 | s/\(.\{148\}\)..*/\1/ | 
 | 14853 | t more2 | 
 | 14854 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 14855 | p | 
 | 14856 | b | 
 | 14857 | :more2 | 
 | 14858 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 14859 | p | 
 | 14860 | g | 
 | 14861 | s/.\{148\}// | 
 | 14862 | t delim | 
 | 14863 | ' <conf$$subs.awk | sed ' | 
 | 14864 | /^[^""]/{ | 
 | 14865 |   N | 
 | 14866 |   s/\n// | 
 | 14867 | } | 
 | 14868 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 14869 | rm -f conf$$subs.awk | 
 | 14870 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 14871 | _ACAWK | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14872 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14873 |   for (key in S) S_is_set[key] = 1 | 
 | 14874 |   FS = "" | 
 | 14875 |  | 
 | 14876 | } | 
 | 14877 | { | 
 | 14878 |   line = $ 0 | 
 | 14879 |   nfields = split(line, field, "@") | 
 | 14880 |   substed = 0 | 
 | 14881 |   len = length(field[1]) | 
 | 14882 |   for (i = 2; i < nfields; i++) { | 
 | 14883 |     key = field[i] | 
 | 14884 |     keylen = length(key) | 
 | 14885 |     if (S_is_set[key]) { | 
 | 14886 |       value = S[key] | 
 | 14887 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 14888 |       len += length(value) + length(field[++i]) | 
 | 14889 |       substed = 1 | 
 | 14890 |     } else | 
 | 14891 |       len += 1 + keylen | 
 | 14892 |   } | 
 | 14893 |  | 
 | 14894 |   print line | 
 | 14895 | } | 
 | 14896 |  | 
 | 14897 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14898 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 14900 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 14901 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 14902 | else | 
 | 14903 |   cat | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14904 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14905 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14906 | _ACEOF | 
 | 14907 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14908 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 14909 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14910 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 14911 | # (actually we leave an empty line to preserve line numbers). | 
 | 14912 | if test "x$srcdir" = x.; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14913 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 14914 | h | 
 | 14915 | s/// | 
 | 14916 | s/^/:/ | 
 | 14917 | s/[	 ]*$/:/ | 
 | 14918 | s/:\$(srcdir):/:/g | 
 | 14919 | s/:\${srcdir}:/:/g | 
 | 14920 | s/:@srcdir@:/:/g | 
 | 14921 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14922 | s/:*$// | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14923 | x | 
 | 14924 | s/\(=[	 ]*\).*/\1/ | 
 | 14925 | G | 
 | 14926 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14927 | s/^[^=]*=[	 ]*$// | 
 | 14928 | }' | 
 | 14929 | fi | 
 | 14930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14931 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | fi # test -n "$CONFIG_FILES" | 
 | 14933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14934 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 14935 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 14936 | # This happens for instance with `./config.status Makefile'. | 
 | 14937 | if test -n "$CONFIG_HEADERS"; then | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14938 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14939 | BEGIN { | 
 | 14940 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14941 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14942 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 14943 | # here-document in config.status, that substitutes the proper values into | 
 | 14944 | # config.h.in to produce config.h. | 
 | 14945 |  | 
 | 14946 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 14947 | # handling of long lines. | 
 | 14948 | ac_delim='%!_!# ' | 
 | 14949 | for ac_last_try in false false :; do | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14950 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 14951 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14952 |     break | 
 | 14953 |   elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14954 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14955 |   else | 
 | 14956 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 14957 |   fi | 
 | 14958 | done | 
 | 14959 |  | 
 | 14960 | # For the awk script, D is an array of macro values keyed by name, | 
 | 14961 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 14962 | # newline sequences. | 
 | 14963 |  | 
 | 14964 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 14965 | sed -n ' | 
 | 14966 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 14967 | t rset | 
 | 14968 | :rset | 
 | 14969 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 14970 | t def | 
 | 14971 | d | 
 | 14972 | :def | 
 | 14973 | s/\\$// | 
 | 14974 | t bsnl | 
 | 14975 | s/["\\]/\\&/g | 
 | 14976 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 14977 | D["\1"]=" \3"/p | 
 | 14978 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 14979 | d | 
 | 14980 | :bsnl | 
 | 14981 | s/["\\]/\\&/g | 
 | 14982 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 14983 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 14984 | t cont | 
 | 14985 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 14986 | t cont | 
 | 14987 | d | 
 | 14988 | :cont | 
 | 14989 | n | 
 | 14990 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 14991 | t clear | 
 | 14992 | :clear | 
 | 14993 | s/\\$// | 
 | 14994 | t bsnlc | 
 | 14995 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 14996 | d | 
 | 14997 | :bsnlc | 
 | 14998 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 14999 | b cont | 
 | 15000 | ' <confdefs.h | sed ' | 
 | 15001 | s/'"$ac_delim"'/"\\\ | 
 | 15002 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15003 |  | 
 | 15004 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15005 |   for (key in D) D_is_set[key] = 1 | 
 | 15006 |   FS = "" | 
 | 15007 | } | 
 | 15008 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 15009 |   line = \$ 0 | 
 | 15010 |   split(line, arg, " ") | 
 | 15011 |   if (arg[1] == "#") { | 
 | 15012 |     defundef = arg[2] | 
 | 15013 |     mac1 = arg[3] | 
 | 15014 |   } else { | 
 | 15015 |     defundef = substr(arg[1], 2) | 
 | 15016 |     mac1 = arg[2] | 
 | 15017 |   } | 
 | 15018 |   split(mac1, mac2, "(") #) | 
 | 15019 |   macro = mac2[1] | 
 | 15020 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 15021 |   if (D_is_set[macro]) { | 
 | 15022 |     # Preserve the white space surrounding the "#". | 
 | 15023 |     print prefix "define", macro P[macro] D[macro] | 
 | 15024 |     next | 
 | 15025 |   } else { | 
 | 15026 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 15027 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 15028 |     # on some systems where configure will not decide to define it. | 
 | 15029 |     if (defundef == "undef") { | 
 | 15030 |       print "/*", prefix defundef, macro, "*/" | 
 | 15031 |       next | 
 | 15032 |     } | 
 | 15033 |   } | 
 | 15034 | } | 
 | 15035 | { print } | 
 | 15036 | _ACAWK | 
 | 15037 | _ACEOF | 
 | 15038 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15039 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | fi # test -n "$CONFIG_HEADERS" | 
 | 15041 |  | 
 | 15042 |  | 
 | 15043 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 15044 | shift | 
 | 15045 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15046 | do | 
 | 15047 |   case $ac_tag in | 
 | 15048 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 15049 |   esac | 
 | 15050 |   case $ac_mode$ac_tag in | 
 | 15051 |   :[FHL]*:*);; | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15052 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15053 |   :[FH]-) ac_tag=-:-;; | 
 | 15054 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 15055 |   esac | 
 | 15056 |   ac_save_IFS=$IFS | 
 | 15057 |   IFS=: | 
 | 15058 |   set x $ac_tag | 
 | 15059 |   IFS=$ac_save_IFS | 
 | 15060 |   shift | 
 | 15061 |   ac_file=$1 | 
 | 15062 |   shift | 
 | 15063 |  | 
 | 15064 |   case $ac_mode in | 
 | 15065 |   :L) ac_source=$1;; | 
 | 15066 |   :[FH]) | 
 | 15067 |     ac_file_inputs= | 
 | 15068 |     for ac_f | 
 | 15069 |     do | 
 | 15070 |       case $ac_f in | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15071 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15072 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 15073 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 15074 | 	 # because $ac_f cannot contain `:'. | 
 | 15075 | 	 test -f "$ac_f" || | 
 | 15076 | 	   case $ac_f in | 
 | 15077 | 	   [\\/$]*) false;; | 
 | 15078 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 15079 | 	   esac || | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15080 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15081 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15082 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 15083 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15084 |     done | 
 | 15085 |  | 
 | 15086 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 15087 |     # use $as_me), people would be surprised to read: | 
 | 15088 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15089 |     configure_input='Generated from '` | 
 | 15090 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15091 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15092 |     if test x"$ac_file" != x-; then | 
 | 15093 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15094 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15095 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15096 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15097 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15098 |     case $configure_input in #( | 
 | 15099 |     *\&* | *\|* | *\\* ) | 
 | 15100 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15101 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15102 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15103 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15104 |  | 
 | 15105 |     case $ac_tag in | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15106 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15107 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15108 |     esac | 
 | 15109 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 |   esac | 
 | 15111 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15112 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15114 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15115 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15116 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15117 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15118 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15119 | 	    s//\1/ | 
 | 15120 | 	    q | 
 | 15121 | 	  } | 
 | 15122 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15123 | 	    s//\1/ | 
 | 15124 | 	    q | 
 | 15125 | 	  } | 
 | 15126 | 	  /^X\(\/\/\)$/{ | 
 | 15127 | 	    s//\1/ | 
 | 15128 | 	    q | 
 | 15129 | 	  } | 
 | 15130 | 	  /^X\(\/\).*/{ | 
 | 15131 | 	    s//\1/ | 
 | 15132 | 	    q | 
 | 15133 | 	  } | 
 | 15134 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15135 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15136 |   ac_builddir=. | 
 | 15137 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15138 | case "$ac_dir" in | 
 | 15139 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15140 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15142 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15143 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 |   case $ac_top_builddir_sub in | 
 | 15145 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15146 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 15147 |   esac ;; | 
 | 15148 | esac | 
 | 15149 | ac_abs_top_builddir=$ac_pwd | 
 | 15150 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 15151 | # for backward compatibility: | 
 | 15152 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 |  | 
 | 15154 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15155 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15157 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 15158 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 15159 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15161 |     ac_top_srcdir=$srcdir | 
 | 15162 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 15163 |   *) # Relative name. | 
 | 15164 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 15165 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 15166 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15168 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15169 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15171 |   case $ac_mode in | 
 | 15172 |   :F) | 
 | 15173 |   # | 
 | 15174 |   # CONFIG_FILE | 
 | 15175 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 |  | 
 | 15177 |   case $INSTALL in | 
 | 15178 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15179 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 |   esac | 
| Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 15181 |   ac_MKDIR_P=$MKDIR_P | 
 | 15182 |   case $MKDIR_P in | 
 | 15183 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 15184 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 15185 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15186 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15189 | # If the template does not know about datarootdir, expand it. | 
 | 15190 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 15191 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15192 | ac_sed_dataroot=' | 
 | 15193 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15194 |   p | 
 | 15195 |   q | 
 | 15196 | } | 
 | 15197 | /@datadir@/p | 
 | 15198 | /@docdir@/p | 
 | 15199 | /@infodir@/p | 
 | 15200 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15201 | /@mandir@/p' | 
 | 15202 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15203 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 15204 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15205 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 15206 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15207 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15209 |   ac_datarootdir_hack=' | 
 | 15210 |   s&@datadir@&$datadir&g | 
 | 15211 |   s&@docdir@&$docdir&g | 
 | 15212 |   s&@infodir@&$infodir&g | 
 | 15213 |   s&@localedir@&$localedir&g | 
 | 15214 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15215 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15216 | esac | 
 | 15217 | _ACEOF | 
 | 15218 |  | 
 | 15219 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 15220 | # Shell code in configure.ac might set extrasub. | 
 | 15221 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15222 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15223 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | $extrasub | 
 | 15225 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15227 | :t | 
 | 15228 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15229 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15230 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15231 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15232 | s&@srcdir@&$ac_srcdir&;t t | 
 | 15233 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 15234 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 15235 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 15236 | s&@builddir@&$ac_builddir&;t t | 
 | 15237 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 15238 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 15239 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 15240 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15241 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15242 | " | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15243 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 15244 |   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15245 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15246 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15247 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 15248 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 15249 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15250 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15251 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15252 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15253 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15254 |  | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15255 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 |   case $ac_file in | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15257 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 15258 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15259 |   esac \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15260 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15261 |  ;; | 
 | 15262 |   :H) | 
 | 15263 |   # | 
 | 15264 |   # CONFIG_HEADER | 
 | 15265 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15266 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15267 |     { | 
 | 15268 |       $as_echo "/* $configure_input  */" \ | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15269 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 15270 |     } >"$ac_tmp/config.h" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15271 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15272 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15273 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 15274 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15275 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15276 |       rm -f "$ac_file" | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15277 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15278 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15279 |     fi | 
 | 15280 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15281 |     $as_echo "/* $configure_input  */" \ | 
| Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15282 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15283 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15284 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15285 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15286 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15287 |  | 
 | 15288 |   esac | 
 | 15289 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15290 |  | 
 | 15291 |   case $ac_file$ac_mode in | 
 | 15292 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 15293 |  | 
 | 15294 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15295 | done # for ac_tag | 
 | 15296 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15298 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15299 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15300 | ac_clean_files=$ac_clean_files_save | 
 | 15301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15302 | test $ac_write_fail = 0 || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15303 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15304 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 |  | 
 | 15306 | # configure is writing to config.log, and then calls config.status. | 
 | 15307 | # config.status does its own redirection, appending to config.log. | 
 | 15308 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 15309 | # by configure, so config.status won't be able to write to it; its | 
 | 15310 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 15311 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 15312 | # appended to by config.status.  When coming back to configure, we | 
 | 15313 | # need to make the FD available again. | 
 | 15314 | if test "$no_create" != yes; then | 
 | 15315 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15316 |   ac_config_status_args= | 
 | 15317 |   test "$silent" = yes && | 
 | 15318 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15320 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 |   exec 5>>config.log | 
 | 15322 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 15323 |   # would make configure fail if this is the last instruction. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15324 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15325 | fi | 
 | 15326 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 15327 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 15328 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15330 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15331 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15332 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15333 | if test ! -f Modules/Setup | 
 | 15334 | then | 
 | 15335 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 15336 | fi | 
 | 15337 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15338 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15339 | if test ! -f Modules/Setup.local | 
 | 15340 | then | 
 | 15341 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 15342 | fi | 
 | 15343 |  | 
 | 15344 | echo "creating Makefile" | 
 | 15345 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 15346 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15347 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15348 | mv config.c Modules |