| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +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. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for python 2.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # | 
 | 11 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation | 
 | 13 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14 | ## -------------------- ## | 
 | 15 | ## M4sh Initialization. ## | 
 | 16 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible | 
 | 19 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 20 | 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] | 21 |   emulate sh | 
 | 22 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 23 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24 |   # is contrary to our usage.  Disable this feature. | 
 | 25 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 28 |   case `(set -o) 2>/dev/null` in #( | 
 | 29 |   *posix*) : | 
 | 30 |     set -o posix ;; #( | 
 | 31 |   *) : | 
 | 32 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 33 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | fi | 
 | 35 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 36 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 37 | as_nl=' | 
 | 38 | ' | 
 | 39 | export as_nl | 
 | 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 45 | # but without wasting forks for bash or zsh. | 
 | 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 47 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 48 |   as_echo='print -r --' | 
 | 49 |   as_echo_n='print -rn --' | 
 | 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 51 |   as_echo='printf %s\n' | 
 | 52 |   as_echo_n='printf %s' | 
 | 53 | else | 
 | 54 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 55 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 56 |     as_echo_n='/usr/ucb/echo -n' | 
 | 57 |   else | 
 | 58 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 59 |     as_echo_n_body='eval | 
 | 60 |       arg=$1; | 
 | 61 |       case $arg in #( | 
 | 62 |       *"$as_nl"*) | 
 | 63 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 64 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 65 |       esac; | 
 | 66 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 67 |     ' | 
 | 68 |     export as_echo_n_body | 
 | 69 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 70 |   fi | 
 | 71 |   export as_echo_body | 
 | 72 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 73 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 74 |  | 
 | 75 | # The user is always right. | 
 | 76 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 77 |   PATH_SEPARATOR=: | 
 | 78 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 79 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 80 |       PATH_SEPARATOR=';' | 
 | 81 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 82 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 83 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 |  | 
 | 85 | # IFS | 
 | 86 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 87 | # there to prevent editors from complaining about space-tab. | 
 | 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 89 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 90 | IFS=" ""	$as_nl" | 
 | 91 |  | 
 | 92 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 93 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 94 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 95 |   *[\\/]* ) as_myself=$0 ;; | 
 | 96 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 97 | for as_dir in $PATH | 
 | 98 | do | 
 | 99 |   IFS=$as_save_IFS | 
 | 100 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 101 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 102 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 104 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 |      ;; | 
 | 106 | esac | 
 | 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 108 | # in which case we are not to be found in the path. | 
 | 109 | if test "x$as_myself" = x; then | 
 | 110 |   as_myself=$0 | 
 | 111 | fi | 
 | 112 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 113 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 114 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 115 | fi | 
 | 116 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 118 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 119 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 120 | # trigger a bug in pdksh 5.2.14. | 
 | 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 122 | do eval test x\${$as_var+set} = xset \ | 
 | 123 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 124 | done | 
 | 125 | PS1='$ ' | 
 | 126 | PS2='> ' | 
 | 127 | PS4='+ ' | 
 | 128 |  | 
 | 129 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 130 | LC_ALL=C | 
 | 131 | export LC_ALL | 
 | 132 | LANGUAGE=C | 
 | 133 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 134 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 135 | # CDPATH. | 
 | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 137 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 138 | # Use a proper internal environment variable to ensure we don't fall | 
 | 139 |   # into an infinite loop, continuously re-executing ourselves. | 
 | 140 |   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
 | 141 |     _as_can_reexec=no; export _as_can_reexec; | 
 | 142 |     # We cannot yet assume a decent shell, so we have to provide a | 
 | 143 | # neutralization value for shells without unset; and this also | 
 | 144 | # works around shells that cannot unset nonexistent variables. | 
 | 145 | # Preserve -v and -x to the replacement shell. | 
 | 146 | BASH_ENV=/dev/null | 
 | 147 | ENV=/dev/null | 
 | 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 149 | case $- in # (((( | 
 | 150 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 151 |   *v* ) as_opts=-v ;; | 
 | 152 |   *x* ) as_opts=-x ;; | 
 | 153 |   * ) as_opts= ;; | 
 | 154 | esac | 
 | 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 156 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 157 | # out after a failed `exec'. | 
 | 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 159 | as_fn_exit 255 | 
 | 160 |   fi | 
 | 161 |   # We don't want this to propagate to other subprocesses. | 
 | 162 |           { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 163 | if test "x$CONFIG_SHELL" = x; then | 
 | 164 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 165 |   emulate sh | 
 | 166 |   NULLCMD=: | 
 | 167 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 168 |   # is contrary to our usage.  Disable this feature. | 
 | 169 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 170 |   setopt NO_GLOB_SUBST | 
 | 171 | else | 
 | 172 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 173 |   *posix*) : | 
 | 174 |     set -o posix ;; #( | 
 | 175 |   *) : | 
 | 176 |      ;; | 
 | 177 | esac | 
 | 178 | fi | 
 | 179 | " | 
 | 180 |   as_required="as_fn_return () { (exit \$1); } | 
 | 181 | as_fn_success () { as_fn_return 0; } | 
 | 182 | as_fn_failure () { as_fn_return 1; } | 
 | 183 | as_fn_ret_success () { return 0; } | 
 | 184 | as_fn_ret_failure () { return 1; } | 
 | 185 |  | 
 | 186 | exitcode=0 | 
 | 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 192 |  | 
 | 193 | else | 
 | 194 |   exitcode=1; echo positional parameters were not saved. | 
 | 195 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 196 | test x\$exitcode = x0 || exit 1 | 
 | 197 | test -x / || exit 1" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 198 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 199 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 200 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 201 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 202 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 203 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 204 |   as_have_required=yes | 
 | 205 | else | 
 | 206 |   as_have_required=no | 
 | 207 | fi | 
 | 208 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 209 |  | 
 | 210 | else | 
 | 211 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 212 | as_found=false | 
 | 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 214 | do | 
 | 215 |   IFS=$as_save_IFS | 
 | 216 |   test -z "$as_dir" && as_dir=. | 
 | 217 |   as_found=: | 
 | 218 |   case $as_dir in #( | 
 | 219 | 	 /*) | 
 | 220 | 	   for as_base in sh bash ksh sh5; do | 
 | 221 | 	     # Try only shells that exist, to save several forks. | 
 | 222 | 	     as_shell=$as_dir/$as_base | 
 | 223 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 224 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 225 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 226 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 227 |   break 2 | 
 | 228 | fi | 
 | 229 | fi | 
 | 230 | 	   done;; | 
 | 231 |        esac | 
 | 232 |   as_found=false | 
 | 233 | done | 
 | 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 235 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 236 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 237 | fi; } | 
 | 238 | IFS=$as_save_IFS | 
 | 239 |  | 
 | 240 |  | 
 | 241 |       if test "x$CONFIG_SHELL" != x; then : | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 242 |   export CONFIG_SHELL | 
 | 243 |              # We cannot yet assume a decent shell, so we have to provide a | 
 | 244 | # neutralization value for shells without unset; and this also | 
 | 245 | # works around shells that cannot unset nonexistent variables. | 
 | 246 | # Preserve -v and -x to the replacement shell. | 
 | 247 | BASH_ENV=/dev/null | 
 | 248 | ENV=/dev/null | 
 | 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 250 | case $- in # (((( | 
 | 251 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 252 |   *v* ) as_opts=-v ;; | 
 | 253 |   *x* ) as_opts=-x ;; | 
 | 254 |   * ) as_opts= ;; | 
 | 255 | esac | 
 | 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 257 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 258 | # out after a failed `exec'. | 
 | 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 260 | exit 255 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 261 | fi | 
 | 262 |  | 
 | 263 |     if test x$as_have_required = xno; then : | 
 | 264 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 265 |   $as_echo "$0: the shells that I found on your system." | 
 | 266 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 267 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 268 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 269 |   else | 
 | 270 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 271 | $0: http://bugs.python.org/ about your system, including | 
 | 272 | $0: any error possibly output before this message. Then | 
 | 273 | $0: install a modern shell, or manually run the script | 
 | 274 | $0: under such a shell if you do have one." | 
 | 275 |   fi | 
 | 276 |   exit 1 | 
 | 277 | fi | 
 | 278 | fi | 
 | 279 | fi | 
 | 280 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 281 | export SHELL | 
 | 282 | # Unset more variables known to interfere with behavior of common tools. | 
 | 283 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 284 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 285 |  | 
 | 286 | ## --------------------- ## | 
 | 287 | ## M4sh Shell Functions. ## | 
 | 288 | ## --------------------- ## | 
 | 289 | # as_fn_unset VAR | 
 | 290 | # --------------- | 
 | 291 | # Portably unset VAR. | 
 | 292 | as_fn_unset () | 
 | 293 | { | 
 | 294 |   { eval $1=; unset $1;} | 
 | 295 | } | 
 | 296 | as_unset=as_fn_unset | 
 | 297 |  | 
 | 298 | # as_fn_set_status STATUS | 
 | 299 | # ----------------------- | 
 | 300 | # Set $? to STATUS, without forking. | 
 | 301 | as_fn_set_status () | 
 | 302 | { | 
 | 303 |   return $1 | 
 | 304 | } # as_fn_set_status | 
 | 305 |  | 
 | 306 | # as_fn_exit STATUS | 
 | 307 | # ----------------- | 
 | 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 309 | as_fn_exit () | 
 | 310 | { | 
 | 311 |   set +e | 
 | 312 |   as_fn_set_status $1 | 
 | 313 |   exit $1 | 
 | 314 | } # as_fn_exit | 
 | 315 |  | 
 | 316 | # as_fn_mkdir_p | 
 | 317 | # ------------- | 
 | 318 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 319 | as_fn_mkdir_p () | 
 | 320 | { | 
 | 321 |  | 
 | 322 |   case $as_dir in #( | 
 | 323 |   -*) as_dir=./$as_dir;; | 
 | 324 |   esac | 
 | 325 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 326 |     as_dirs= | 
 | 327 |     while :; do | 
 | 328 |       case $as_dir in #( | 
 | 329 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 330 |       *) as_qdir=$as_dir;; | 
 | 331 |       esac | 
 | 332 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 333 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 335 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 336 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 337 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 338 | $as_echo X"$as_dir" | | 
 | 339 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 340 | 	    s//\1/ | 
 | 341 | 	    q | 
 | 342 | 	  } | 
 | 343 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 344 | 	    s//\1/ | 
 | 345 | 	    q | 
 | 346 | 	  } | 
 | 347 | 	  /^X\(\/\/\)$/{ | 
 | 348 | 	    s//\1/ | 
 | 349 | 	    q | 
 | 350 | 	  } | 
 | 351 | 	  /^X\(\/\).*/{ | 
 | 352 | 	    s//\1/ | 
 | 353 | 	    q | 
 | 354 | 	  } | 
 | 355 | 	  s/.*/./; q'` | 
 | 356 |       test -d "$as_dir" && break | 
 | 357 |     done | 
 | 358 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 359 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 360 |  | 
 | 361 |  | 
 | 362 | } # as_fn_mkdir_p | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 363 |  | 
 | 364 | # as_fn_executable_p FILE | 
 | 365 | # ----------------------- | 
 | 366 | # Test if FILE is an executable regular file. | 
 | 367 | as_fn_executable_p () | 
 | 368 | { | 
 | 369 |   test -f "$1" && test -x "$1" | 
 | 370 | } # as_fn_executable_p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 371 | # as_fn_append VAR VALUE | 
 | 372 | # ---------------------- | 
 | 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 374 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 375 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 376 | # implementations. | 
 | 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 378 |   eval 'as_fn_append () | 
 | 379 |   { | 
 | 380 |     eval $1+=\$2 | 
 | 381 |   }' | 
 | 382 | else | 
 | 383 |   as_fn_append () | 
 | 384 |   { | 
 | 385 |     eval $1=\$$1\$2 | 
 | 386 |   } | 
 | 387 | fi # as_fn_append | 
 | 388 |  | 
 | 389 | # as_fn_arith ARG... | 
 | 390 | # ------------------ | 
 | 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 393 | # must be portable across $(()) and expr. | 
 | 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 395 |   eval 'as_fn_arith () | 
 | 396 |   { | 
 | 397 |     as_val=$(( $* )) | 
 | 398 |   }' | 
 | 399 | else | 
 | 400 |   as_fn_arith () | 
 | 401 |   { | 
 | 402 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 403 |   } | 
 | 404 | fi # as_fn_arith | 
 | 405 |  | 
 | 406 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 408 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 411 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 412 | as_fn_error () | 
 | 413 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 414 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 415 |   if test "$4"; then | 
 | 416 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 417 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 418 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 419 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 420 |   as_fn_exit $as_status | 
 | 421 | } # as_fn_error | 
 | 422 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 424 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 425 |   as_expr=expr | 
 | 426 | else | 
 | 427 |   as_expr=false | 
 | 428 | fi | 
 | 429 |  | 
 | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 431 |   as_basename=basename | 
 | 432 | else | 
 | 433 |   as_basename=false | 
 | 434 | fi | 
 | 435 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 437 |   as_dirname=dirname | 
 | 438 | else | 
 | 439 |   as_dirname=false | 
 | 440 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 441 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || | 
 | 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 444 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 445 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 446 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 447 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 448 | 	    s//\1/ | 
 | 449 | 	    q | 
 | 450 | 	  } | 
 | 451 | 	  /^X\/\(\/\/\)$/{ | 
 | 452 | 	    s//\1/ | 
 | 453 | 	    q | 
 | 454 | 	  } | 
 | 455 | 	  /^X\/\(\/\).*/{ | 
 | 456 | 	    s//\1/ | 
 | 457 | 	    q | 
 | 458 | 	  } | 
 | 459 | 	  s/.*/./; q'` | 
 | 460 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. | 
 | 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 465 | as_cr_digits='0123456789' | 
 | 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 467 |  | 
 | 468 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 470 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 471 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 472 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 473 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 474 |   sed -n ' | 
 | 475 |     p | 
 | 476 |     /[$]LINENO/= | 
 | 477 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 |     sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 479 |       s/[$]LINENO.*/&-/ | 
 | 480 |       t lineno | 
 | 481 |       b | 
 | 482 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 483 |       N | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 484 |       :loop | 
 | 485 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 |       t loop | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 487 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 |     ' >$as_me.lineno && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 489 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 490 |     { $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] | 491 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 492 |   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
 | 493 |   # already done that, so ensure we don't try to do so again and fall | 
 | 494 |   # in an infinite loop.  This has already happened in practice. | 
 | 495 |   _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 497 |   # (the dirname of $[0] is not the place where we might find the | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 498 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 499 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 |   # Exit status is that of the last command. | 
 | 501 |   exit | 
 | 502 | } | 
 | 503 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 505 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 506 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 507 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 508 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 509 |   xy)  ECHO_C='\c';; | 
 | 510 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 511 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 512 |   esac;; | 
 | 513 | *) | 
 | 514 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 517 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then | 
 | 519 |   rm -f conf$$.dir/conf$$.file | 
 | 520 | else | 
 | 521 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 525 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 526 |     as_ln_s='ln -s' | 
 | 527 |     # ... but there are two gotchas: | 
 | 528 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 529 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 530 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 531 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 532 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 533 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 534 |     as_ln_s=ln | 
 | 535 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 536 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 537 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 539 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 540 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 542 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 545 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 547 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 548 |   as_mkdir_p=false | 
 | 549 | fi | 
 | 550 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 551 | as_test_x='test -x' | 
 | 552 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 |  | 
 | 554 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 555 | 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] | 556 |  | 
 | 557 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 558 | 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] | 559 |  | 
 | 560 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 562 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 |  | 
 | 564 | # Name of the host. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 565 | # 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] | 566 | # so uname gets run too. | 
 | 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 568 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # | 
 | 570 | # Initializations. | 
 | 571 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 573 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 575 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | cross_compiling=no | 
 | 577 | subdirs= | 
 | 578 | MFLAGS= | 
 | 579 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 582 | PACKAGE_NAME='python' | 
 | 583 | PACKAGE_TARNAME='python' | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 584 | PACKAGE_VERSION='2.7' | 
 | 585 | PACKAGE_STRING='python 2.7' | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 587 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 |  | 
 | 589 | ac_unique_file="Include/object.h" | 
 | 590 | # Factoring default headers for most tests. | 
 | 591 | ac_includes_default="\ | 
 | 592 | #include <stdio.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <sys/types.h> | 
 | 595 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> | 
 | 598 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | # include <stdlib.h> | 
 | 601 | # include <stddef.h> | 
 | 602 | #else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 604 | #  include <stdlib.h> | 
 | 605 | # endif | 
 | 606 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H | 
 | 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | #  include <memory.h> | 
 | 610 | # endif | 
 | 611 | # include <string.h> | 
 | 612 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | # include <strings.h> | 
 | 615 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | # include <inttypes.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H | 
 | 620 | # include <stdint.h> | 
 | 621 | #endif | 
 | 622 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | # include <unistd.h> | 
 | 624 | #endif" | 
 | 625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
 | 629 | UNICODE_OBJS | 
 | 630 | LIBC | 
 | 631 | LIBM | 
 | 632 | HAVE_GETHOSTBYNAME | 
 | 633 | HAVE_GETHOSTBYNAME_R | 
 | 634 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 635 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 636 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 637 | LIBOBJS | 
 | 638 | TRUE | 
 | 639 | MACHDEP_OBJS | 
 | 640 | DYNLOADFILE | 
 | 641 | DLINCLDIR | 
 | 642 | THREADOBJ | 
 | 643 | LDLAST | 
 | 644 | USE_THREAD_MODULE | 
 | 645 | SIGNAL_OBJS | 
 | 646 | USE_SIGNAL_MODULE | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 647 | TCLTK_LIBS | 
 | 648 | TCLTK_INCLUDES | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 649 | LIBFFI_INCLUDEDIR | 
 | 650 | PKG_CONFIG | 
 | 651 | SHLIBS | 
 | 652 | CFLAGSFORSHARED | 
 | 653 | LINKFORSHARED | 
 | 654 | CCSHARED | 
 | 655 | BLDSHARED | 
 | 656 | LDCXXSHARED | 
 | 657 | LDSHARED | 
 | 658 | SO | 
 | 659 | LIBTOOL_CRUFT | 
 | 660 | OTHER_LIBTOOL_OPT | 
 | 661 | UNIVERSAL_ARCH_FLAGS | 
 | 662 | BASECFLAGS | 
 | 663 | OPT | 
 | 664 | LN | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 665 | MKDIR_P | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 666 | INSTALL_DATA | 
 | 667 | INSTALL_SCRIPT | 
 | 668 | INSTALL_PROGRAM | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 669 | HAS_HG | 
 | 670 | HGBRANCH | 
 | 671 | HGTAG | 
 | 672 | HGVERSION | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 673 | BASECPPFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 674 | SVNVERSION | 
 | 675 | ARFLAGS | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 676 | ac_ct_AR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 677 | AR | 
 | 678 | RANLIB | 
 | 679 | GNULD | 
 | 680 | LINKCC | 
 | 681 | RUNSHARED | 
 | 682 | INSTSONAME | 
 | 683 | LDLIBRARYDIR | 
 | 684 | BLDLIBRARY | 
 | 685 | DLLLIBRARY | 
 | 686 | LDLIBRARY | 
 | 687 | LIBRARY | 
 | 688 | BUILDEXEEXT | 
 | 689 | EGREP | 
 | 690 | GREP | 
 | 691 | CPP | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 692 | MULTIARCH | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 693 | ac_ct_CXX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 694 | MAINCC | 
 | 695 | CXX | 
 | 696 | OBJEXT | 
 | 697 | EXEEXT | 
 | 698 | ac_ct_CC | 
 | 699 | CPPFLAGS | 
 | 700 | LDFLAGS | 
 | 701 | CFLAGS | 
 | 702 | CC | 
 | 703 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 704 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 705 | EXTRAMACHDEPPATH | 
 | 706 | EXTRAPLATDIR | 
 | 707 | SGI_ABI | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 708 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 709 | MACHDEP | 
 | 710 | FRAMEWORKINSTALLAPPSPREFIX | 
 | 711 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 712 | FRAMEWORKALTINSTALLLAST | 
 | 713 | FRAMEWORKALTINSTALLFIRST | 
 | 714 | FRAMEWORKINSTALLLAST | 
 | 715 | FRAMEWORKINSTALLFIRST | 
 | 716 | PYTHONFRAMEWORKINSTALLDIR | 
 | 717 | PYTHONFRAMEWORKPREFIX | 
 | 718 | PYTHONFRAMEWORKDIR | 
 | 719 | PYTHONFRAMEWORKIDENTIFIER | 
 | 720 | PYTHONFRAMEWORK | 
 | 721 | LIPO_32BIT_FLAGS | 
 | 722 | ARCH_RUN_32BIT | 
 | 723 | UNIVERSALSDK | 
 | 724 | CONFIG_ARGS | 
 | 725 | SOVERSION | 
 | 726 | VERSION | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 727 | PYTHON_FOR_BUILD | 
 | 728 | host_os | 
 | 729 | host_vendor | 
 | 730 | host_cpu | 
 | 731 | host | 
 | 732 | build_os | 
 | 733 | build_vendor | 
 | 734 | build_cpu | 
 | 735 | build | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 736 | target_alias | 
 | 737 | host_alias | 
 | 738 | build_alias | 
 | 739 | LIBS | 
 | 740 | ECHO_T | 
 | 741 | ECHO_N | 
 | 742 | ECHO_C | 
 | 743 | DEFS | 
 | 744 | mandir | 
 | 745 | localedir | 
 | 746 | libdir | 
 | 747 | psdir | 
 | 748 | pdfdir | 
 | 749 | dvidir | 
 | 750 | htmldir | 
 | 751 | infodir | 
 | 752 | docdir | 
 | 753 | oldincludedir | 
 | 754 | includedir | 
 | 755 | localstatedir | 
 | 756 | sharedstatedir | 
 | 757 | sysconfdir | 
 | 758 | datadir | 
 | 759 | datarootdir | 
 | 760 | libexecdir | 
 | 761 | sbindir | 
 | 762 | bindir | 
 | 763 | program_transform_name | 
 | 764 | prefix | 
 | 765 | exec_prefix | 
 | 766 | PACKAGE_URL | 
 | 767 | PACKAGE_BUGREPORT | 
 | 768 | PACKAGE_STRING | 
 | 769 | PACKAGE_VERSION | 
 | 770 | PACKAGE_TARNAME | 
 | 771 | PACKAGE_NAME | 
 | 772 | PATH_SEPARATOR | 
 | 773 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 774 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 775 | ac_user_opts=' | 
 | 776 | enable_option_checking | 
 | 777 | enable_universalsdk | 
 | 778 | with_universal_archs | 
 | 779 | with_framework_name | 
 | 780 | enable_framework | 
 | 781 | with_gcc | 
 | 782 | with_cxx_main | 
 | 783 | with_suffix | 
 | 784 | enable_shared | 
 | 785 | enable_profiling | 
 | 786 | with_pydebug | 
 | 787 | enable_toolbox_glue | 
 | 788 | with_libs | 
 | 789 | with_system_expat | 
 | 790 | with_system_ffi | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 791 | with_tcltk_includes | 
 | 792 | with_tcltk_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 793 | with_dbmliborder | 
 | 794 | with_signal_module | 
 | 795 | with_dec_threads | 
 | 796 | with_threads | 
 | 797 | with_thread | 
 | 798 | with_pth | 
 | 799 | enable_ipv6 | 
 | 800 | with_doc_strings | 
 | 801 | with_tsc | 
 | 802 | with_pymalloc | 
 | 803 | with_valgrind | 
 | 804 | with_wctype_functions | 
 | 805 | with_fpectl | 
 | 806 | with_libm | 
 | 807 | with_libc | 
 | 808 | enable_big_digits | 
 | 809 | enable_unicode | 
 | 810 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 811 |       ac_precious_vars='build_alias | 
 | 812 | host_alias | 
 | 813 | target_alias | 
 | 814 | CC | 
 | 815 | CFLAGS | 
 | 816 | LDFLAGS | 
 | 817 | LIBS | 
 | 818 | CPPFLAGS | 
 | 819 | CPP' | 
 | 820 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 821 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 822 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | ac_init_help= | 
 | 824 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 825 | ac_unrecognized_opts= | 
 | 826 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | # The variables have the same names as the options, with | 
 | 828 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 831 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 832 | no_recursion= | 
 | 833 | prefix=NONE | 
 | 834 | program_prefix=NONE | 
 | 835 | program_suffix=NONE | 
 | 836 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 838 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 839 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 841 | x_includes=NONE | 
 | 842 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 |  | 
 | 844 | # Installation directory options. | 
 | 845 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 846 | # and all the variables that are supposed to be based on exec_prefix | 
 | 847 | # by default will actually change. | 
 | 848 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 849 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 850 | bindir='${exec_prefix}/bin' | 
 | 851 | sbindir='${exec_prefix}/sbin' | 
 | 852 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 853 | datarootdir='${prefix}/share' | 
 | 854 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 855 | sysconfdir='${prefix}/etc' | 
 | 856 | sharedstatedir='${prefix}/com' | 
 | 857 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 858 | includedir='${prefix}/include' | 
 | 859 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 861 | infodir='${datarootdir}/info' | 
 | 862 | htmldir='${docdir}' | 
 | 863 | dvidir='${docdir}' | 
 | 864 | pdfdir='${docdir}' | 
 | 865 | psdir='${docdir}' | 
 | 866 | libdir='${exec_prefix}/lib' | 
 | 867 | localedir='${datarootdir}/locale' | 
 | 868 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 871 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 873 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 |   # If the previous option needs an argument, assign it. | 
 | 875 |   if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 876 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 |     ac_prev= | 
 | 878 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 879 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 881 |   case $ac_option in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 882 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 883 |   *=)   ac_optarg= ;; | 
 | 884 |   *)    ac_optarg=yes ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 885 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 886 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 887 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 888 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 889 |   case $ac_dashdash$ac_option in | 
 | 890 |   --) | 
 | 891 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 894 |     ac_prev=bindir ;; | 
 | 895 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 |  | 
 | 898 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 903 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 904 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 905 |     ac_prev=cache_file ;; | 
 | 906 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 907 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 908 |     cache_file=$ac_optarg ;; | 
 | 909 |  | 
 | 910 |   --config-cache | -C) | 
 | 911 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 912 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 913 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 |     ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 915 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 918 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 919 |   | --dataroo | --dataro | --datar) | 
 | 920 |     ac_prev=datarootdir ;; | 
 | 921 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 922 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 923 |     datarootdir=$ac_optarg ;; | 
 | 924 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |   -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 926 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 927 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 928 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 929 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 930 |     ac_useropt_orig=$ac_useropt | 
 | 931 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 932 |     case $ac_user_opts in | 
 | 933 |       *" | 
 | 934 | "enable_$ac_useropt" | 
 | 935 | "*) ;; | 
 | 936 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 937 | 	 ac_unrecognized_sep=', ';; | 
 | 938 |     esac | 
 | 939 |     eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 940 |  | 
 | 941 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 942 |     ac_prev=docdir ;; | 
 | 943 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 944 |     docdir=$ac_optarg ;; | 
 | 945 |  | 
 | 946 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 947 |     ac_prev=dvidir ;; | 
 | 948 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 949 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 |  | 
 | 951 |   -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 952 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 954 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 955 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 956 |     ac_useropt_orig=$ac_useropt | 
 | 957 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 958 |     case $ac_user_opts in | 
 | 959 |       *" | 
 | 960 | "enable_$ac_useropt" | 
 | 961 | "*) ;; | 
 | 962 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 963 | 	 ac_unrecognized_sep=', ';; | 
 | 964 |     esac | 
 | 965 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 968 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 969 |   | --exec | --exe | --ex) | 
 | 970 |     ac_prev=exec_prefix ;; | 
 | 971 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 972 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 973 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 |  | 
 | 976 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 977 |     # Obsolete; use --with-gas. | 
 | 978 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 |   -help | --help | --hel | --he | -h) | 
 | 981 |     ac_init_help=long ;; | 
 | 982 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 983 |     ac_init_help=recursive ;; | 
 | 984 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 985 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 |  | 
 | 987 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 992 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 993 |     ac_prev=htmldir ;; | 
 | 994 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 995 |   | --ht=*) | 
 | 996 |     htmldir=$ac_optarg ;; | 
 | 997 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 998 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 999 |   | --includ | --inclu | --incl | --inc) | 
 | 1000 |     ac_prev=includedir ;; | 
 | 1001 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1002 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1003 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1004 |  | 
 | 1005 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1006 |     ac_prev=infodir ;; | 
 | 1007 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1009 |  | 
 | 1010 |   -libdir | --libdir | --libdi | --libd) | 
 | 1011 |     ac_prev=libdir ;; | 
 | 1012 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1014 |  | 
 | 1015 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1016 |   | --libexe | --libex | --libe) | 
 | 1017 |     ac_prev=libexecdir ;; | 
 | 1018 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1019 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1022 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1023 |     ac_prev=localedir ;; | 
 | 1024 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1025 |     localedir=$ac_optarg ;; | 
 | 1026 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1027 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1028 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 |     ac_prev=localstatedir ;; | 
 | 1030 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1031 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1032 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1033 |  | 
 | 1034 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1035 |     ac_prev=mandir ;; | 
 | 1036 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1037 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1038 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1039 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 |     # Obsolete; use --without-fp. | 
 | 1041 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1042 |  | 
 | 1043 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 |     no_create=yes ;; | 
 | 1046 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1048 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1049 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1052 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1053 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1054 |     ac_prev=oldincludedir ;; | 
 | 1055 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1056 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1057 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1061 |     ac_prev=prefix ;; | 
 | 1062 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 |  | 
 | 1065 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1066 |   | --program-pre | --program-pr | --program-p) | 
 | 1067 |     ac_prev=program_prefix ;; | 
 | 1068 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1069 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 |  | 
 | 1072 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1073 |   | --program-suf | --program-su | --program-s) | 
 | 1074 |     ac_prev=program_suffix ;; | 
 | 1075 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1076 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 |  | 
 | 1079 |   -program-transform-name | --program-transform-name \ | 
 | 1080 |   | --program-transform-nam | --program-transform-na \ | 
 | 1081 |   | --program-transform-n | --program-transform- \ | 
 | 1082 |   | --program-transform | --program-transfor \ | 
 | 1083 |   | --program-transfo | --program-transf \ | 
 | 1084 |   | --program-trans | --program-tran \ | 
 | 1085 |   | --progr-tra | --program-tr | --program-t) | 
 | 1086 |     ac_prev=program_transform_name ;; | 
 | 1087 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1088 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1089 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1090 |   | --program-transform=* | --program-transfor=* \ | 
 | 1091 |   | --program-transfo=* | --program-transf=* \ | 
 | 1092 |   | --program-trans=* | --program-tran=* \ | 
 | 1093 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1096 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1097 |     ac_prev=pdfdir ;; | 
 | 1098 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1099 |     pdfdir=$ac_optarg ;; | 
 | 1100 |  | 
 | 1101 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1102 |     ac_prev=psdir ;; | 
 | 1103 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1104 |     psdir=$ac_optarg ;; | 
 | 1105 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1107 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1108 |     silent=yes ;; | 
 | 1109 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1110 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1111 |     ac_prev=sbindir ;; | 
 | 1112 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1113 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1115 |  | 
 | 1116 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1117 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1118 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1119 |   | --sha | --sh) | 
 | 1120 |     ac_prev=sharedstatedir ;; | 
 | 1121 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1122 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1123 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1124 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1126 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 |   -site | --site | --sit) | 
 | 1128 |     ac_prev=site ;; | 
 | 1129 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1131 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1133 |     ac_prev=srcdir ;; | 
 | 1134 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1137 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1138 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1139 |     ac_prev=sysconfdir ;; | 
 | 1140 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1141 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1143 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1148 |  | 
 | 1149 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1150 |     verbose=yes ;; | 
 | 1151 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1153 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1154 |  | 
 | 1155 |   -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1156 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1157 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1158 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1159 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1160 |     ac_useropt_orig=$ac_useropt | 
 | 1161 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1162 |     case $ac_user_opts in | 
 | 1163 |       *" | 
 | 1164 | "with_$ac_useropt" | 
 | 1165 | "*) ;; | 
 | 1166 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1167 | 	 ac_unrecognized_sep=', ';; | 
 | 1168 |     esac | 
 | 1169 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 |  | 
 | 1171 |   -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1172 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1173 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1174 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1175 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1176 |     ac_useropt_orig=$ac_useropt | 
 | 1177 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1178 |     case $ac_user_opts in | 
 | 1179 |       *" | 
 | 1180 | "with_$ac_useropt" | 
 | 1181 | "*) ;; | 
 | 1182 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1183 | 	 ac_unrecognized_sep=', ';; | 
 | 1184 |     esac | 
 | 1185 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1187 |   --x) | 
 | 1188 |     # Obsolete; use --with-x. | 
 | 1189 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 |  | 
 | 1191 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1192 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1193 |     ac_prev=x_includes ;; | 
 | 1194 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1195 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1196 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1197 |  | 
 | 1198 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1199 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1200 |     ac_prev=x_libraries ;; | 
 | 1201 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1202 |   | --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] | 1203 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1205 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1206 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1207 |     ;; | 
 | 1208 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1209 |   *=*) | 
 | 1210 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1211 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1212 |     case $ac_envvar in #( | 
 | 1213 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1214 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1215 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1216 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 |     export $ac_envvar ;; | 
 | 1218 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1219 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1220 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1221 |     $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] | 1222 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1223 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1224 |     : "${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] | 1225 |     ;; | 
 | 1226 |  | 
 | 1227 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1228 | done | 
 | 1229 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1230 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1232 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1233 | fi | 
 | 1234 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1235 | if test -n "$ac_unrecognized_opts"; then | 
 | 1236 |   case $enable_option_checking in | 
 | 1237 |     no) ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1238 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1239 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1240 |   esac | 
 | 1241 | fi | 
 | 1242 |  | 
 | 1243 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1244 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1245 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1246 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1247 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1248 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1249 |   eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1250 |   # Remove trailing slashes. | 
 | 1251 |   case $ac_val in | 
 | 1252 |     */ ) | 
 | 1253 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1254 |       eval $ac_var=\$ac_val;; | 
 | 1255 |   esac | 
 | 1256 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 |   case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1258 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1259 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 |   esac | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1261 |   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] | 1262 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1263 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1265 | # used to hold the argument of --host etc. | 
 | 1266 | # FIXME: To remove some day. | 
 | 1267 | build=$build_alias | 
 | 1268 | host=$host_alias | 
 | 1269 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1271 | # FIXME: To remove some day. | 
 | 1272 | if test "x$host_alias" != x; then | 
 | 1273 |   if test "x$build_alias" = x; then | 
 | 1274 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1276 |     cross_compiling=yes | 
 | 1277 |   fi | 
 | 1278 | fi | 
 | 1279 |  | 
 | 1280 | ac_tool_prefix= | 
 | 1281 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1282 |  | 
 | 1283 | test "$silent" = yes && exec 6>/dev/null | 
 | 1284 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1285 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1286 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1287 | ac_ls_di=`ls -di .` && | 
 | 1288 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1289 |   as_fn_error $? "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1290 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1291 |   as_fn_error $? "pwd does not report name of working directory" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1292 |  | 
 | 1293 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1294 | # Find the source files, if location was not specified. | 
 | 1295 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1296 |   ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1297 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1298 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1299 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1300 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1301 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1302 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1303 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1304 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1305 | 	    s//\1/ | 
 | 1306 | 	    q | 
 | 1307 | 	  } | 
 | 1308 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1309 | 	    s//\1/ | 
 | 1310 | 	    q | 
 | 1311 | 	  } | 
 | 1312 | 	  /^X\(\/\/\)$/{ | 
 | 1313 | 	    s//\1/ | 
 | 1314 | 	    q | 
 | 1315 | 	  } | 
 | 1316 | 	  /^X\(\/\).*/{ | 
 | 1317 | 	    s//\1/ | 
 | 1318 | 	    q | 
 | 1319 | 	  } | 
 | 1320 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1321 |   srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1322 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 |     srcdir=.. | 
 | 1324 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1325 | else | 
 | 1326 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1328 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1329 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1330 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1331 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1332 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1333 | ac_abs_confdir=`( | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1334 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1335 | 	pwd)` | 
 | 1336 | # When building in place, set srcdir=. | 
 | 1337 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1338 |   srcdir=. | 
 | 1339 | fi | 
 | 1340 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1341 | # Double slashes in file names in object file debugging info | 
 | 1342 | # mess up M-x gdb in Emacs. | 
 | 1343 | case $srcdir in | 
 | 1344 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1345 | esac | 
 | 1346 | for ac_var in $ac_precious_vars; do | 
 | 1347 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1348 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1349 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1350 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1351 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1352 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1353 | # | 
 | 1354 | # Report the --help message. | 
 | 1355 | # | 
 | 1356 | if test "$ac_init_help" = "long"; then | 
 | 1357 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1358 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1359 |   cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1360 | \`configure' configures python 2.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 |  | 
 | 1362 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1363 |  | 
 | 1364 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1365 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1366 |  | 
 | 1367 | Defaults for the options are specified in brackets. | 
 | 1368 |  | 
 | 1369 | Configuration: | 
 | 1370 |   -h, --help              display this help and exit | 
 | 1371 |       --help=short        display options specific to this package | 
 | 1372 |       --help=recursive    display the short help of all the included packages | 
 | 1373 |   -V, --version           display version information and exit | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1374 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1376 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1377 |   -n, --no-create         do not create output files | 
 | 1378 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1379 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | Installation directories: | 
 | 1381 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1382 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1384 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1385 |  | 
 | 1386 | By default, \`make install' will install all the files in | 
 | 1387 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1388 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1389 | for instance \`--prefix=\$HOME'. | 
 | 1390 |  | 
 | 1391 | For better control, use the options below. | 
 | 1392 |  | 
 | 1393 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1394 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1395 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1396 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1397 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1398 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1399 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1400 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1401 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1402 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1403 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1404 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1405 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1406 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1407 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1408 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1409 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1410 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1411 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1412 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | _ACEOF | 
 | 1414 |  | 
 | 1415 |   cat <<\_ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 1416 |  | 
 | 1417 | System types: | 
 | 1418 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1419 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | _ACEOF | 
 | 1421 | fi | 
 | 1422 |  | 
 | 1423 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1424 |   case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1425 |      short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1426 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 |   cat <<\_ACEOF | 
 | 1428 |  | 
 | 1429 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1430 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1432 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1433 |   --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1434 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1435 |   --enable-framework[=INSTALLDIR] | 
 | 1436 |                           Build (MacOSX|Darwin) framework | 
 | 1437 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1438 |   --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 |   --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
 | 1440 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1441 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1442 |   --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1443 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1444 |   --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1445 |                           Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 |  | 
 | 1447 | Optional Packages: | 
 | 1448 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1449 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1450 |   --with-universal-archs=ARCH | 
 | 1451 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1452 |                           "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1453 |   --with-framework-name=FRAMEWORK | 
 | 1454 |                           specify an alternate name of the framework built | 
 | 1455 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1456 |   --without-gcc           never use gcc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1457 |   --with-cxx-main=<compiler> | 
 | 1458 |                           compile main() and link python executable with C++ | 
 | 1459 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1460 |   --with-suffix=.exe      set executable suffix | 
 | 1461 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1462 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1463 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1464 |                           library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1465 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 1466 |   --with-tcltk-includes='-I...' | 
 | 1467 |                           override search for Tcl and Tk include files | 
 | 1468 |   --with-tcltk-libs='-L...' | 
 | 1469 |                           override search for Tcl and Tk libs | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1470 |   --with-dbmliborder=db1:db2:... | 
 | 1471 |                           order to check db backends for dbm. Valid value is a | 
 | 1472 |                           colon separated string with the backend names | 
 | 1473 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1474 |   --with-signal-module    disable/enable signal module | 
 | 1475 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1476 |   --with(out)-threads[=DIRECTORY] | 
 | 1477 |                           disable/enable thread support | 
 | 1478 |   --with(out)-thread[=DIRECTORY] | 
 | 1479 |                           deprecated; use --with(out)-threads | 
 | 1480 |   --with-pth              use GNU pth threading libraries | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1481 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1482 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1483 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1484 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1485 |   --with-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1486 |   --with-fpectl           enable SIGFPE catching | 
 | 1487 |   --with-libm=STRING      math library | 
 | 1488 |   --with-libc=STRING      C library | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1489 |  | 
 | 1490 | Some influential environment variables: | 
 | 1491 |   CC          C compiler command | 
 | 1492 |   CFLAGS      C compiler flags | 
 | 1493 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1494 |               nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1495 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1496 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 |   CPP         C preprocessor | 
 | 1499 |  | 
 | 1500 | Use these variables to override the choices made by `configure' or to help | 
 | 1501 | it to find libraries and programs with nonstandard names/locations. | 
 | 1502 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1503 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | fi | 
 | 1507 |  | 
 | 1508 | if test "$ac_init_help" = "recursive"; then | 
 | 1509 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1511 |     test -d "$ac_dir" || | 
 | 1512 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1513 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 |     ac_builddir=. | 
 | 1515 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1516 | case "$ac_dir" in | 
 | 1517 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1518 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1519 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1520 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1521 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1522 |   case $ac_top_builddir_sub in | 
 | 1523 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1524 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1525 |   esac ;; | 
 | 1526 | esac | 
 | 1527 | ac_abs_top_builddir=$ac_pwd | 
 | 1528 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1529 | # for backward compatibility: | 
 | 1530 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 |  | 
 | 1532 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1533 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1535 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1536 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1537 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1539 |     ac_top_srcdir=$srcdir | 
 | 1540 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1541 |   *) # Relative name. | 
 | 1542 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1543 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1544 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1546 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1547 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1548 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1549 |     # Check for guested configure. | 
 | 1550 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1551 |       echo && | 
 | 1552 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1553 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1554 |       echo && | 
 | 1555 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1557 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1558 |     fi || ac_status=$? | 
 | 1559 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |   done | 
 | 1561 | fi | 
 | 1562 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1563 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | if $ac_init_version; then | 
 | 1565 |   cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1566 | python configure 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1567 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1569 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1570 | This configure script is free software; the Free Software Foundation | 
 | 1571 | gives unlimited permission to copy, distribute and modify it. | 
 | 1572 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1573 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1575 |  | 
 | 1576 | ## ------------------------ ## | 
 | 1577 | ## Autoconf initialization. ## | 
 | 1578 | ## ------------------------ ## | 
 | 1579 |  | 
 | 1580 | # ac_fn_c_try_compile LINENO | 
 | 1581 | # -------------------------- | 
 | 1582 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1583 | ac_fn_c_try_compile () | 
 | 1584 | { | 
 | 1585 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1586 |   rm -f conftest.$ac_objext | 
 | 1587 |   if { { ac_try="$ac_compile" | 
 | 1588 | case "(($ac_try" in | 
 | 1589 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1590 |   *) ac_try_echo=$ac_try;; | 
 | 1591 | esac | 
 | 1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1593 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1594 |   (eval "$ac_compile") 2>conftest.err | 
 | 1595 |   ac_status=$? | 
 | 1596 |   if test -s conftest.err; then | 
 | 1597 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1598 |     cat conftest.er1 >&5 | 
 | 1599 |     mv -f conftest.er1 conftest.err | 
 | 1600 |   fi | 
 | 1601 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1602 |   test $ac_status = 0; } && { | 
 | 1603 | 	 test -z "$ac_c_werror_flag" || | 
 | 1604 | 	 test ! -s conftest.err | 
 | 1605 |        } && test -s conftest.$ac_objext; then : | 
 | 1606 |   ac_retval=0 | 
 | 1607 | else | 
 | 1608 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1609 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1610 |  | 
 | 1611 | 	ac_retval=1 | 
 | 1612 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1613 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1614 |   as_fn_set_status $ac_retval | 
 | 1615 |  | 
 | 1616 | } # ac_fn_c_try_compile | 
 | 1617 |  | 
 | 1618 | # ac_fn_c_try_cpp LINENO | 
 | 1619 | # ---------------------- | 
 | 1620 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1621 | ac_fn_c_try_cpp () | 
 | 1622 | { | 
 | 1623 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1624 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1625 | case "(($ac_try" in | 
 | 1626 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1627 |   *) ac_try_echo=$ac_try;; | 
 | 1628 | esac | 
 | 1629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1630 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1631 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1632 |   ac_status=$? | 
 | 1633 |   if test -s conftest.err; then | 
 | 1634 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1635 |     cat conftest.er1 >&5 | 
 | 1636 |     mv -f conftest.er1 conftest.err | 
 | 1637 |   fi | 
 | 1638 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1639 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1640 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1641 | 	 test ! -s conftest.err | 
 | 1642 |        }; then : | 
 | 1643 |   ac_retval=0 | 
 | 1644 | else | 
 | 1645 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1646 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1647 |  | 
 | 1648 |     ac_retval=1 | 
 | 1649 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1650 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1651 |   as_fn_set_status $ac_retval | 
 | 1652 |  | 
 | 1653 | } # ac_fn_c_try_cpp | 
 | 1654 |  | 
 | 1655 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1656 | # ------------------------------------------------------- | 
 | 1657 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1658 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1659 | # accordingly. | 
 | 1660 | ac_fn_c_check_header_mongrel () | 
 | 1661 | { | 
 | 1662 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1663 |   if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1664 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1665 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1666 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1667 |   $as_echo_n "(cached) " >&6 | 
 | 1668 | fi | 
 | 1669 | eval ac_res=\$$3 | 
 | 1670 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1671 | $as_echo "$ac_res" >&6; } | 
 | 1672 | else | 
 | 1673 |   # Is the header compilable? | 
 | 1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1675 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1677 | /* end confdefs.h.  */ | 
 | 1678 | $4 | 
 | 1679 | #include <$2> | 
 | 1680 | _ACEOF | 
 | 1681 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1682 |   ac_header_compiler=yes | 
 | 1683 | else | 
 | 1684 |   ac_header_compiler=no | 
 | 1685 | fi | 
 | 1686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1688 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1689 |  | 
 | 1690 | # Is the header present? | 
 | 1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1692 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1694 | /* end confdefs.h.  */ | 
 | 1695 | #include <$2> | 
 | 1696 | _ACEOF | 
 | 1697 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1698 |   ac_header_preproc=yes | 
 | 1699 | else | 
 | 1700 |   ac_header_preproc=no | 
 | 1701 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1702 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1704 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1705 |  | 
 | 1706 | # So?  What about this header? | 
 | 1707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1708 |   yes:no: ) | 
 | 1709 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1710 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1711 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1712 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1713 |     ;; | 
 | 1714 |   no:yes:* ) | 
 | 1715 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1716 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1717 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1718 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1719 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1720 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1721 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1722 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1723 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1724 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1725 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1726 | ## Report this to http://bugs.python.org/ ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1727 | ## -------------------------------------- ##" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1728 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1729 |     ;; | 
 | 1730 | esac | 
 | 1731 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1732 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1733 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1734 |   $as_echo_n "(cached) " >&6 | 
 | 1735 | else | 
 | 1736 |   eval "$3=\$ac_header_compiler" | 
 | 1737 | fi | 
 | 1738 | eval ac_res=\$$3 | 
 | 1739 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1740 | $as_echo "$ac_res" >&6; } | 
 | 1741 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1742 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1743 |  | 
 | 1744 | } # ac_fn_c_check_header_mongrel | 
 | 1745 |  | 
 | 1746 | # ac_fn_c_try_run LINENO | 
 | 1747 | # ---------------------- | 
 | 1748 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1749 | # that executables *can* be run. | 
 | 1750 | ac_fn_c_try_run () | 
 | 1751 | { | 
 | 1752 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1753 |   if { { ac_try="$ac_link" | 
 | 1754 | case "(($ac_try" in | 
 | 1755 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1756 |   *) ac_try_echo=$ac_try;; | 
 | 1757 | esac | 
 | 1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1759 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1760 |   (eval "$ac_link") 2>&5 | 
 | 1761 |   ac_status=$? | 
 | 1762 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1763 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1764 |   { { case "(($ac_try" in | 
 | 1765 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1766 |   *) ac_try_echo=$ac_try;; | 
 | 1767 | esac | 
 | 1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1769 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1770 |   (eval "$ac_try") 2>&5 | 
 | 1771 |   ac_status=$? | 
 | 1772 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1773 |   test $ac_status = 0; }; }; then : | 
 | 1774 |   ac_retval=0 | 
 | 1775 | else | 
 | 1776 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1777 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1778 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1779 |  | 
 | 1780 |        ac_retval=$ac_status | 
 | 1781 | fi | 
 | 1782 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1783 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1784 |   as_fn_set_status $ac_retval | 
 | 1785 |  | 
 | 1786 | } # ac_fn_c_try_run | 
 | 1787 |  | 
 | 1788 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1789 | # ------------------------------------------------------- | 
 | 1790 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1791 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1792 | ac_fn_c_check_header_compile () | 
 | 1793 | { | 
 | 1794 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1795 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1796 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1797 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1798 |   $as_echo_n "(cached) " >&6 | 
 | 1799 | else | 
 | 1800 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1801 | /* end confdefs.h.  */ | 
 | 1802 | $4 | 
 | 1803 | #include <$2> | 
 | 1804 | _ACEOF | 
 | 1805 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1806 |   eval "$3=yes" | 
 | 1807 | else | 
 | 1808 |   eval "$3=no" | 
 | 1809 | fi | 
 | 1810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1811 | fi | 
 | 1812 | eval ac_res=\$$3 | 
 | 1813 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1814 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1815 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1816 |  | 
 | 1817 | } # ac_fn_c_check_header_compile | 
 | 1818 |  | 
 | 1819 | # ac_fn_c_try_link LINENO | 
 | 1820 | # ----------------------- | 
 | 1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1822 | ac_fn_c_try_link () | 
 | 1823 | { | 
 | 1824 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1825 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1826 |   if { { ac_try="$ac_link" | 
 | 1827 | case "(($ac_try" in | 
 | 1828 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1829 |   *) ac_try_echo=$ac_try;; | 
 | 1830 | esac | 
 | 1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1832 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1833 |   (eval "$ac_link") 2>conftest.err | 
 | 1834 |   ac_status=$? | 
 | 1835 |   if test -s conftest.err; then | 
 | 1836 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1837 |     cat conftest.er1 >&5 | 
 | 1838 |     mv -f conftest.er1 conftest.err | 
 | 1839 |   fi | 
 | 1840 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1841 |   test $ac_status = 0; } && { | 
 | 1842 | 	 test -z "$ac_c_werror_flag" || | 
 | 1843 | 	 test ! -s conftest.err | 
 | 1844 |        } && test -s conftest$ac_exeext && { | 
 | 1845 | 	 test "$cross_compiling" = yes || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1846 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1847 |        }; then : | 
 | 1848 |   ac_retval=0 | 
 | 1849 | else | 
 | 1850 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1851 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1852 |  | 
 | 1853 | 	ac_retval=1 | 
 | 1854 | fi | 
 | 1855 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1856 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1857 |   # interfere with the next link command; also delete a directory that is | 
 | 1858 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1859 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1860 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1861 |   as_fn_set_status $ac_retval | 
 | 1862 |  | 
 | 1863 | } # ac_fn_c_try_link | 
 | 1864 |  | 
 | 1865 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1866 | # ------------------------------------------- | 
 | 1867 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1868 | # variable VAR accordingly. | 
 | 1869 | ac_fn_c_check_type () | 
 | 1870 | { | 
 | 1871 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1872 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1873 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1874 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1875 |   $as_echo_n "(cached) " >&6 | 
 | 1876 | else | 
 | 1877 |   eval "$3=no" | 
 | 1878 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1879 | /* end confdefs.h.  */ | 
 | 1880 | $4 | 
 | 1881 | int | 
 | 1882 | main () | 
 | 1883 | { | 
 | 1884 | if (sizeof ($2)) | 
 | 1885 | 	 return 0; | 
 | 1886 |   ; | 
 | 1887 |   return 0; | 
 | 1888 | } | 
 | 1889 | _ACEOF | 
 | 1890 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1891 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1892 | /* end confdefs.h.  */ | 
 | 1893 | $4 | 
 | 1894 | int | 
 | 1895 | main () | 
 | 1896 | { | 
 | 1897 | if (sizeof (($2))) | 
 | 1898 | 	    return 0; | 
 | 1899 |   ; | 
 | 1900 |   return 0; | 
 | 1901 | } | 
 | 1902 | _ACEOF | 
 | 1903 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1904 |  | 
 | 1905 | else | 
 | 1906 |   eval "$3=yes" | 
 | 1907 | fi | 
 | 1908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1909 | fi | 
 | 1910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1911 | fi | 
 | 1912 | eval ac_res=\$$3 | 
 | 1913 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1914 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1915 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1916 |  | 
 | 1917 | } # ac_fn_c_check_type | 
 | 1918 |  | 
 | 1919 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1920 | # ------------------------------------ | 
 | 1921 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1922 | # accordingly. | 
 | 1923 | ac_fn_c_find_uintX_t () | 
 | 1924 | { | 
 | 1925 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1926 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1927 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1928 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1929 |   $as_echo_n "(cached) " >&6 | 
 | 1930 | else | 
 | 1931 |   eval "$3=no" | 
 | 1932 |      # Order is important - never check a type that is potentially smaller | 
 | 1933 |      # than half of the expected target width. | 
 | 1934 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1935 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1936 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1937 | /* end confdefs.h.  */ | 
 | 1938 | $ac_includes_default | 
 | 1939 | int | 
 | 1940 | main () | 
 | 1941 | { | 
 | 1942 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1943 | test_array [0] = 0; | 
 | 1944 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1945 |  | 
 | 1946 |   ; | 
 | 1947 |   return 0; | 
 | 1948 | } | 
 | 1949 | _ACEOF | 
 | 1950 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1951 |   case $ac_type in #( | 
 | 1952 |   uint$2_t) : | 
 | 1953 |     eval "$3=yes" ;; #( | 
 | 1954 |   *) : | 
 | 1955 |     eval "$3=\$ac_type" ;; | 
 | 1956 | esac | 
 | 1957 | fi | 
 | 1958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1959 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1960 |  | 
 | 1961 | else | 
 | 1962 |   break | 
 | 1963 | fi | 
 | 1964 |      done | 
 | 1965 | fi | 
 | 1966 | eval ac_res=\$$3 | 
 | 1967 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1968 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1969 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1970 |  | 
 | 1971 | } # ac_fn_c_find_uintX_t | 
 | 1972 |  | 
 | 1973 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1974 | # ----------------------------------- | 
 | 1975 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1976 | # accordingly. | 
 | 1977 | ac_fn_c_find_intX_t () | 
 | 1978 | { | 
 | 1979 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1981 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1982 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1983 |   $as_echo_n "(cached) " >&6 | 
 | 1984 | else | 
 | 1985 |   eval "$3=no" | 
 | 1986 |      # Order is important - never check a type that is potentially smaller | 
 | 1987 |      # than half of the expected target width. | 
 | 1988 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 1989 | 	 'long long int' 'short int' 'signed char'; do | 
 | 1990 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1991 | /* end confdefs.h.  */ | 
 | 1992 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1993 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1994 | int | 
 | 1995 | main () | 
 | 1996 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1997 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1998 | test_array [0] = 0; | 
 | 1999 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2000 |  | 
 | 2001 |   ; | 
 | 2002 |   return 0; | 
 | 2003 | } | 
 | 2004 | _ACEOF | 
 | 2005 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2006 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2007 | /* end confdefs.h.  */ | 
 | 2008 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2009 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2010 | int | 
 | 2011 | main () | 
 | 2012 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2013 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2014 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2015 | test_array [0] = 0; | 
 | 2016 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2017 |  | 
 | 2018 |   ; | 
 | 2019 |   return 0; | 
 | 2020 | } | 
 | 2021 | _ACEOF | 
 | 2022 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2023 |  | 
 | 2024 | else | 
 | 2025 |   case $ac_type in #( | 
 | 2026 |   int$2_t) : | 
 | 2027 |     eval "$3=yes" ;; #( | 
 | 2028 |   *) : | 
 | 2029 |     eval "$3=\$ac_type" ;; | 
 | 2030 | esac | 
 | 2031 | fi | 
 | 2032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2033 | fi | 
 | 2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2035 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2036 |  | 
 | 2037 | else | 
 | 2038 |   break | 
 | 2039 | fi | 
 | 2040 |      done | 
 | 2041 | fi | 
 | 2042 | eval ac_res=\$$3 | 
 | 2043 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2044 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2045 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2046 |  | 
 | 2047 | } # ac_fn_c_find_intX_t | 
 | 2048 |  | 
 | 2049 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2050 | # -------------------------------------------- | 
 | 2051 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2052 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2053 | # computed | 
 | 2054 | ac_fn_c_compute_int () | 
 | 2055 | { | 
 | 2056 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2057 |   if test "$cross_compiling" = yes; then | 
 | 2058 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 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)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2066 | test_array [0] = 0; | 
 | 2067 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2068 |  | 
 | 2069 |   ; | 
 | 2070 |   return 0; | 
 | 2071 | } | 
 | 2072 | _ACEOF | 
 | 2073 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2074 |   ac_lo=0 ac_mid=0 | 
 | 2075 |   while :; do | 
 | 2076 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2077 | /* end confdefs.h.  */ | 
 | 2078 | $4 | 
 | 2079 | int | 
 | 2080 | main () | 
 | 2081 | { | 
 | 2082 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2083 | test_array [0] = 0; | 
 | 2084 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2085 |  | 
 | 2086 |   ; | 
 | 2087 |   return 0; | 
 | 2088 | } | 
 | 2089 | _ACEOF | 
 | 2090 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2091 |   ac_hi=$ac_mid; break | 
 | 2092 | else | 
 | 2093 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2094 | 			if test $ac_lo -le $ac_mid; then | 
 | 2095 | 			  ac_lo= ac_hi= | 
 | 2096 | 			  break | 
 | 2097 | 			fi | 
 | 2098 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2099 | fi | 
 | 2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2101 |   done | 
 | 2102 | else | 
 | 2103 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2104 | /* end confdefs.h.  */ | 
 | 2105 | $4 | 
 | 2106 | int | 
 | 2107 | main () | 
 | 2108 | { | 
 | 2109 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2110 | test_array [0] = 0; | 
 | 2111 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2112 |  | 
 | 2113 |   ; | 
 | 2114 |   return 0; | 
 | 2115 | } | 
 | 2116 | _ACEOF | 
 | 2117 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2118 |   ac_hi=-1 ac_mid=-1 | 
 | 2119 |   while :; do | 
 | 2120 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2121 | /* end confdefs.h.  */ | 
 | 2122 | $4 | 
 | 2123 | int | 
 | 2124 | main () | 
 | 2125 | { | 
 | 2126 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2127 | test_array [0] = 0; | 
 | 2128 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2129 |  | 
 | 2130 |   ; | 
 | 2131 |   return 0; | 
 | 2132 | } | 
 | 2133 | _ACEOF | 
 | 2134 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2135 |   ac_lo=$ac_mid; break | 
 | 2136 | else | 
 | 2137 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2138 | 			if test $ac_mid -le $ac_hi; then | 
 | 2139 | 			  ac_lo= ac_hi= | 
 | 2140 | 			  break | 
 | 2141 | 			fi | 
 | 2142 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2143 | fi | 
 | 2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2145 |   done | 
 | 2146 | else | 
 | 2147 |   ac_lo= ac_hi= | 
 | 2148 | fi | 
 | 2149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2150 | fi | 
 | 2151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2152 | # Binary search between lo and hi bounds. | 
 | 2153 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2154 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2155 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2156 | /* end confdefs.h.  */ | 
 | 2157 | $4 | 
 | 2158 | int | 
 | 2159 | main () | 
 | 2160 | { | 
 | 2161 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2162 | test_array [0] = 0; | 
 | 2163 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2164 |  | 
 | 2165 |   ; | 
 | 2166 |   return 0; | 
 | 2167 | } | 
 | 2168 | _ACEOF | 
 | 2169 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2170 |   ac_hi=$ac_mid | 
 | 2171 | else | 
 | 2172 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2173 | fi | 
 | 2174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2175 | done | 
 | 2176 | case $ac_lo in #(( | 
 | 2177 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2178 | '') ac_retval=1 ;; | 
 | 2179 | esac | 
 | 2180 |   else | 
 | 2181 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2182 | /* end confdefs.h.  */ | 
 | 2183 | $4 | 
 | 2184 | static long int longval () { return $2; } | 
 | 2185 | static unsigned long int ulongval () { return $2; } | 
 | 2186 | #include <stdio.h> | 
 | 2187 | #include <stdlib.h> | 
 | 2188 | int | 
 | 2189 | main () | 
 | 2190 | { | 
 | 2191 |  | 
 | 2192 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2193 |   if (! f) | 
 | 2194 |     return 1; | 
 | 2195 |   if (($2) < 0) | 
 | 2196 |     { | 
 | 2197 |       long int i = longval (); | 
 | 2198 |       if (i != ($2)) | 
 | 2199 | 	return 1; | 
 | 2200 |       fprintf (f, "%ld", i); | 
 | 2201 |     } | 
 | 2202 |   else | 
 | 2203 |     { | 
 | 2204 |       unsigned long int i = ulongval (); | 
 | 2205 |       if (i != ($2)) | 
 | 2206 | 	return 1; | 
 | 2207 |       fprintf (f, "%lu", i); | 
 | 2208 |     } | 
 | 2209 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2210 |      on some platforms.  */ | 
 | 2211 |   return ferror (f) || fclose (f) != 0; | 
 | 2212 |  | 
 | 2213 |   ; | 
 | 2214 |   return 0; | 
 | 2215 | } | 
 | 2216 | _ACEOF | 
 | 2217 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2218 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2219 | else | 
 | 2220 |   ac_retval=1 | 
 | 2221 | fi | 
 | 2222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2223 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2224 | rm -f conftest.val | 
 | 2225 |  | 
 | 2226 |   fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2227 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2228 |   as_fn_set_status $ac_retval | 
 | 2229 |  | 
 | 2230 | } # ac_fn_c_compute_int | 
 | 2231 |  | 
 | 2232 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2233 | # ---------------------------------- | 
 | 2234 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2235 | ac_fn_c_check_func () | 
 | 2236 | { | 
 | 2237 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2238 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2239 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2240 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2241 |   $as_echo_n "(cached) " >&6 | 
 | 2242 | else | 
 | 2243 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2244 | /* end confdefs.h.  */ | 
 | 2245 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2246 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2247 | #define $2 innocuous_$2 | 
 | 2248 |  | 
 | 2249 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2250 |     which can conflict with char $2 (); below. | 
 | 2251 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2252 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2253 |  | 
 | 2254 | #ifdef __STDC__ | 
 | 2255 | # include <limits.h> | 
 | 2256 | #else | 
 | 2257 | # include <assert.h> | 
 | 2258 | #endif | 
 | 2259 |  | 
 | 2260 | #undef $2 | 
 | 2261 |  | 
 | 2262 | /* Override any GCC internal prototype to avoid an error. | 
 | 2263 |    Use char because int might match the return type of a GCC | 
 | 2264 |    builtin and then its argument prototype would still apply.  */ | 
 | 2265 | #ifdef __cplusplus | 
 | 2266 | extern "C" | 
 | 2267 | #endif | 
 | 2268 | char $2 (); | 
 | 2269 | /* The GNU C library defines this for functions which it implements | 
 | 2270 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2271 |     something starting with __ and the normal name is an alias.  */ | 
 | 2272 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2273 | choke me | 
 | 2274 | #endif | 
 | 2275 |  | 
 | 2276 | int | 
 | 2277 | main () | 
 | 2278 | { | 
 | 2279 | return $2 (); | 
 | 2280 |   ; | 
 | 2281 |   return 0; | 
 | 2282 | } | 
 | 2283 | _ACEOF | 
 | 2284 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2285 |   eval "$3=yes" | 
 | 2286 | else | 
 | 2287 |   eval "$3=no" | 
 | 2288 | fi | 
 | 2289 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2290 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2291 | fi | 
 | 2292 | eval ac_res=\$$3 | 
 | 2293 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2294 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2295 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2296 |  | 
 | 2297 | } # ac_fn_c_check_func | 
 | 2298 |  | 
 | 2299 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2300 | # ---------------------------------------------------- | 
 | 2301 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2302 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2303 | ac_fn_c_check_member () | 
 | 2304 | { | 
 | 2305 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2306 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2307 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2308 | if eval \${$4+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2309 |   $as_echo_n "(cached) " >&6 | 
 | 2310 | else | 
 | 2311 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2312 | /* end confdefs.h.  */ | 
 | 2313 | $5 | 
 | 2314 | int | 
 | 2315 | main () | 
 | 2316 | { | 
 | 2317 | static $2 ac_aggr; | 
 | 2318 | if (ac_aggr.$3) | 
 | 2319 | return 0; | 
 | 2320 |   ; | 
 | 2321 |   return 0; | 
 | 2322 | } | 
 | 2323 | _ACEOF | 
 | 2324 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2325 |   eval "$4=yes" | 
 | 2326 | else | 
 | 2327 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2328 | /* end confdefs.h.  */ | 
 | 2329 | $5 | 
 | 2330 | int | 
 | 2331 | main () | 
 | 2332 | { | 
 | 2333 | static $2 ac_aggr; | 
 | 2334 | if (sizeof ac_aggr.$3) | 
 | 2335 | return 0; | 
 | 2336 |   ; | 
 | 2337 |   return 0; | 
 | 2338 | } | 
 | 2339 | _ACEOF | 
 | 2340 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2341 |   eval "$4=yes" | 
 | 2342 | else | 
 | 2343 |   eval "$4=no" | 
 | 2344 | fi | 
 | 2345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2346 | fi | 
 | 2347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2348 | fi | 
 | 2349 | eval ac_res=\$$4 | 
 | 2350 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2351 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2352 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2353 |  | 
 | 2354 | } # ac_fn_c_check_member | 
 | 2355 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2356 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2357 | # --------------------------------------------- | 
 | 2358 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2359 | # accordingly. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2360 | ac_fn_c_check_decl () | 
 | 2361 | { | 
 | 2362 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2363 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2364 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2365 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2366 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2367 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2368 |   $as_echo_n "(cached) " >&6 | 
 | 2369 | else | 
 | 2370 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2371 | /* end confdefs.h.  */ | 
 | 2372 | $4 | 
 | 2373 | int | 
 | 2374 | main () | 
 | 2375 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2376 | #ifndef $as_decl_name | 
 | 2377 | #ifdef __cplusplus | 
 | 2378 |   (void) $as_decl_use; | 
 | 2379 | #else | 
 | 2380 |   (void) $as_decl_name; | 
 | 2381 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2382 | #endif | 
 | 2383 |  | 
 | 2384 |   ; | 
 | 2385 |   return 0; | 
 | 2386 | } | 
 | 2387 | _ACEOF | 
 | 2388 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2389 |   eval "$3=yes" | 
 | 2390 | else | 
 | 2391 |   eval "$3=no" | 
 | 2392 | fi | 
 | 2393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2394 | fi | 
 | 2395 | eval ac_res=\$$3 | 
 | 2396 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2397 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2398 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2399 |  | 
 | 2400 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | This file contains any messages produced by compilers while | 
 | 2403 | running configure, to aid debugging if configure makes a mistake. | 
 | 2404 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2405 | It was created by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2406 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 |  | 
 | 2408 |   $ $0 $@ | 
 | 2409 |  | 
 | 2410 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2411 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | { | 
 | 2413 | cat <<_ASUNAME | 
 | 2414 | ## --------- ## | 
 | 2415 | ## Platform. ## | 
 | 2416 | ## --------- ## | 
 | 2417 |  | 
 | 2418 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2419 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2420 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2421 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2422 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2423 |  | 
 | 2424 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2425 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2426 |  | 
 | 2427 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2428 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2429 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2430 | /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] | 2431 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2432 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2433 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2434 |  | 
 | 2435 | _ASUNAME | 
 | 2436 |  | 
 | 2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2438 | for as_dir in $PATH | 
 | 2439 | do | 
 | 2440 |   IFS=$as_save_IFS | 
 | 2441 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2442 |     $as_echo "PATH: $as_dir" | 
 | 2443 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2444 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 |  | 
 | 2446 | } >&5 | 
 | 2447 |  | 
 | 2448 | cat >&5 <<_ACEOF | 
 | 2449 |  | 
 | 2450 |  | 
 | 2451 | ## ----------- ## | 
 | 2452 | ## Core tests. ## | 
 | 2453 | ## ----------- ## | 
 | 2454 |  | 
 | 2455 | _ACEOF | 
 | 2456 |  | 
 | 2457 |  | 
 | 2458 | # Keep a trace of the command line. | 
 | 2459 | # 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] | 2460 | # 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] | 2461 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | ac_configure_args0= | 
 | 2465 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2466 | ac_must_keep_next=false | 
 | 2467 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2469 |   for ac_arg | 
 | 2470 |   do | 
 | 2471 |     case $ac_arg in | 
 | 2472 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2473 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2474 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2475 |       continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2476 |     *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2477 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 |     esac | 
 | 2479 |     case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2480 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2481 |     2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2482 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2484 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2485 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2486 | 	case $ac_arg in | 
 | 2487 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2488 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2489 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2490 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2491 | 	    case "$ac_configure_args0 " in | 
 | 2492 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2493 | 	    esac | 
 | 2494 | 	    ;; | 
 | 2495 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2496 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2497 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2498 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2499 |       ;; | 
 | 2500 |     esac | 
 | 2501 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2502 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2503 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2504 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 |  | 
 | 2506 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2507 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2508 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2509 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2510 | # 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] | 2511 | trap 'exit_status=$? | 
 | 2512 |   # Save into config.log some information that might help in debugging. | 
 | 2513 |   { | 
 | 2514 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2516 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | ## Cache variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2518 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 |     echo | 
 | 2520 |     # The following way of writing the cache mishandles newlines in values, | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2521 | ( | 
 | 2522 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2523 |     eval ac_val=\$$ac_var | 
 | 2524 |     case $ac_val in #( | 
 | 2525 |     *${as_nl}*) | 
 | 2526 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2527 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2528 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2529 |       esac | 
 | 2530 |       case $ac_var in #( | 
 | 2531 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2532 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2533 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2534 |       esac ;; | 
 | 2535 |     esac | 
 | 2536 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2538 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2539 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 |       sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2541 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2542 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2543 |       ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2544 |     *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2545 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2546 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2547 |     esac | | 
 | 2548 |     sort | 
 | 2549 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2551 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2552 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 | ## Output variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2554 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 |     echo | 
 | 2556 |     for ac_var in $ac_subst_vars | 
 | 2557 |     do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2558 |       eval ac_val=\$$ac_var | 
 | 2559 |       case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2560 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2561 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2562 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2563 |     done | sort | 
 | 2564 |     echo | 
 | 2565 |  | 
 | 2566 |     if test -n "$ac_subst_files"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2567 |       $as_echo "## ------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2568 | ## File substitutions. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2569 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 |       echo | 
 | 2571 |       for ac_var in $ac_subst_files | 
 | 2572 |       do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 | 	eval ac_val=\$$ac_var | 
 | 2574 | 	case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2575 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2576 | 	esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2577 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2578 |       done | sort | 
 | 2579 |       echo | 
 | 2580 |     fi | 
 | 2581 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 |     if test -s confdefs.h; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2583 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | ## confdefs.h. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2585 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 |       echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2587 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 |       echo | 
 | 2589 |     fi | 
 | 2590 |     test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2591 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2592 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 |   } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2594 |   rm -f core *.core core.conftest.* && | 
 | 2595 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 |     exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2597 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2599 |   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] | 2600 | done | 
 | 2601 | ac_signal=0 | 
 | 2602 |  | 
 | 2603 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2604 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2606 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | # Predefined preprocessor variables. | 
 | 2609 |  | 
 | 2610 | cat >>confdefs.h <<_ACEOF | 
 | 2611 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2612 | _ACEOF | 
 | 2613 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | cat >>confdefs.h <<_ACEOF | 
 | 2615 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2616 | _ACEOF | 
 | 2617 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | cat >>confdefs.h <<_ACEOF | 
 | 2619 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2620 | _ACEOF | 
 | 2621 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | cat >>confdefs.h <<_ACEOF | 
 | 2623 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2624 | _ACEOF | 
 | 2625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | cat >>confdefs.h <<_ACEOF | 
 | 2627 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2628 | _ACEOF | 
 | 2629 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2630 | cat >>confdefs.h <<_ACEOF | 
 | 2631 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2632 | _ACEOF | 
 | 2633 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 |  | 
 | 2635 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2636 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2637 | ac_site_file1=NONE | 
 | 2638 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2639 | if test -n "$CONFIG_SITE"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2640 |   # We do not want a PATH search for config.site. | 
 | 2641 |   case $CONFIG_SITE in #(( | 
 | 2642 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2643 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2644 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2645 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2646 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2647 |   ac_site_file1=$prefix/share/config.site | 
 | 2648 |   ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2649 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2650 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2651 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2652 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2653 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2655 |   test "x$ac_site_file" = xNONE && continue | 
 | 2656 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2657 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2658 | $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] | 2659 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2660 |     . "$ac_site_file" \ | 
 | 2661 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2663 | as_fn_error $? "failed to load site script $ac_site_file | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2664 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2665 |   fi | 
 | 2666 | done | 
 | 2667 |  | 
 | 2668 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2669 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2670 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2671 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2672 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2673 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 |     case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2676 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 |     esac | 
 | 2678 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2680 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2681 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 |   >$cache_file | 
 | 2683 | fi | 
 | 2684 |  | 
 | 2685 | # Check that the precious variables saved in the cache have kept the same | 
 | 2686 | # value. | 
 | 2687 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2688 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2690 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2691 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2692 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 |   case $ac_old_set,$ac_new_set in | 
 | 2694 |     set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2695 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2696 | $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] | 2697 |       ac_cache_corrupted=: ;; | 
 | 2698 |     ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2699 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2700 | $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] | 2701 |       ac_cache_corrupted=: ;; | 
 | 2702 |     ,);; | 
 | 2703 |     *) | 
 | 2704 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2705 | 	# differences in whitespace do not lead to failure. | 
 | 2706 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2707 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2708 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2709 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2710 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2711 | 	  ac_cache_corrupted=: | 
 | 2712 | 	else | 
 | 2713 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2714 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2715 | 	  eval $ac_var=\$ac_old_val | 
 | 2716 | 	fi | 
 | 2717 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2718 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2719 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2720 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2721 |       fi;; | 
 | 2722 |   esac | 
 | 2723 |   # Pass precious variables to config.status. | 
 | 2724 |   if test "$ac_new_set" = set; then | 
 | 2725 |     case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2726 |     *\'*) 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] | 2727 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2728 |     esac | 
 | 2729 |     case " $ac_configure_args " in | 
 | 2730 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2731 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 |     esac | 
 | 2733 |   fi | 
 | 2734 | done | 
 | 2735 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2736 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2738 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2739 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2740 |   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] | 2741 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2742 | ## -------------------- ## | 
 | 2743 | ## Main body of script. ## | 
 | 2744 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2745 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2746 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2747 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2751 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2752 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2753 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2754 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 |  | 
 | 2756 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2757 | ac_aux_dir= | 
 | 2758 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2759 |   if test -f "$ac_dir/install-sh"; then | 
 | 2760 |     ac_aux_dir=$ac_dir | 
 | 2761 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2762 |     break | 
 | 2763 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2764 |     ac_aux_dir=$ac_dir | 
 | 2765 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2766 |     break | 
 | 2767 |   elif test -f "$ac_dir/shtool"; then | 
 | 2768 |     ac_aux_dir=$ac_dir | 
 | 2769 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2770 |     break | 
 | 2771 |   fi | 
 | 2772 | done | 
 | 2773 | if test -z "$ac_aux_dir"; then | 
 | 2774 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2775 | fi | 
 | 2776 |  | 
 | 2777 | # These three variables are undocumented and unsupported, | 
 | 2778 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2779 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2780 | # whose full name contains unusual characters. | 
 | 2781 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2782 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2783 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2784 |  | 
 | 2785 |  | 
 | 2786 | # Make sure we can run config.sub. | 
 | 2787 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2788 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2789 |  | 
 | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2791 | $as_echo_n "checking build system type... " >&6; } | 
 | 2792 | if ${ac_cv_build+:} false; then : | 
 | 2793 |   $as_echo_n "(cached) " >&6 | 
 | 2794 | else | 
 | 2795 |   ac_build_alias=$build_alias | 
 | 2796 | test "x$ac_build_alias" = x && | 
 | 2797 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2798 | test "x$ac_build_alias" = x && | 
 | 2799 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2800 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2801 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2802 |  | 
 | 2803 | fi | 
 | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2805 | $as_echo "$ac_cv_build" >&6; } | 
 | 2806 | case $ac_cv_build in | 
 | 2807 | *-*-*) ;; | 
 | 2808 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2809 | esac | 
 | 2810 | build=$ac_cv_build | 
 | 2811 | ac_save_IFS=$IFS; IFS='-' | 
 | 2812 | set x $ac_cv_build | 
 | 2813 | shift | 
 | 2814 | build_cpu=$1 | 
 | 2815 | build_vendor=$2 | 
 | 2816 | shift; shift | 
 | 2817 | # Remember, the first character of IFS is used to create $*, | 
 | 2818 | # except with old shells: | 
 | 2819 | build_os=$* | 
 | 2820 | IFS=$ac_save_IFS | 
 | 2821 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2822 |  | 
 | 2823 |  | 
 | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2825 | $as_echo_n "checking host system type... " >&6; } | 
 | 2826 | if ${ac_cv_host+:} false; then : | 
 | 2827 |   $as_echo_n "(cached) " >&6 | 
 | 2828 | else | 
 | 2829 |   if test "x$host_alias" = x; then | 
 | 2830 |   ac_cv_host=$ac_cv_build | 
 | 2831 | else | 
 | 2832 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2833 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2834 | fi | 
 | 2835 |  | 
 | 2836 | fi | 
 | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2838 | $as_echo "$ac_cv_host" >&6; } | 
 | 2839 | case $ac_cv_host in | 
 | 2840 | *-*-*) ;; | 
 | 2841 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2842 | esac | 
 | 2843 | host=$ac_cv_host | 
 | 2844 | ac_save_IFS=$IFS; IFS='-' | 
 | 2845 | set x $ac_cv_host | 
 | 2846 | shift | 
 | 2847 | host_cpu=$1 | 
 | 2848 | host_vendor=$2 | 
 | 2849 | shift; shift | 
 | 2850 | # Remember, the first character of IFS is used to create $*, | 
 | 2851 | # except with old shells: | 
 | 2852 | host_os=$* | 
 | 2853 | IFS=$ac_save_IFS | 
 | 2854 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2855 |  | 
 | 2856 |  | 
 | 2857 |  | 
 | 2858 |  | 
 | 2859 |  | 
| Ned Deily | 983df86 | 2014-08-22 13:30:59 -0700 | [diff] [blame^] | 2860 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 2861 | rm -f pybuilddir.txt | 
 | 2862 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2863 | if test "$cross_compiling" = yes; then | 
 | 2864 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 2865 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 2866 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 2867 |         for interp in python$PACKAGE_VERSION python2 python; do | 
 | 2868 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 2869 | 	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then | 
 | 2870 | 	        break | 
 | 2871 | 	    fi | 
 | 2872 |             interp= | 
 | 2873 | 	done | 
 | 2874 |         if test x$interp = x; then | 
 | 2875 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 2876 | 	fi | 
 | 2877 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 2878 | $as_echo "$interp" >&6; } | 
 | 2879 | 	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp | 
 | 2880 |     fi | 
 | 2881 | elif test "$cross_compiling" = maybe; then | 
 | 2882 |     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
 | 2883 | else | 
 | 2884 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
 | 2885 | fi | 
 | 2886 |  | 
 | 2887 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2888 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2889 | if test "$prefix" != "/"; then | 
 | 2890 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2891 | fi | 
 | 2892 |  | 
 | 2893 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 |  | 
 | 2895 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2896 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2897 | # with other autoconf-based packages that include Python.h | 
 | 2898 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2899 | rm confdefs.h | 
 | 2900 | mv confdefs.h.new confdefs.h | 
 | 2901 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2902 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2903 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2904 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2905 |  | 
 | 2906 | SOVERSION=1.0 | 
 | 2907 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2908 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2909 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2911 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2912 |  | 
 | 2913 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2914 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2915 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2916 | # them. | 
 | 2917 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2918 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2919 |  | 
 | 2920 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2921 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2922 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2923 | # them. | 
 | 2924 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2925 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2926 |  | 
 | 2927 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2928 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2929 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2930 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2931 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2932 |  | 
 | 2933 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2934 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2935 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2936 | # them. | 
 | 2937 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2938 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2939 |  | 
 | 2940 |  | 
 | 2941 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2942 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2943 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2944 | # Arguments passed to configure. | 
 | 2945 |  | 
 | 2946 | CONFIG_ARGS="$ac_configure_args" | 
 | 2947 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2949 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2950 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2951 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2952 |   enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2953 | 	case $enableval in | 
 | 2954 | 	yes) | 
 | 2955 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2956 | 		if test ! -d "${enableval}" | 
 | 2957 | 		then | 
 | 2958 | 			enableval=/ | 
 | 2959 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2960 | 		;; | 
 | 2961 | 	esac | 
 | 2962 | 	case $enableval in | 
 | 2963 | 	no) | 
 | 2964 | 		UNIVERSALSDK= | 
 | 2965 | 		enable_universalsdk= | 
 | 2966 | 		;; | 
 | 2967 | 	*) | 
 | 2968 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2969 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2970 | 		then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2971 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2972 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2973 | 		;; | 
 | 2974 | 	esac | 
 | 2975 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2976 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2977 | else | 
 | 2978 |  | 
 | 2979 |    	UNIVERSALSDK= | 
 | 2980 | 	enable_universalsdk= | 
 | 2981 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2982 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2983 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2984 | if test -n "${UNIVERSALSDK}" | 
 | 2985 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2986 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 2987 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2988 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2989 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2990 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2991 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2992 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2993 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2994 |  | 
| Ned Deily | 8e60f6e | 2013-05-30 00:14:29 -0700 | [diff] [blame] | 2995 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2996 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2997 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2998 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3000 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3001 |  | 
 | 3002 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3003 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3004 |   withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3005 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 3006 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3007 | 	UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3008 |         if test "${enable_universalsdk}" ; then | 
 | 3009 | 		: | 
 | 3010 | 	else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3011 | 		as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3012 | 	fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3013 |  | 
 | 3014 | else | 
 | 3015 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3016 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 3017 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3018 |  | 
 | 3019 | fi | 
 | 3020 |  | 
 | 3021 |  | 
 | 3022 |  | 
 | 3023 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3024 |  | 
 | 3025 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3026 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3027 |   withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3028 |     if test "${enable_framework}"; then | 
 | 3029 | 	    : | 
 | 3030 |     else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3031 | 	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3032 |     fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3033 |     PYTHONFRAMEWORK=${withval} | 
 | 3034 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3035 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3036 |  | 
 | 3037 | else | 
 | 3038 |  | 
 | 3039 |     PYTHONFRAMEWORK=Python | 
 | 3040 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3041 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3042 |  | 
 | 3043 | fi | 
 | 3044 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3045 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3046 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3047 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3048 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3049 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3050 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3051 | 	esac | 
 | 3052 | 	case $enableval in | 
 | 3053 | 	no) | 
 | 3054 | 		PYTHONFRAMEWORK= | 
 | 3055 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3056 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3057 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3058 | 		FRAMEWORKINSTALLFIRST= | 
 | 3059 | 		FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3060 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3061 | 		FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3062 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3063 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3064 | 		else | 
 | 3065 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3066 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3067 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3068 | 		;; | 
 | 3069 | 	*) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3070 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3071 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3072 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3073 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3074 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3075 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3076 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3077 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3078 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3079 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3080 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3081 | 		else | 
 | 3082 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3083 | 		fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3084 |  | 
 | 3085 | 		case "${enableval}" in | 
 | 3086 | 		/System*) | 
 | 3087 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3088 | 			if test "${prefix}" = "NONE" ; then | 
 | 3089 | 				# See below | 
 | 3090 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3091 | 			fi | 
 | 3092 | 			;; | 
 | 3093 |  | 
 | 3094 | 		/Library*) | 
 | 3095 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3096 | 			;; | 
 | 3097 |  | 
 | 3098 | 		*/Library/Frameworks) | 
 | 3099 | 			MDIR="`dirname "${enableval}"`" | 
 | 3100 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3101 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3102 |  | 
 | 3103 | 			if test "${prefix}" = "NONE"; then | 
 | 3104 | 				# User hasn't specified the | 
 | 3105 | 				# --prefix option, but wants to install | 
 | 3106 | 				# the framework in a non-default location, | 
 | 3107 | 				# ensure that the compatibility links get | 
 | 3108 | 				# installed relative to that prefix as well | 
 | 3109 | 				# instead of in /usr/local. | 
 | 3110 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3111 | 			fi | 
 | 3112 | 			;; | 
 | 3113 |  | 
 | 3114 | 		*) | 
 | 3115 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3116 | 			;; | 
 | 3117 | 		esac | 
 | 3118 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3119 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3120 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3121 | 		# Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3122 | 		# files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3123 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3124 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3125 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3126 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3127 | 		ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3128 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3129 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3130 |  | 
 | 3131 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3132 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3133 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3134 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3135 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3136 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3137 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3138 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3139 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3140 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3141 | 	FRAMEWORKINSTALLFIRST= | 
 | 3142 | 	FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3143 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3144 | 	FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3145 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3146 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3147 | 	else | 
 | 3148 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3149 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3150 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3151 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3152 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3153 | fi | 
 | 3154 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3155 |  | 
 | 3156 |  | 
 | 3157 |  | 
 | 3158 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3159 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3160 |  | 
 | 3161 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3162 |  | 
 | 3163 |  | 
 | 3164 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3165 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3166 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3167 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 3168 | ##            AS_HELP_STRING([--with-dyld], | 
 | 3169 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3170 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3171 | # Set name for machine-dependent library files | 
 | 3172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3174 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3175 | if test -z "$MACHDEP" | 
 | 3176 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3177 |     # avoid using uname for cross builds | 
 | 3178 |     if test "$cross_compiling" = yes; then | 
 | 3179 |        # ac_sys_system and ac_sys_release are only used for setting | 
 | 3180 |        # `define_xopen_source' in the case statement below. For the | 
 | 3181 |        # current supported cross builds, this macro is not adjusted. | 
 | 3182 | 	case "$host" in | 
 | 3183 | 	*-*-linux*) | 
 | 3184 | 		ac_sys_system=Linux | 
 | 3185 | 		;; | 
 | 3186 | 	*-*-cygwin*) | 
 | 3187 | 		ac_sys_system=Cygwin | 
 | 3188 | 		;; | 
 | 3189 | 	*) | 
 | 3190 | 		# for now, limit cross builds to known configurations | 
 | 3191 | 		MACHDEP="unknown" | 
 | 3192 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3193 | 	esac | 
 | 3194 | 	ac_sys_release= | 
 | 3195 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3196 | 	ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 3197 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3198 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3199 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3200 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3201 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3202 | 	fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3203 |     fi | 
 | 3204 |     ac_md_system=`echo $ac_sys_system | | 
 | 3205 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3206 |     ac_md_release=`echo $ac_sys_release | | 
 | 3207 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3208 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3209 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3210 |     case $MACHDEP in | 
| Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3211 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3212 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3213 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3214 | 	atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3215 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3216 | 	'')	MACHDEP="unknown";; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3217 |     esac | 
 | 3218 | fi | 
 | 3219 |  | 
 | 3220 |  | 
 | 3221 | if test "$cross_compiling" = yes; then | 
 | 3222 | 	case "$host" in | 
 | 3223 | 	*-*-linux*) | 
 | 3224 | 		case "$host_cpu" in | 
 | 3225 | 		arm*) | 
 | 3226 | 			_host_cpu=arm | 
 | 3227 | 			;; | 
 | 3228 | 		*) | 
 | 3229 | 			_host_cpu=$host_cpu | 
 | 3230 | 		esac | 
 | 3231 | 		;; | 
 | 3232 | 	*-*-cygwin*) | 
 | 3233 | 		_host_cpu= | 
 | 3234 | 		;; | 
 | 3235 | 	*) | 
 | 3236 | 		# for now, limit cross builds to known configurations | 
 | 3237 | 		MACHDEP="unknown" | 
 | 3238 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3239 | 	esac | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3240 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3241 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3242 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3243 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3244 | # disable features if it is defined, without any means to access these | 
 | 3245 | # features as extensions. For these systems, we skip the definition of | 
 | 3246 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3247 | # some feature, make sure there is no alternative way to access this | 
 | 3248 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3249 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3250 | # wildcard, and that the wildcard does not include future systems | 
 | 3251 | # (which may remove their limitations). | 
 | 3252 | case $ac_sys_system/$ac_sys_release in | 
 | 3253 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3254 |   # 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] | 3255 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3256 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3257 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3258 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3259 |     define_xopen_source=no | 
 | 3260 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3261 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3262 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3263 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3264 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3265 |  | 
 | 3266 |     ;; | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3267 |   OpenBSD/*) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3268 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3269 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3270 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3271 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3272 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3273 |  | 
 | 3274 |     ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3275 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3276 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3277 |   # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3278 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3279 |     define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3280 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3281 |   # request to enable features supported by the standard as a request | 
 | 3282 |   # to disable features not supported by the standard.  The best way | 
 | 3283 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3284 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3285 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3286 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3287 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3288 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3289 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3290 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3291 |     define_xopen_source=no;; | 
 | 3292 |   # 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] | 3293 |   # 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] | 3294 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3295 |     define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3296 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3297 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3298 |   FreeBSD/4.*) | 
 | 3299 |     define_xopen_source=no;; | 
 | 3300 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3301 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3302 |   # identifies itself as Darwin/7.* | 
 | 3303 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3304 |   # disables platform specific features beyond repair. | 
 | 3305 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3306 |   # has no effect, don't bother defining them | 
 | 3307 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3308 |     define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3309 |   Darwin/1[0-9].*) | 
 | 3310 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3311 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3312 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3313 |   # 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] | 3314 |   AIX/4) | 
 | 3315 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3316 |   AIX/5) | 
 | 3317 |     if test `uname -r` -eq 1; then | 
 | 3318 |       define_xopen_source=no | 
 | 3319 |     fi | 
 | 3320 |     ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3321 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3322 |   # defining NI_NUMERICHOST. | 
 | 3323 |   QNX/6.3.2) | 
 | 3324 |     define_xopen_source=no | 
 | 3325 |     ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3326 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3327 | esac | 
 | 3328 |  | 
 | 3329 | if test $define_xopen_source = yes | 
 | 3330 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3331 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3332 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3333 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3334 |  | 
 | 3335 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3336 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3337 |   # several APIs are not declared. Since this is also needed in some | 
 | 3338 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3339 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3340 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3341 |  | 
 | 3342 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3343 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3344 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3345 |  | 
 | 3346 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3347 | fi | 
 | 3348 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3349 | # | 
 | 3350 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3351 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3352 | # different and often incompatable code will be generated. | 
 | 3353 | # | 
 | 3354 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3355 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3356 | # variable is also adjusted. | 
 | 3357 | # | 
 | 3358 |  | 
 | 3359 | if test ! -z "$SGI_ABI" | 
 | 3360 | then | 
 | 3361 |         CC="cc $SGI_ABI" | 
 | 3362 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3363 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3364 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3366 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3367 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3368 | # And add extra plat-mac for darwin | 
 | 3369 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3370 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
 | 3372 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3373 | if test -z "$EXTRAPLATDIR" | 
 | 3374 | then | 
 | 3375 | 	case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3376 | 	darwin) | 
 | 3377 | 		EXTRAPLATDIR="\$(PLATMACDIRS)" | 
 | 3378 | 		EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
 | 3379 | 		;; | 
 | 3380 | 	*) | 
 | 3381 | 		EXTRAPLATDIR="" | 
 | 3382 | 		EXTRAMACHDEPPATH="" | 
 | 3383 | 		;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3384 | 	esac | 
 | 3385 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
 | 3387 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3388 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3389 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3390 | # it may influence the way we can build extensions, so distutils | 
 | 3391 | # needs to check it | 
 | 3392 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3393 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3394 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3395 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3396 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3397 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3398 |  | 
 | 3399 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3400 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3401 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3402 | # when running configure or make.  The build should not break if they do. | 
 | 3403 | # BASECFLAGS should generally not be messed with, however. | 
 | 3404 |  | 
 | 3405 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3406 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3408 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3410 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3411 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3412 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3413 | 	case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3414 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3415 | 		without_gcc=yes;; | 
 | 3416 | 	yes)	CC=gcc | 
 | 3417 | 		without_gcc=no;; | 
 | 3418 | 	*)	CC=$withval | 
 | 3419 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3420 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3421 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3423 | 	case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3424 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3425 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3426 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3427 | 		case $BE_HOST_CPU in | 
 | 3428 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3429 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3430 | 			without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3431 | 			BASECFLAGS="$BASECFLAGS -export pragma" | 
 | 3432 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3433 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3434 | 			;; | 
 | 3435 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3436 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3437 | 			without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3438 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3439 | 			;; | 
 | 3440 | 		*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3441 | 			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3442 | 			;; | 
 | 3443 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3444 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 3445 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3446 | 		;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3447 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3448 | 	esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3449 | fi | 
 | 3450 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3452 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3453 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3454 | # If the user switches compilers, we can't believe the cache | 
 | 3455 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3456 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3457 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3458 | (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] | 3459 | fi | 
 | 3460 |  | 
| Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame] | 3461 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then | 
 | 3462 |     # Normally, MIPSpro CC treats #error directives as warnings, which means | 
 | 3463 |     # a successful exit code is returned (0).  This is a problem because IRIX | 
 | 3464 |     # has a bunch of system headers with this guard at the top: | 
 | 3465 |     # | 
 | 3466 |     #  #ifndef __c99 | 
 | 3467 |     #  #error This header file is to be used only for c99 mode compilations | 
 | 3468 |     #  #else | 
 | 3469 |     # | 
 | 3470 |     # When autoconf tests for such a header, like stdint.h, this happens: | 
 | 3471 |     # | 
 | 3472 |     #  configure:4619: cc -c   conftest.c >&5 | 
 | 3473 |     #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 | 
 | 3474 |     #    #error directive:  This header file is to be used only for c99 mode | 
 | 3475 |     #            compilations | 
 | 3476 |     # | 
 | 3477 |     #    #error This header file is to be used only for c99 mode compilations | 
 | 3478 |     #     ^ | 
 | 3479 |     # | 
 | 3480 |     #  configure:4619: $? = 0 | 
 | 3481 |     #  configure:4619: result: yes | 
 | 3482 |     # | 
 | 3483 |     # Therefore, we use `-diag_error 1035` to have the compiler treat the | 
 | 3484 |     # warning as an error, which causes cc to return a non-zero result, | 
 | 3485 |     # which autoconf can interpret correctly. | 
 | 3486 |     CFLAGS="$CFLAGS -diag_error 1035" | 
 | 3487 |     # Whilst we're here, we might as well make sure CXX defaults to something | 
 | 3488 |     # sensible if we're not using gcc. | 
 | 3489 |     if test -z "$CXX"; then | 
 | 3490 |         CXX="CC" | 
 | 3491 |     fi | 
 | 3492 | fi | 
 | 3493 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3494 | # If the user set CFLAGS, use this instead of the automatically | 
 | 3495 | # determined setting | 
 | 3496 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | ac_ext=c | 
 | 3498 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3502 | if test -n "$ac_tool_prefix"; then | 
 | 3503 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3504 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3506 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3507 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3508 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3509 | else | 
 | 3510 |   if test -n "$CC"; then | 
 | 3511 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3512 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3514 | for as_dir in $PATH | 
 | 3515 | do | 
 | 3516 |   IFS=$as_save_IFS | 
 | 3517 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3518 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3519 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3521 |     $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] | 3522 |     break 2 | 
 | 3523 |   fi | 
 | 3524 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3525 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3526 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3528 | fi | 
 | 3529 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3531 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3532 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3533 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3534 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3535 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3536 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | fi | 
 | 3538 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3539 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | fi | 
 | 3541 | if test -z "$ac_cv_prog_CC"; then | 
 | 3542 |   ac_ct_CC=$CC | 
 | 3543 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3544 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3546 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3547 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3548 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3549 | else | 
 | 3550 |   if test -n "$ac_ct_CC"; then | 
 | 3551 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3552 | else | 
 | 3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3554 | for as_dir in $PATH | 
 | 3555 | do | 
 | 3556 |   IFS=$as_save_IFS | 
 | 3557 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3558 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3559 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3561 |     $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] | 3562 |     break 2 | 
 | 3563 |   fi | 
 | 3564 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3565 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3566 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3567 |  | 
 | 3568 | fi | 
 | 3569 | fi | 
 | 3570 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3571 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3572 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3573 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3575 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3576 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | fi | 
 | 3578 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3579 |   if test "x$ac_ct_CC" = x; then | 
 | 3580 |     CC="" | 
 | 3581 |   else | 
 | 3582 |     case $cross_compiling:$ac_tool_warned in | 
 | 3583 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3585 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | ac_tool_warned=yes ;; | 
 | 3587 | esac | 
 | 3588 |     CC=$ac_ct_CC | 
 | 3589 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | else | 
 | 3591 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3592 | fi | 
 | 3593 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3594 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3595 |           if test -n "$ac_tool_prefix"; then | 
 | 3596 |     # 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] | 3597 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3599 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3600 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3601 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3602 | else | 
 | 3603 |   if test -n "$CC"; then | 
 | 3604 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3605 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3607 | for as_dir in $PATH | 
 | 3608 | do | 
 | 3609 |   IFS=$as_save_IFS | 
 | 3610 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3611 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3612 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3614 |     $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] | 3615 |     break 2 | 
 | 3616 |   fi | 
 | 3617 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3618 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3619 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 |  | 
 | 3621 | fi | 
 | 3622 | fi | 
 | 3623 | CC=$ac_cv_prog_CC | 
 | 3624 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3625 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3626 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3628 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3629 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | fi | 
 | 3631 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3632 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3633 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | fi | 
 | 3635 | if test -z "$CC"; then | 
 | 3636 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3637 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3639 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3640 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3641 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | else | 
 | 3643 |   if test -n "$CC"; then | 
 | 3644 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3645 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3646 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3648 | for as_dir in $PATH | 
 | 3649 | do | 
 | 3650 |   IFS=$as_save_IFS | 
 | 3651 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3652 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3653 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3655 |        ac_prog_rejected=yes | 
 | 3656 |        continue | 
 | 3657 |      fi | 
 | 3658 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3659 |     $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] | 3660 |     break 2 | 
 | 3661 |   fi | 
 | 3662 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3663 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3664 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3666 | if test $ac_prog_rejected = yes; then | 
 | 3667 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3668 |   set dummy $ac_cv_prog_CC | 
 | 3669 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3671 |     # We chose a different compiler from the bogus one. | 
 | 3672 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3673 |     # first if we set CC to just the basename; use the full file name. | 
 | 3674 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3675 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3676 |   fi | 
 | 3677 | fi | 
 | 3678 | fi | 
 | 3679 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3681 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3682 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3683 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3684 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3685 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3686 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3687 | fi | 
 | 3688 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3689 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | fi | 
 | 3691 | if test -z "$CC"; then | 
 | 3692 |   if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3693 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 |   do | 
 | 3695 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3696 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3698 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3699 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3700 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3701 | else | 
 | 3702 |   if test -n "$CC"; then | 
 | 3703 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3704 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3706 | for as_dir in $PATH | 
 | 3707 | do | 
 | 3708 |   IFS=$as_save_IFS | 
 | 3709 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3710 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3711 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3713 |     $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] | 3714 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3715 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3717 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3718 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 |  | 
 | 3720 | fi | 
 | 3721 | fi | 
 | 3722 | CC=$ac_cv_prog_CC | 
 | 3723 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3724 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3725 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3727 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3728 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3729 | fi | 
 | 3730 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3731 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 |     test -n "$CC" && break | 
 | 3733 |   done | 
 | 3734 | fi | 
 | 3735 | if test -z "$CC"; then | 
 | 3736 |   ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3737 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | do | 
 | 3739 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3740 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3742 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3743 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3744 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | else | 
 | 3746 |   if test -n "$ac_ct_CC"; then | 
 | 3747 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3748 | else | 
 | 3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3750 | for as_dir in $PATH | 
 | 3751 | do | 
 | 3752 |   IFS=$as_save_IFS | 
 | 3753 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3754 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3755 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3757 |     $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] | 3758 |     break 2 | 
 | 3759 |   fi | 
 | 3760 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3761 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3762 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3763 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | fi | 
 | 3765 | fi | 
 | 3766 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3767 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3768 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3769 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3771 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3772 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3774 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3775 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 |   test -n "$ac_ct_CC" && break | 
 | 3777 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3778 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3779 |   if test "x$ac_ct_CC" = x; then | 
 | 3780 |     CC="" | 
 | 3781 |   else | 
 | 3782 |     case $cross_compiling:$ac_tool_warned in | 
 | 3783 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3785 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3786 | ac_tool_warned=yes ;; | 
 | 3787 | esac | 
 | 3788 |     CC=$ac_ct_CC | 
 | 3789 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | fi | 
 | 3791 |  | 
 | 3792 | fi | 
 | 3793 |  | 
 | 3794 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3795 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3796 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3797 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3798 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3799 |  | 
 | 3800 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3801 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3802 | set X $ac_compile | 
 | 3803 | ac_compiler=$2 | 
 | 3804 | for ac_option in --version -v -V -qversion; do | 
 | 3805 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3806 | case "(($ac_try" in | 
 | 3807 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3808 |   *) ac_try_echo=$ac_try;; | 
 | 3809 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3810 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3811 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3812 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3814 |   if test -s conftest.err; then | 
 | 3815 |     sed '10a\ | 
 | 3816 | ... rest of stderr output deleted ... | 
 | 3817 |          10q' conftest.err >conftest.er1 | 
 | 3818 |     cat conftest.er1 >&5 | 
 | 3819 |   fi | 
 | 3820 |   rm -f conftest.er1 conftest.err | 
 | 3821 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3822 |   test $ac_status = 0; } | 
 | 3823 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3826 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3827 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | int | 
 | 3829 | main () | 
 | 3830 | { | 
 | 3831 |  | 
 | 3832 |   ; | 
 | 3833 |   return 0; | 
 | 3834 | } | 
 | 3835 | _ACEOF | 
 | 3836 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3837 | 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] | 3838 | # Try to create an executable without -o first, disregard a.out. | 
 | 3839 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3840 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3842 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3843 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3844 |  | 
 | 3845 | # The possible output files: | 
 | 3846 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3847 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3848 | ac_rmfiles= | 
 | 3849 | for ac_file in $ac_files | 
 | 3850 | do | 
 | 3851 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3852 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3853 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3854 |   esac | 
 | 3855 | done | 
 | 3856 | rm -f $ac_rmfiles | 
 | 3857 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3858 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3859 | case "(($ac_try" in | 
 | 3860 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3861 |   *) ac_try_echo=$ac_try;; | 
 | 3862 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3864 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3867 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3868 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3869 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3870 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3871 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3872 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3873 | # Autoconf. | 
 | 3874 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3875 | do | 
 | 3876 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3878 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3879 | 	;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3880 |     [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3881 | 	# We found the default executable, but exeext='' is most | 
 | 3882 | 	# certainly right. | 
 | 3883 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3884 |     *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3885 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3886 | 	then :; else | 
 | 3887 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3888 | 	fi | 
 | 3889 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3890 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3891 | 	# argument, so we may need to know it at that point already. | 
 | 3892 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3893 | 	# actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3894 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3895 |     * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3896 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3897 |   esac | 
 | 3898 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3899 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3900 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3901 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3902 |   ac_file='' | 
 | 3903 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3904 | if test -z "$ac_file"; then : | 
 | 3905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3906 | $as_echo "no" >&6; } | 
 | 3907 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3908 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3909 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3912 | as_fn_error 77 "C compiler cannot create executables | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3913 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3914 | else | 
 | 3915 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3916 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3917 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3919 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3921 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3922 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3923 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3924 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3925 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3927 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3928 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3929 | case "(($ac_try" in | 
 | 3930 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3931 |   *) ac_try_echo=$ac_try;; | 
 | 3932 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3934 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3935 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3937 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3938 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3939 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3940 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3941 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3942 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3943 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3944 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3945 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3946 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3948 | 	  break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 |     * ) break;; | 
 | 3950 |   esac | 
 | 3951 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3952 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3953 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3954 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3955 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3956 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3957 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3958 | rm -f conftest conftest$ac_cv_exeext | 
 | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3960 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3961 |  | 
 | 3962 | rm -f conftest.$ac_ext | 
 | 3963 | EXEEXT=$ac_cv_exeext | 
 | 3964 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3966 | /* end confdefs.h.  */ | 
 | 3967 | #include <stdio.h> | 
 | 3968 | int | 
 | 3969 | main () | 
 | 3970 | { | 
 | 3971 | FILE *f = fopen ("conftest.out", "w"); | 
 | 3972 |  return ferror (f) || fclose (f) != 0; | 
 | 3973 |  | 
 | 3974 |   ; | 
 | 3975 |   return 0; | 
 | 3976 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3977 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3978 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 3979 | # Check that the compiler produces executables we can run.  If not, either | 
 | 3980 | # the compiler is broken, or we cross compile. | 
 | 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 3982 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 3983 | if test "$cross_compiling" != yes; then | 
 | 3984 |   { { ac_try="$ac_link" | 
 | 3985 | case "(($ac_try" in | 
 | 3986 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3987 |   *) ac_try_echo=$ac_try;; | 
 | 3988 | esac | 
 | 3989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3990 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3991 |   (eval "$ac_link") 2>&5 | 
 | 3992 |   ac_status=$? | 
 | 3993 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3994 |   test $ac_status = 0; } | 
 | 3995 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 3996 |   { { case "(($ac_try" in | 
 | 3997 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3998 |   *) ac_try_echo=$ac_try;; | 
 | 3999 | esac | 
 | 4000 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4001 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4002 |   (eval "$ac_try") 2>&5 | 
 | 4003 |   ac_status=$? | 
 | 4004 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4005 |   test $ac_status = 0; }; }; then | 
 | 4006 |     cross_compiling=no | 
 | 4007 |   else | 
 | 4008 |     if test "$cross_compiling" = maybe; then | 
 | 4009 | 	cross_compiling=yes | 
 | 4010 |     else | 
 | 4011 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4012 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4013 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4014 | If you meant to cross compile, use \`--host'. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4015 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4016 |     fi | 
 | 4017 |   fi | 
 | 4018 | fi | 
 | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4020 | $as_echo "$cross_compiling" >&6; } | 
 | 4021 |  | 
 | 4022 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4023 | ac_clean_files=$ac_clean_files_save | 
 | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4025 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4026 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4027 |   $as_echo_n "(cached) " >&6 | 
 | 4028 | else | 
 | 4029 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4030 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | int | 
 | 4033 | main () | 
 | 4034 | { | 
 | 4035 |  | 
 | 4036 |   ; | 
 | 4037 |   return 0; | 
 | 4038 | } | 
 | 4039 | _ACEOF | 
 | 4040 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4041 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4042 | case "(($ac_try" in | 
 | 4043 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4044 |   *) ac_try_echo=$ac_try;; | 
 | 4045 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4046 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4047 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4048 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4050 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4051 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4052 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4053 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4054 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4055 |     *.$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] | 4056 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4057 |        break;; | 
 | 4058 |   esac | 
 | 4059 | done | 
 | 4060 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4061 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4062 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4063 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4064 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4066 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4067 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4068 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4069 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 4070 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4072 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | OBJEXT=$ac_cv_objext | 
 | 4074 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4076 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4077 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4078 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4080 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4081 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4082 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4083 | int | 
 | 4084 | main () | 
 | 4085 | { | 
 | 4086 | #ifndef __GNUC__ | 
 | 4087 |        choke me | 
 | 4088 | #endif | 
 | 4089 |  | 
 | 4090 |   ; | 
 | 4091 |   return 0; | 
 | 4092 | } | 
 | 4093 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4094 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4095 |   ac_compiler_gnu=yes | 
 | 4096 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4097 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4099 | 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] | 4100 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4101 |  | 
 | 4102 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4104 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4105 | if test $ac_compiler_gnu = yes; then | 
 | 4106 |   GCC=yes | 
 | 4107 | else | 
 | 4108 |   GCC= | 
 | 4109 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4110 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4111 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4113 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4114 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4115 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4116 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4117 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4118 |    ac_c_werror_flag=yes | 
 | 4119 |    ac_cv_prog_cc_g=no | 
 | 4120 |    CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4121 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4122 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 | int | 
 | 4125 | main () | 
 | 4126 | { | 
 | 4127 |  | 
 | 4128 |   ; | 
 | 4129 |   return 0; | 
 | 4130 | } | 
 | 4131 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4133 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4134 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4135 |   CFLAGS="" | 
 | 4136 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4137 | /* end confdefs.h.  */ | 
 | 4138 |  | 
 | 4139 | int | 
 | 4140 | main () | 
 | 4141 | { | 
 | 4142 |  | 
 | 4143 |   ; | 
 | 4144 |   return 0; | 
 | 4145 | } | 
 | 4146 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4147 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4148 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4149 | else | 
 | 4150 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4151 | 	 CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4152 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4153 | /* end confdefs.h.  */ | 
 | 4154 |  | 
 | 4155 | int | 
 | 4156 | main () | 
 | 4157 | { | 
 | 4158 |  | 
 | 4159 |   ; | 
 | 4160 |   return 0; | 
 | 4161 | } | 
 | 4162 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4163 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4164 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4165 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4167 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4169 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4171 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4172 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4174 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4175 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4177 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4178 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4179 |     CFLAGS="-g -O2" | 
 | 4180 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4181 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4182 |   fi | 
 | 4183 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4184 |   if test "$GCC" = yes; then | 
 | 4185 |     CFLAGS="-O2" | 
 | 4186 |   else | 
 | 4187 |     CFLAGS= | 
 | 4188 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4189 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4191 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4192 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4193 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4194 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4195 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4196 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4198 | /* end confdefs.h.  */ | 
 | 4199 | #include <stdarg.h> | 
 | 4200 | #include <stdio.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4201 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4202 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4203 | struct buf { int x; }; | 
 | 4204 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4205 | static char *e (p, i) | 
 | 4206 |      char **p; | 
 | 4207 |      int i; | 
 | 4208 | { | 
 | 4209 |   return p[i]; | 
 | 4210 | } | 
 | 4211 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4212 | { | 
 | 4213 |   char *s; | 
 | 4214 |   va_list v; | 
 | 4215 |   va_start (v,p); | 
 | 4216 |   s = g (p, va_arg (v,int)); | 
 | 4217 |   va_end (v); | 
 | 4218 |   return s; | 
 | 4219 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4220 |  | 
 | 4221 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4222 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4223 |    These don't provoke an error unfortunately, instead are silently treated | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4224 |    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] | 4225 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4226 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4227 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4228 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4229 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4230 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4231 |    inside strings and character constants.  */ | 
 | 4232 | #define FOO(x) 'x' | 
 | 4233 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4234 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4235 | int test (int i, double x); | 
 | 4236 | struct s1 {int (*f) (int a);}; | 
 | 4237 | struct s2 {int (*f) (double a);}; | 
 | 4238 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4239 | int argc; | 
 | 4240 | char **argv; | 
 | 4241 | int | 
 | 4242 | main () | 
 | 4243 | { | 
 | 4244 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4245 |   ; | 
 | 4246 |   return 0; | 
 | 4247 | } | 
 | 4248 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4249 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4250 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4251 | do | 
 | 4252 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4253 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4254 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4255 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4256 | rm -f core conftest.err conftest.$ac_objext | 
 | 4257 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4258 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4259 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4260 | CC=$ac_save_CC | 
 | 4261 |  | 
 | 4262 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4263 | # AC_CACHE_VAL | 
 | 4264 | case "x$ac_cv_prog_cc_c89" in | 
 | 4265 |   x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4266 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4267 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4268 |   xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4269 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4270 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4271 |   *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4272 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4273 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4274 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4275 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4276 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4277 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4278 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4279 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4280 | ac_ext=c | 
 | 4281 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4285 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4286 | if test ! -z "$preset_cflags" | 
 | 4287 | then | 
 | 4288 | 	CFLAGS=$preset_cflags | 
 | 4289 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4290 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4291 |  | 
 | 4292 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4294 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4295 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4296 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4297 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4298 |   withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4299 |  | 
 | 4300 | 	case $withval in | 
 | 4301 | 	no)	with_cxx_main=no | 
 | 4302 | 		MAINCC='$(CC)';; | 
 | 4303 | 	yes)	with_cxx_main=yes | 
 | 4304 | 		MAINCC='$(CXX)';; | 
 | 4305 | 	*)	with_cxx_main=yes | 
 | 4306 | 		MAINCC=$withval | 
 | 4307 | 		if test -z "$CXX" | 
 | 4308 | 		then | 
 | 4309 | 			CXX=$withval | 
 | 4310 | 		fi;; | 
 | 4311 | 	esac | 
 | 4312 | else | 
 | 4313 |  | 
 | 4314 | 	with_cxx_main=no | 
 | 4315 | 	MAINCC='$(CC)' | 
 | 4316 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4317 | fi | 
 | 4318 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4320 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4321 |  | 
 | 4322 | preset_cxx="$CXX" | 
 | 4323 | if test -z "$CXX" | 
 | 4324 | then | 
 | 4325 |         case "$CC" in | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4326 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4327 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4328 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4330 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4331 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4332 |   $as_echo_n "(cached) " >&6 | 
 | 4333 | else | 
 | 4334 |   case $CXX in | 
 | 4335 |   [\\/]* | ?:[\\/]*) | 
 | 4336 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4337 |   ;; | 
 | 4338 |   *) | 
 | 4339 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4340 | for as_dir in notfound | 
 | 4341 | do | 
 | 4342 |   IFS=$as_save_IFS | 
 | 4343 |   test -z "$as_dir" && as_dir=. | 
 | 4344 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4345 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4346 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4347 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4348 |     break 2 | 
 | 4349 |   fi | 
 | 4350 | done | 
 | 4351 |   done | 
 | 4352 | IFS=$as_save_IFS | 
 | 4353 |  | 
 | 4354 |   ;; | 
 | 4355 | esac | 
 | 4356 | fi | 
 | 4357 | CXX=$ac_cv_path_CXX | 
 | 4358 | if test -n "$CXX"; then | 
 | 4359 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4360 | $as_echo "$CXX" >&6; } | 
 | 4361 | else | 
 | 4362 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4363 | $as_echo "no" >&6; } | 
 | 4364 | fi | 
 | 4365 |  | 
 | 4366 |  | 
 | 4367 | fi | 
 | 4368 | if test -z "$ac_cv_path_CXX"; then | 
 | 4369 |   ac_pt_CXX=$CXX | 
 | 4370 |   # Extract the first word of "g++", so it can be a program name with args. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4371 | set dummy g++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4373 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4374 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4375 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4376 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4377 |   case $ac_pt_CXX in | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4378 |   [\\/]* | ?:[\\/]*) | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4379 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4380 |   ;; | 
 | 4381 |   *) | 
 | 4382 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4383 | for as_dir in notfound | 
 | 4384 | do | 
 | 4385 |   IFS=$as_save_IFS | 
 | 4386 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4387 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4388 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4389 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4390 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4391 |     break 2 | 
 | 4392 |   fi | 
 | 4393 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4394 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4395 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4396 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4397 |   ;; | 
 | 4398 | esac | 
 | 4399 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4400 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4401 | if test -n "$ac_pt_CXX"; then | 
 | 4402 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4403 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4404 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4405 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4406 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4407 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4408 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4409 |   if test "x$ac_pt_CXX" = x; then | 
 | 4410 |     CXX="g++" | 
 | 4411 |   else | 
 | 4412 |     case $cross_compiling:$ac_tool_warned in | 
 | 4413 | yes:) | 
 | 4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4416 | ac_tool_warned=yes ;; | 
 | 4417 | esac | 
 | 4418 |     CXX=$ac_pt_CXX | 
 | 4419 |   fi | 
 | 4420 | else | 
 | 4421 |   CXX="$ac_cv_path_CXX" | 
 | 4422 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4423 |  ;; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4424 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4425 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4426 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4428 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4429 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4430 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4431 | else | 
 | 4432 |   case $CXX in | 
 | 4433 |   [\\/]* | ?:[\\/]*) | 
 | 4434 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4435 |   ;; | 
 | 4436 |   *) | 
 | 4437 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4438 | for as_dir in notfound | 
 | 4439 | do | 
 | 4440 |   IFS=$as_save_IFS | 
 | 4441 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4442 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4443 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4444 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4445 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4446 |     break 2 | 
 | 4447 |   fi | 
 | 4448 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4449 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4450 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4451 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4452 |   ;; | 
 | 4453 | esac | 
 | 4454 | fi | 
 | 4455 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4456 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4457 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4458 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4459 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4460 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4461 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4462 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4463 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4464 |  | 
 | 4465 | fi | 
 | 4466 | if test -z "$ac_cv_path_CXX"; then | 
 | 4467 |   ac_pt_CXX=$CXX | 
 | 4468 |   # Extract the first word of "c++", so it can be a program name with args. | 
 | 4469 | set dummy c++; ac_word=$2 | 
 | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4471 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4472 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4473 |   $as_echo_n "(cached) " >&6 | 
 | 4474 | else | 
 | 4475 |   case $ac_pt_CXX in | 
 | 4476 |   [\\/]* | ?:[\\/]*) | 
 | 4477 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4478 |   ;; | 
 | 4479 |   *) | 
 | 4480 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4481 | for as_dir in notfound | 
 | 4482 | do | 
 | 4483 |   IFS=$as_save_IFS | 
 | 4484 |   test -z "$as_dir" && as_dir=. | 
 | 4485 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4486 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4487 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4488 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4489 |     break 2 | 
 | 4490 |   fi | 
 | 4491 | done | 
 | 4492 |   done | 
 | 4493 | IFS=$as_save_IFS | 
 | 4494 |  | 
 | 4495 |   ;; | 
 | 4496 | esac | 
 | 4497 | fi | 
 | 4498 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4499 | if test -n "$ac_pt_CXX"; then | 
 | 4500 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4501 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4502 | else | 
 | 4503 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4504 | $as_echo "no" >&6; } | 
 | 4505 | fi | 
 | 4506 |  | 
 | 4507 |   if test "x$ac_pt_CXX" = x; then | 
 | 4508 |     CXX="c++" | 
 | 4509 |   else | 
 | 4510 |     case $cross_compiling:$ac_tool_warned in | 
 | 4511 | yes:) | 
 | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4513 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4514 | ac_tool_warned=yes ;; | 
 | 4515 | esac | 
 | 4516 |     CXX=$ac_pt_CXX | 
 | 4517 |   fi | 
 | 4518 | else | 
 | 4519 |   CXX="$ac_cv_path_CXX" | 
 | 4520 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4521 |  ;; | 
 | 4522 |         esac | 
 | 4523 | 	if test "$CXX" = "notfound" | 
 | 4524 | 	then | 
 | 4525 | 		CXX="" | 
 | 4526 | 	fi | 
 | 4527 | fi | 
 | 4528 | if test -z "$CXX" | 
 | 4529 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4530 | 	if test -n "$ac_tool_prefix"; then | 
 | 4531 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4532 |   do | 
 | 4533 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4534 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4536 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4537 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4538 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4539 | else | 
 | 4540 |   if test -n "$CXX"; then | 
 | 4541 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4542 | else | 
 | 4543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4544 | for as_dir in $PATH | 
 | 4545 | do | 
 | 4546 |   IFS=$as_save_IFS | 
 | 4547 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4548 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4549 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4550 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4551 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4552 |     break 2 | 
 | 4553 |   fi | 
 | 4554 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4555 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4556 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4557 |  | 
 | 4558 | fi | 
 | 4559 | fi | 
 | 4560 | CXX=$ac_cv_prog_CXX | 
 | 4561 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4562 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4563 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4564 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4565 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4566 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4567 | fi | 
 | 4568 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4569 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4570 |     test -n "$CXX" && break | 
 | 4571 |   done | 
 | 4572 | fi | 
 | 4573 | if test -z "$CXX"; then | 
 | 4574 |   ac_ct_CXX=$CXX | 
 | 4575 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4576 | do | 
 | 4577 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4578 | set dummy $ac_prog; ac_word=$2 | 
 | 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4580 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4581 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 4582 |   $as_echo_n "(cached) " >&6 | 
 | 4583 | else | 
 | 4584 |   if test -n "$ac_ct_CXX"; then | 
 | 4585 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 4586 | else | 
 | 4587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4588 | for as_dir in $PATH | 
 | 4589 | do | 
 | 4590 |   IFS=$as_save_IFS | 
 | 4591 |   test -z "$as_dir" && as_dir=. | 
 | 4592 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4593 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4594 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 4595 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4596 |     break 2 | 
 | 4597 |   fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4598 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4599 |   done | 
 | 4600 | IFS=$as_save_IFS | 
 | 4601 |  | 
 | 4602 | fi | 
 | 4603 | fi | 
 | 4604 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 4605 | if test -n "$ac_ct_CXX"; then | 
 | 4606 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 4607 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 4608 | else | 
 | 4609 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4610 | $as_echo "no" >&6; } | 
 | 4611 | fi | 
 | 4612 |  | 
 | 4613 |  | 
 | 4614 |   test -n "$ac_ct_CXX" && break | 
 | 4615 | done | 
 | 4616 |  | 
 | 4617 |   if test "x$ac_ct_CXX" = x; then | 
 | 4618 |     CXX="notfound" | 
 | 4619 |   else | 
 | 4620 |     case $cross_compiling:$ac_tool_warned in | 
 | 4621 | yes:) | 
 | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4623 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4624 | ac_tool_warned=yes ;; | 
 | 4625 | esac | 
 | 4626 |     CXX=$ac_ct_CXX | 
 | 4627 |   fi | 
 | 4628 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4629 |  | 
 | 4630 | 	if test "$CXX" = "notfound" | 
 | 4631 | 	then | 
 | 4632 | 		CXX="" | 
 | 4633 | 	fi | 
 | 4634 | fi | 
 | 4635 | if test "$preset_cxx" != "$CXX" | 
 | 4636 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4637 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4638 |  | 
 | 4639 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4640 |   If this is not intended, then set CXX on the configure command line. | 
 | 4641 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4642 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4643 |  | 
 | 4644 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4645 |   If this is not intended, then set CXX on the configure command line. | 
 | 4646 |   " >&2;} | 
 | 4647 | fi | 
 | 4648 |  | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 4649 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 4650 |  | 
 | 4651 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4652 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4653 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4654 |  | 
 | 4655 | ac_ext=c | 
 | 4656 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4661 | $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] | 4662 | # On Suns, sometimes $CPP names a directory. | 
 | 4663 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4664 |   CPP= | 
 | 4665 | fi | 
 | 4666 | if test -z "$CPP"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4667 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4668 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4669 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4670 |       # Double quotes because CPP needs to be expanded | 
 | 4671 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4672 |     do | 
 | 4673 |       ac_preproc_ok=false | 
 | 4674 | for ac_c_preproc_warn_flag in '' yes | 
 | 4675 | do | 
 | 4676 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4677 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4678 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4679 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4680 |   # 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] | 4681 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4682 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4683 | /* end confdefs.h.  */ | 
 | 4684 | #ifdef __STDC__ | 
 | 4685 | # include <limits.h> | 
 | 4686 | #else | 
 | 4687 | # include <assert.h> | 
 | 4688 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4689 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4691 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4692 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4693 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4694 |   # Broken: fails on valid input. | 
 | 4695 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4696 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4697 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4698 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4699 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4701 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4702 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4703 | #include <ac_nonexistent.h> | 
 | 4704 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4705 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4706 |   # Broken: success on invalid input. | 
 | 4707 | continue | 
 | 4708 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4709 |   # Passes both tests. | 
 | 4710 | ac_preproc_ok=: | 
 | 4711 | break | 
 | 4712 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4713 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4714 |  | 
 | 4715 | done | 
 | 4716 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4717 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4718 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4719 |   break | 
 | 4720 | fi | 
 | 4721 |  | 
 | 4722 |     done | 
 | 4723 |     ac_cv_prog_CPP=$CPP | 
 | 4724 |  | 
 | 4725 | fi | 
 | 4726 |   CPP=$ac_cv_prog_CPP | 
 | 4727 | else | 
 | 4728 |   ac_cv_prog_CPP=$CPP | 
 | 4729 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4731 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4732 | ac_preproc_ok=false | 
 | 4733 | for ac_c_preproc_warn_flag in '' yes | 
 | 4734 | do | 
 | 4735 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4736 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4737 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4738 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4739 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4740 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4741 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4742 | /* end confdefs.h.  */ | 
 | 4743 | #ifdef __STDC__ | 
 | 4744 | # include <limits.h> | 
 | 4745 | #else | 
 | 4746 | # include <assert.h> | 
 | 4747 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4748 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4749 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4750 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4751 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4752 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4753 |   # Broken: fails on valid input. | 
 | 4754 | continue | 
 | 4755 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4756 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4758 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4759 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4760 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4761 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | #include <ac_nonexistent.h> | 
 | 4763 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4764 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4765 |   # Broken: success on invalid input. | 
 | 4766 | continue | 
 | 4767 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4768 |   # Passes both tests. | 
 | 4769 | ac_preproc_ok=: | 
 | 4770 | break | 
 | 4771 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4772 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4773 |  | 
 | 4774 | done | 
 | 4775 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4776 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4777 | if $ac_preproc_ok; then : | 
 | 4778 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4779 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4780 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4781 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4782 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4783 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4784 | fi | 
 | 4785 |  | 
 | 4786 | ac_ext=c | 
 | 4787 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4791 |  | 
 | 4792 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4794 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4795 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4796 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4797 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4798 |   if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4799 |   ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4800 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4801 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4802 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4803 | do | 
 | 4804 |   IFS=$as_save_IFS | 
 | 4805 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4806 |     for ac_prog in grep ggrep; do | 
 | 4807 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4808 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4809 |       as_fn_executable_p "$ac_path_GREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4810 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4811 |   # Check for GNU $ac_path_GREP | 
 | 4812 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4813 | *GNU*) | 
 | 4814 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4815 | *) | 
 | 4816 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4817 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4818 |   while : | 
 | 4819 |   do | 
 | 4820 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4821 |     mv "conftest.tmp" "conftest.in" | 
 | 4822 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4823 |     $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4824 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4825 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4826 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4827 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4828 |       # Best one so far, save it but keep looking for a better one | 
 | 4829 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4830 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4831 |     fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4832 |     # 10*(2^10) chars as input seems more than enough | 
 | 4833 |     test $ac_count -gt 10 && break | 
 | 4834 |   done | 
 | 4835 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4836 | esac | 
 | 4837 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4838 |       $ac_path_GREP_found && break 3 | 
 | 4839 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4840 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4841 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4842 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4843 |   if test -z "$ac_cv_path_GREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4844 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4845 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4846 | else | 
 | 4847 |   ac_cv_path_GREP=$GREP | 
 | 4848 | fi | 
 | 4849 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4850 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4852 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4853 |  GREP="$ac_cv_path_GREP" | 
 | 4854 |  | 
 | 4855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4857 | $as_echo_n "checking for egrep... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4858 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4859 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4860 | else | 
 | 4861 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4862 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4863 |    else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4864 |      if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4865 |   ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4866 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4867 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4868 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4869 | do | 
 | 4870 |   IFS=$as_save_IFS | 
 | 4871 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4872 |     for ac_prog in egrep; do | 
 | 4873 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4874 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4875 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4876 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4877 |   # Check for GNU $ac_path_EGREP | 
 | 4878 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4879 | *GNU*) | 
 | 4880 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4881 | *) | 
 | 4882 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4883 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4884 |   while : | 
 | 4885 |   do | 
 | 4886 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4887 |     mv "conftest.tmp" "conftest.in" | 
 | 4888 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4889 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4890 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4891 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4892 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4893 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4894 |       # Best one so far, save it but keep looking for a better one | 
 | 4895 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4896 |       ac_path_EGREP_max=$ac_count | 
 | 4897 |     fi | 
 | 4898 |     # 10*(2^10) chars as input seems more than enough | 
 | 4899 |     test $ac_count -gt 10 && break | 
 | 4900 |   done | 
 | 4901 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4902 | esac | 
 | 4903 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4904 |       $ac_path_EGREP_found && break 3 | 
 | 4905 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4906 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4907 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4908 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4909 |   if test -z "$ac_cv_path_EGREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4910 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4911 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4912 | else | 
 | 4913 |   ac_cv_path_EGREP=$EGREP | 
 | 4914 | fi | 
 | 4915 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4916 |    fi | 
 | 4917 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4919 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4920 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4921 |  | 
 | 4922 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4924 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4925 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4926 |   $as_echo_n "(cached) " >&6 | 
 | 4927 | else | 
 | 4928 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4929 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4930 | #include <stdlib.h> | 
 | 4931 | #include <stdarg.h> | 
 | 4932 | #include <string.h> | 
 | 4933 | #include <float.h> | 
 | 4934 |  | 
 | 4935 | int | 
 | 4936 | main () | 
 | 4937 | { | 
 | 4938 |  | 
 | 4939 |   ; | 
 | 4940 |   return 0; | 
 | 4941 | } | 
 | 4942 | _ACEOF | 
 | 4943 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4944 |   ac_cv_header_stdc=yes | 
 | 4945 | else | 
 | 4946 |   ac_cv_header_stdc=no | 
 | 4947 | fi | 
 | 4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4949 |  | 
 | 4950 | if test $ac_cv_header_stdc = yes; then | 
 | 4951 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4952 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4953 | /* end confdefs.h.  */ | 
 | 4954 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4955 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4956 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4958 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4959 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4960 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4961 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4962 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4963 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4964 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4965 | fi | 
 | 4966 |  | 
 | 4967 | if test $ac_cv_header_stdc = yes; then | 
 | 4968 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4969 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4970 | /* end confdefs.h.  */ | 
 | 4971 | #include <stdlib.h> | 
 | 4972 |  | 
 | 4973 | _ACEOF | 
 | 4974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4975 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 4976 |  | 
 | 4977 | else | 
 | 4978 |   ac_cv_header_stdc=no | 
 | 4979 | fi | 
 | 4980 | rm -f conftest* | 
 | 4981 |  | 
 | 4982 | fi | 
 | 4983 |  | 
 | 4984 | if test $ac_cv_header_stdc = yes; then | 
 | 4985 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4986 |   if test "$cross_compiling" = yes; then : | 
 | 4987 |   : | 
 | 4988 | else | 
 | 4989 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4990 | /* end confdefs.h.  */ | 
 | 4991 | #include <ctype.h> | 
 | 4992 | #include <stdlib.h> | 
 | 4993 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4994 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4995 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4996 | #else | 
 | 4997 | # define ISLOWER(c) \ | 
 | 4998 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4999 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5000 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5001 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5002 | #endif | 
 | 5003 |  | 
 | 5004 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5005 | int | 
 | 5006 | main () | 
 | 5007 | { | 
 | 5008 |   int i; | 
 | 5009 |   for (i = 0; i < 256; i++) | 
 | 5010 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5011 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5012 |       return 2; | 
 | 5013 |   return 0; | 
 | 5014 | } | 
 | 5015 | _ACEOF | 
 | 5016 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5017 |  | 
 | 5018 | else | 
 | 5019 |   ac_cv_header_stdc=no | 
 | 5020 | fi | 
 | 5021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5022 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5023 | fi | 
 | 5024 |  | 
 | 5025 | fi | 
 | 5026 | fi | 
 | 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5028 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5029 | if test $ac_cv_header_stdc = yes; then | 
 | 5030 |  | 
 | 5031 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5032 |  | 
 | 5033 | fi | 
 | 5034 |  | 
 | 5035 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5036 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5037 | 		  inttypes.h stdint.h unistd.h | 
 | 5038 | do : | 
 | 5039 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5040 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5041 | " | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5042 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5043 |   cat >>confdefs.h <<_ACEOF | 
 | 5044 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5045 | _ACEOF | 
 | 5046 |  | 
 | 5047 | fi | 
 | 5048 |  | 
 | 5049 | done | 
 | 5050 |  | 
 | 5051 |  | 
 | 5052 |  | 
 | 5053 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5054 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5055 |   MINIX=yes | 
 | 5056 | else | 
 | 5057 |   MINIX= | 
 | 5058 | fi | 
 | 5059 |  | 
 | 5060 |  | 
 | 5061 |   if test "$MINIX" = yes; then | 
 | 5062 |  | 
 | 5063 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5064 |  | 
 | 5065 |  | 
 | 5066 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5067 |  | 
 | 5068 |  | 
 | 5069 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5070 |  | 
 | 5071 |   fi | 
 | 5072 |  | 
 | 5073 |  | 
 | 5074 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5075 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5076 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5077 |   $as_echo_n "(cached) " >&6 | 
 | 5078 | else | 
 | 5079 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5080 | /* end confdefs.h.  */ | 
 | 5081 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5082 | #         define __EXTENSIONS__ 1 | 
 | 5083 |           $ac_includes_default | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5084 | int | 
 | 5085 | main () | 
 | 5086 | { | 
 | 5087 |  | 
 | 5088 |   ; | 
 | 5089 |   return 0; | 
 | 5090 | } | 
 | 5091 | _ACEOF | 
 | 5092 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5093 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5094 | else | 
 | 5095 |   ac_cv_safe_to_define___extensions__=no | 
 | 5096 | fi | 
 | 5097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5098 | fi | 
 | 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5100 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5101 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5102 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5103 |  | 
 | 5104 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5105 |  | 
 | 5106 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5107 |  | 
 | 5108 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5109 |  | 
 | 5110 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5111 |  | 
 | 5112 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5113 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5114 | # Check for unsupported systems | 
 | 5115 | case $ac_sys_system/$ac_sys_release in | 
 | 5116 | atheos*|Linux*/1*) | 
 | 5117 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5118 |    echo See README for details. | 
 | 5119 |    exit 1;; | 
 | 5120 | esac | 
 | 5121 |  | 
 | 5122 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5124 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5125 |  | 
 | 5126 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5127 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5128 |   withval=$with_suffix; | 
 | 5129 | 	case $withval in | 
 | 5130 | 	no)	EXEEXT=;; | 
 | 5131 | 	yes)	EXEEXT=.exe;; | 
 | 5132 | 	*)	EXEEXT=$withval;; | 
 | 5133 | 	esac | 
 | 5134 | fi | 
 | 5135 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5137 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5138 |  | 
 | 5139 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5140 | # case we give a warning if no ext is given | 
 | 5141 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5143 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5144 | if test ! -d CaseSensitiveTestDir; then | 
 | 5145 | mkdir CaseSensitiveTestDir | 
 | 5146 | fi | 
 | 5147 |  | 
 | 5148 | if test -d casesensitivetestdir | 
 | 5149 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5150 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5151 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5152 |     BUILDEXEEXT=.exe | 
 | 5153 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5154 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5155 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5156 | 	BUILDEXEEXT=$EXEEXT | 
 | 5157 | fi | 
 | 5158 | rmdir CaseSensitiveTestDir | 
 | 5159 |  | 
 | 5160 | case $MACHDEP in | 
 | 5161 | bsdos*) | 
 | 5162 |     case $CC in | 
 | 5163 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5164 |     esac;; | 
 | 5165 | esac | 
 | 5166 |  | 
 | 5167 | case $ac_sys_system in | 
 | 5168 | hp*|HP*) | 
 | 5169 |     case $CC in | 
 | 5170 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5171 |     esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | SunOS*) | 
 | 5173 |     # Some functions have a prototype only with that define, e.g. confstr | 
 | 5174 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5175 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5176 |  | 
 | 5177 |     ;; | 
 | 5178 | esac | 
 | 5179 |  | 
 | 5180 |  | 
 | 5181 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5183 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5184 | if test -z "$LIBRARY" | 
 | 5185 | then | 
 | 5186 | 	LIBRARY='libpython$(VERSION).a' | 
 | 5187 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5189 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5190 |  | 
 | 5191 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5192 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5193 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5194 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5195 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5196 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5197 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5198 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5199 | # | 
 | 5200 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5201 | # | 
 | 5202 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5203 | # on the system - some systems like version suffix, others don't | 
 | 5204 |  | 
 | 5205 |  | 
 | 5206 |  | 
 | 5207 |  | 
 | 5208 |  | 
 | 5209 |  | 
 | 5210 | LDLIBRARY="$LIBRARY" | 
 | 5211 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5212 | INSTSONAME='$(LDLIBRARY)' | 
 | 5213 | DLLLIBRARY='' | 
 | 5214 | LDLIBRARYDIR='' | 
 | 5215 | RUNSHARED='' | 
 | 5216 |  | 
 | 5217 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5218 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5219 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5220 | # python might then depend on the C++ runtime | 
 | 5221 | # This is altered for AIX in order to build the export list before | 
 | 5222 | # linking. | 
 | 5223 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5225 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5226 | if test -z "$LINKCC" | 
 | 5227 | then | 
 | 5228 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5229 | 	case $ac_sys_system in | 
 | 5230 | 	AIX*) | 
 | 5231 | 	   exp_extra="\"\"" | 
 | 5232 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5233 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5234 | 	       exp_extra="." | 
 | 5235 | 	   fi | 
 | 5236 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5237 | 	QNX*) | 
 | 5238 | 	   # qcc must be used because the other compilers do not | 
 | 5239 | 	   # support -N. | 
 | 5240 | 	   LINKCC=qcc;; | 
 | 5241 | 	esac | 
 | 5242 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5244 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5245 |  | 
 | 5246 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5247 | # make sure we default having it set to "no": this is used by | 
 | 5248 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5249 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5250 | # in the same bahaviour as before. | 
 | 5251 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5253 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5254 | ac_prog=ld | 
 | 5255 | if test "$GCC" = yes; then | 
 | 5256 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5257 | fi | 
 | 5258 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5259 |       *GNU*) | 
 | 5260 |           GNULD=yes;; | 
 | 5261 |       *) | 
 | 5262 |           GNULD=no;; | 
 | 5263 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5265 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5266 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5268 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5269 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5270 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5271 |   enableval=$enable_shared; | 
 | 5272 | fi | 
 | 5273 |  | 
 | 5274 |  | 
 | 5275 | if test -z "$enable_shared" | 
 | 5276 | then | 
 | 5277 |   case $ac_sys_system in | 
 | 5278 |   CYGWIN* | atheos*) | 
 | 5279 |     enable_shared="yes";; | 
 | 5280 |   *) | 
 | 5281 |     enable_shared="no";; | 
 | 5282 |   esac | 
 | 5283 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5285 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5286 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5288 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5289 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5290 | if test "${enable_profiling+set}" = set; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5291 |   enableval=$enable_profiling; | 
 | 5292 | fi | 
 | 5293 |  | 
 | 5294 | if test "x$enable_profiling" = xyes; then | 
 | 5295 |   ac_save_cc="$CC" | 
| Benjamin Peterson | b9be7bb | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5296 |   CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5297 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5298 | /* end confdefs.h.  */ | 
 | 5299 | int main() { return 0; } | 
 | 5300 | _ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5301 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5302 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5303 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5304 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5305 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5306 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5307 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5308 |   CC="$ac_save_cc" | 
 | 5309 | else | 
 | 5310 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5311 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5313 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5314 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5315 | if test "x$enable_profiling" = xyes; then | 
 | 5316 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5317 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5318 | fi | 
 | 5319 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5321 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5322 |  | 
 | 5323 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5324 | # library that we build, but we do not want to link against it (we | 
 | 5325 | # will find it with a -framework option). For this reason there is an | 
 | 5326 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5327 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5328 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5329 | if test "$enable_framework" | 
 | 5330 | then | 
 | 5331 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5332 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5333 |   BLDLIBRARY='' | 
 | 5334 | else | 
 | 5335 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5336 | fi | 
 | 5337 |  | 
 | 5338 | # Other platforms follow | 
 | 5339 | if test $enable_shared = "yes"; then | 
 | 5340 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5341 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5342 |  | 
 | 5343 |   case $ac_sys_system in | 
 | 5344 |     BeOS*) | 
 | 5345 |           LDLIBRARY='libpython$(VERSION).so' | 
 | 5346 |           ;; | 
 | 5347 |     CYGWIN*) | 
 | 5348 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5349 |           DLLLIBRARY='libpython$(VERSION).dll' | 
 | 5350 |           ;; | 
 | 5351 |     SunOS*) | 
 | 5352 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5353 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5354 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5355 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5356 |           ;; | 
| Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 5357 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5358 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5359 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5360 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5361 | 	  case $ac_sys_system in | 
 | 5362 | 	      FreeBSD*) | 
 | 5363 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 5364 | 		;; | 
 | 5365 | 	  esac | 
 | 5366 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5367 | 	  ;; | 
 | 5368 |     hp*|HP*) | 
 | 5369 | 	  case `uname -m` in | 
 | 5370 | 		ia64) | 
 | 5371 | 			LDLIBRARY='libpython$(VERSION).so' | 
 | 5372 | 			;; | 
 | 5373 | 		*) | 
 | 5374 | 			LDLIBRARY='libpython$(VERSION).sl' | 
 | 5375 | 			;; | 
 | 5376 | 	  esac | 
 | 5377 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5378 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5379 | 	  ;; | 
 | 5380 |     OSF*) | 
 | 5381 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5382 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5383 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5384 | 	  ;; | 
 | 5385 |     atheos*) | 
 | 5386 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5387 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5388 | 	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
 | 5389 | 	  ;; | 
 | 5390 |     Darwin*) | 
 | 5391 |     	LDLIBRARY='libpython$(VERSION).dylib' | 
 | 5392 | 	BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5393 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5394 | 	;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5395 |     AIX*) | 
 | 5396 | 	LDLIBRARY='libpython$(VERSION).so' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5397 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5398 | 	;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5399 |  | 
 | 5400 |   esac | 
 | 5401 | else # shared is disabled | 
 | 5402 |   case $ac_sys_system in | 
 | 5403 |     CYGWIN*) | 
 | 5404 |           BLDLIBRARY='$(LIBRARY)' | 
 | 5405 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5406 |           ;; | 
 | 5407 |   esac | 
 | 5408 | fi | 
 | 5409 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5410 | if test "$cross_compiling" = yes; then | 
 | 5411 | 	RUNSHARED= | 
 | 5412 | fi | 
 | 5413 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5415 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5416 |  | 
 | 5417 | if test -n "$ac_tool_prefix"; then | 
 | 5418 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5419 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5421 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5422 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5423 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5424 | else | 
 | 5425 |   if test -n "$RANLIB"; then | 
 | 5426 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5427 | else | 
 | 5428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5429 | for as_dir in $PATH | 
 | 5430 | do | 
 | 5431 |   IFS=$as_save_IFS | 
 | 5432 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5433 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5434 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5435 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5436 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 |     break 2 | 
 | 5438 |   fi | 
 | 5439 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5440 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5441 | IFS=$as_save_IFS | 
 | 5442 |  | 
 | 5443 | fi | 
 | 5444 | fi | 
 | 5445 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5446 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5447 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5448 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5449 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5450 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5451 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5452 | fi | 
 | 5453 |  | 
 | 5454 |  | 
 | 5455 | fi | 
 | 5456 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5457 |   ac_ct_RANLIB=$RANLIB | 
 | 5458 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5459 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5461 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5462 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5463 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5464 | else | 
 | 5465 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5466 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5467 | else | 
 | 5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5469 | for as_dir in $PATH | 
 | 5470 | do | 
 | 5471 |   IFS=$as_save_IFS | 
 | 5472 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5473 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5474 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5475 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5476 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5477 |     break 2 | 
 | 5478 |   fi | 
 | 5479 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5480 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5481 | IFS=$as_save_IFS | 
 | 5482 |  | 
 | 5483 | fi | 
 | 5484 | fi | 
 | 5485 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5486 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5487 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5488 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5489 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5490 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5491 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5492 | fi | 
 | 5493 |  | 
 | 5494 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5495 |     RANLIB=":" | 
 | 5496 |   else | 
 | 5497 |     case $cross_compiling:$ac_tool_warned in | 
 | 5498 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5501 | ac_tool_warned=yes ;; | 
 | 5502 | esac | 
 | 5503 |     RANLIB=$ac_ct_RANLIB | 
 | 5504 |   fi | 
 | 5505 | else | 
 | 5506 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5507 | fi | 
 | 5508 |  | 
 | 5509 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5510 | if test -n "$ac_tool_prefix"; then | 
 | 5511 |   for ac_prog in ar aal | 
 | 5512 |   do | 
 | 5513 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5514 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5516 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5517 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5518 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5519 | else | 
 | 5520 |   if test -n "$AR"; then | 
 | 5521 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5522 | else | 
 | 5523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5524 | for as_dir in $PATH | 
 | 5525 | do | 
 | 5526 |   IFS=$as_save_IFS | 
 | 5527 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5528 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5529 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5530 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5531 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5532 |     break 2 | 
 | 5533 |   fi | 
 | 5534 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5535 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5536 | IFS=$as_save_IFS | 
 | 5537 |  | 
 | 5538 | fi | 
 | 5539 | fi | 
 | 5540 | AR=$ac_cv_prog_AR | 
 | 5541 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5542 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5543 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5544 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5545 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5546 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5547 | fi | 
 | 5548 |  | 
 | 5549 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5550 |     test -n "$AR" && break | 
 | 5551 |   done | 
 | 5552 | fi | 
 | 5553 | if test -z "$AR"; then | 
 | 5554 |   ac_ct_AR=$AR | 
 | 5555 |   for ac_prog in ar aal | 
 | 5556 | do | 
 | 5557 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5558 | set dummy $ac_prog; ac_word=$2 | 
 | 5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5560 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5561 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 5562 |   $as_echo_n "(cached) " >&6 | 
 | 5563 | else | 
 | 5564 |   if test -n "$ac_ct_AR"; then | 
 | 5565 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5566 | else | 
 | 5567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5568 | for as_dir in $PATH | 
 | 5569 | do | 
 | 5570 |   IFS=$as_save_IFS | 
 | 5571 |   test -z "$as_dir" && as_dir=. | 
 | 5572 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5573 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5574 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 5575 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5576 |     break 2 | 
 | 5577 |   fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5578 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5579 |   done | 
 | 5580 | IFS=$as_save_IFS | 
 | 5581 |  | 
 | 5582 | fi | 
 | 5583 | fi | 
 | 5584 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5585 | if test -n "$ac_ct_AR"; then | 
 | 5586 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 5587 | $as_echo "$ac_ct_AR" >&6; } | 
 | 5588 | else | 
 | 5589 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5590 | $as_echo "no" >&6; } | 
 | 5591 | fi | 
 | 5592 |  | 
 | 5593 |  | 
 | 5594 |   test -n "$ac_ct_AR" && break | 
 | 5595 | done | 
 | 5596 |  | 
 | 5597 |   if test "x$ac_ct_AR" = x; then | 
 | 5598 |     AR="ar" | 
 | 5599 |   else | 
 | 5600 |     case $cross_compiling:$ac_tool_warned in | 
 | 5601 | yes:) | 
 | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5604 | ac_tool_warned=yes ;; | 
 | 5605 | esac | 
 | 5606 |     AR=$ac_ct_AR | 
 | 5607 |   fi | 
 | 5608 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5609 |  | 
 | 5610 |  | 
 | 5611 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5612 |  | 
 | 5613 | if test -z "$ARFLAGS" | 
 | 5614 | then | 
 | 5615 |         ARFLAGS="rc" | 
 | 5616 | fi | 
 | 5617 |  | 
 | 5618 |  | 
 | 5619 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5620 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5622 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5623 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5624 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5625 | else | 
 | 5626 |   if test -n "$SVNVERSION"; then | 
 | 5627 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5628 | else | 
 | 5629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5630 | for as_dir in $PATH | 
 | 5631 | do | 
 | 5632 |   IFS=$as_save_IFS | 
 | 5633 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5634 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5635 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5636 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5637 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5638 |     break 2 | 
 | 5639 |   fi | 
 | 5640 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5641 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5642 | IFS=$as_save_IFS | 
 | 5643 |  | 
 | 5644 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5645 | fi | 
 | 5646 | fi | 
 | 5647 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5648 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5649 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5650 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5651 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5652 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5653 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5654 | fi | 
 | 5655 |  | 
 | 5656 |  | 
 | 5657 | if test $SVNVERSION = found | 
 | 5658 | then | 
 | 5659 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5660 | else | 
 | 5661 | 	SVNVERSION="echo Unversioned directory" | 
 | 5662 | fi | 
 | 5663 |  | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5664 |  | 
| Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5665 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5666 |     # If we're building out-of-tree make sure Include (in the current dir) | 
 | 5667 |     # gets picked up before its $srcdir counterpart in order for Python-ast.h | 
 | 5668 |     # and graminit.h to get picked up from the correct directory. | 
 | 5669 |     # (A side effect of this is that these resources will automatically be | 
 | 5670 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 5671 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 5672 |     #  off.) | 
 | 5673 |     BASECPPFLAGS="-IInclude" | 
 | 5674 | else | 
 | 5675 |     BASECPPFLAGS="" | 
 | 5676 | fi | 
 | 5677 |  | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5678 |  | 
 | 5679 |  | 
 | 5680 |  | 
 | 5681 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5682 | set dummy hg; ac_word=$2 | 
 | 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5684 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5685 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5686 |   $as_echo_n "(cached) " >&6 | 
 | 5687 | else | 
 | 5688 |   if test -n "$HAS_HG"; then | 
 | 5689 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5690 | else | 
 | 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5692 | for as_dir in $PATH | 
 | 5693 | do | 
 | 5694 |   IFS=$as_save_IFS | 
 | 5695 |   test -z "$as_dir" && as_dir=. | 
 | 5696 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5697 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5698 |     ac_cv_prog_HAS_HG="found" | 
 | 5699 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5700 |     break 2 | 
 | 5701 |   fi | 
 | 5702 | done | 
 | 5703 |   done | 
 | 5704 | IFS=$as_save_IFS | 
 | 5705 |  | 
 | 5706 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5707 | fi | 
 | 5708 | fi | 
 | 5709 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5710 | if test -n "$HAS_HG"; then | 
 | 5711 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5712 | $as_echo "$HAS_HG" >&6; } | 
 | 5713 | else | 
 | 5714 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5715 | $as_echo "no" >&6; } | 
 | 5716 | fi | 
 | 5717 |  | 
 | 5718 |  | 
 | 5719 | if test $HAS_HG = found | 
 | 5720 | then | 
 | 5721 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5722 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5723 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5724 | else | 
 | 5725 |     HGVERSION="" | 
 | 5726 |     HGTAG="" | 
 | 5727 |     HGBRANCH="" | 
 | 5728 | fi | 
 | 5729 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5730 | case $MACHDEP in | 
 | 5731 | bsdos*|hp*|HP*) | 
 | 5732 | 	# install -d does not work on BSDI or HP-UX | 
 | 5733 | 	if test -z "$INSTALL" | 
 | 5734 | 	then | 
 | 5735 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5736 | 	fi | 
 | 5737 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5738 | # Find a good install program.  We prefer a C program (faster), | 
 | 5739 | # so one script is as good as another.  But avoid the broken or | 
 | 5740 | # incompatible versions: | 
 | 5741 | # SysV /etc/install, /usr/sbin/install | 
 | 5742 | # SunOS /usr/etc/install | 
 | 5743 | # IRIX /sbin/install | 
 | 5744 | # AIX /bin/install | 
 | 5745 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5746 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5747 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5748 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5749 | # OS/2's system install, which has a completely different semantic | 
 | 5750 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5751 | # Reject install programs that cannot install multiple files. | 
 | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5753 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5754 | if test -z "$INSTALL"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5755 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5756 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5757 | else | 
 | 5758 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5759 | for as_dir in $PATH | 
 | 5760 | do | 
 | 5761 |   IFS=$as_save_IFS | 
 | 5762 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5763 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5764 | case $as_dir/ in #(( | 
 | 5765 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5766 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5767 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5768 |   /usr/ucb/* ) ;; | 
 | 5769 |   *) | 
 | 5770 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5771 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5772 |     # by default. | 
 | 5773 |     for ac_prog in ginstall scoinst install; do | 
 | 5774 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5775 | 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5776 | 	  if test $ac_prog = install && | 
 | 5777 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5778 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5779 | 	    : | 
 | 5780 | 	  elif test $ac_prog = install && | 
 | 5781 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5782 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5783 | 	    : | 
 | 5784 | 	  else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5785 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5786 | 	    echo one > conftest.one | 
 | 5787 | 	    echo two > conftest.two | 
 | 5788 | 	    mkdir conftest.dir | 
 | 5789 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5790 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5791 | 	      test -s conftest.dir/conftest.one && | 
 | 5792 | 	      test -s conftest.dir/conftest.two | 
 | 5793 | 	    then | 
 | 5794 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5795 | 	      break 3 | 
 | 5796 | 	    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5797 | 	  fi | 
 | 5798 | 	fi | 
 | 5799 |       done | 
 | 5800 |     done | 
 | 5801 |     ;; | 
 | 5802 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5803 |  | 
 | 5804 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5805 | IFS=$as_save_IFS | 
 | 5806 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5807 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5808 |  | 
 | 5809 | fi | 
 | 5810 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5811 |     INSTALL=$ac_cv_path_install | 
 | 5812 |   else | 
 | 5813 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5814 |     # value for INSTALL within a source directory, because that will | 
 | 5815 |     # break other packages using the cache if that directory is | 
 | 5816 |     # removed, or if the value is a relative name. | 
 | 5817 |     INSTALL=$ac_install_sh | 
 | 5818 |   fi | 
 | 5819 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5821 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5822 |  | 
 | 5823 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5824 | # It thinks the first close brace ends the variable substitution. | 
 | 5825 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5826 |  | 
 | 5827 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5828 |  | 
 | 5829 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5830 |  | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 5832 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 5833 | if test -z "$MKDIR_P"; then | 
 | 5834 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 5835 |   $as_echo_n "(cached) " >&6 | 
 | 5836 | else | 
 | 5837 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5838 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 5839 | do | 
 | 5840 |   IFS=$as_save_IFS | 
 | 5841 |   test -z "$as_dir" && as_dir=. | 
 | 5842 |     for ac_prog in mkdir gmkdir; do | 
 | 5843 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5844 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5845 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 5846 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 5847 | 	     'mkdir (coreutils) '* | \ | 
 | 5848 | 	     'mkdir (fileutils) '4.1*) | 
 | 5849 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 5850 | 	       break 3;; | 
 | 5851 | 	   esac | 
 | 5852 | 	 done | 
 | 5853 |        done | 
 | 5854 |   done | 
 | 5855 | IFS=$as_save_IFS | 
 | 5856 |  | 
 | 5857 | fi | 
 | 5858 |  | 
 | 5859 |   test -d ./--version && rmdir ./--version | 
 | 5860 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 5861 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 5862 |   else | 
 | 5863 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5864 |     # value for MKDIR_P within a source directory, because that will | 
 | 5865 |     # break other packages using the cache if that directory is | 
 | 5866 |     # removed, or if the value is a relative name. | 
 | 5867 |     MKDIR_P="$ac_install_sh -d" | 
 | 5868 |   fi | 
 | 5869 | fi | 
 | 5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 5871 | $as_echo "$MKDIR_P" >&6; } | 
 | 5872 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5873 |  | 
 | 5874 | # Not every filesystem supports hard links | 
 | 5875 |  | 
 | 5876 | if test -z "$LN" ; then | 
 | 5877 | 	case $ac_sys_system in | 
 | 5878 | 		BeOS*) LN="ln -s";; | 
 | 5879 | 		CYGWIN*) LN="ln -s";; | 
 | 5880 | 		atheos*) LN="ln -s";; | 
 | 5881 | 		*) LN=ln;; | 
 | 5882 | 	esac | 
 | 5883 | fi | 
 | 5884 |  | 
 | 5885 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5887 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5888 |  | 
 | 5889 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5890 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5891 |   withval=$with_pydebug; | 
 | 5892 | if test "$withval" != no | 
 | 5893 | then | 
 | 5894 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5895 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5896 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5897 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5898 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5899 |   Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5900 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5901 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5902 | fi | 
 | 5903 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5904 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5905 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5906 | fi | 
 | 5907 |  | 
 | 5908 |  | 
 | 5909 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5910 | # merged with this chunk of code? | 
 | 5911 |  | 
 | 5912 | # Optimizer/debugger flags | 
 | 5913 | # ------------------------ | 
 | 5914 | # (The following bit of code is complicated enough - please keep things | 
 | 5915 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5916 |  | 
 | 5917 | # There are two parallel sets of case statements below, one that checks to | 
 | 5918 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5919 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5920 | # user set OPT. | 
 | 5921 |  | 
 | 5922 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5923 | # it on the command line | 
 | 5924 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5925 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5926 | then | 
 | 5927 |     case $GCC in | 
 | 5928 |     yes) | 
 | 5929 |         if test "$CC" != 'g++' ; then | 
 | 5930 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5931 | 	fi | 
 | 5932 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5933 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5934 |            WRAP="-fwrapv" | 
 | 5935 |         fi | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5936 |  | 
 | 5937 |         # Clang also needs -fwrapv | 
| Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5938 |         case $CC in | 
 | 5939 |             *clang*) WRAP="-fwrapv" | 
 | 5940 |             ;; | 
 | 5941 |         esac | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5942 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5943 | 	case $ac_cv_prog_cc_g in | 
 | 5944 | 	yes) | 
 | 5945 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5946 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5947 | 		# debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5948 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5949 | 	    else | 
 | 5950 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5951 | 	    fi | 
 | 5952 | 	    ;; | 
 | 5953 | 	*) | 
 | 5954 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5955 | 	    ;; | 
 | 5956 | 	esac | 
 | 5957 | 	case $ac_sys_system in | 
 | 5958 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5959 | 	    ;; | 
 | 5960 |         esac | 
 | 5961 | 	;; | 
 | 5962 |  | 
 | 5963 |     *) | 
 | 5964 | 	OPT="-O" | 
 | 5965 | 	;; | 
 | 5966 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5967 | fi | 
 | 5968 |  | 
 | 5969 |  | 
 | 5970 |  | 
 | 5971 | # The -arch flags for universal builds on OSX | 
 | 5972 | UNIVERSAL_ARCH_FLAGS= | 
 | 5973 |  | 
 | 5974 |  | 
 | 5975 | # tweak BASECFLAGS based on compiler and platform | 
 | 5976 | case $GCC in | 
 | 5977 | yes) | 
 | 5978 |     # Python violates C99 rules, by casting between incompatible | 
 | 5979 |     # pointer types. GCC may generate bad code as a result of that, | 
 | 5980 |     # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5981 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
 | 5982 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5983 |      ac_save_cc="$CC" | 
 | 5984 |      CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5985 |      if ${ac_cv_no_strict_aliasing_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5986 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5987 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5988 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5989 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5990 |  | 
 | 5991 | int | 
 | 5992 | main () | 
 | 5993 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5994 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5995 |   ; | 
 | 5996 |   return 0; | 
 | 5997 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5998 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5999 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6000 |   ac_cv_no_strict_aliasing_ok=yes | 
 | 6001 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6002 |   ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6003 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6005 | fi | 
 | 6006 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6007 |      CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6008 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
 | 6009 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6010 |     if test $ac_cv_no_strict_aliasing_ok = yes | 
 | 6011 |     then | 
 | 6012 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6013 |     fi | 
 | 6014 |  | 
 | 6015 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 6016 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 6017 |     # the standard. | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 6018 |     case $host in | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6019 |          alpha*) | 
 | 6020 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6021 |                 ;; | 
 | 6022 |     esac | 
 | 6023 |  | 
 | 6024 |     case $ac_sys_system in | 
 | 6025 | 	SCO_SV*) | 
 | 6026 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 6027 | 	    ;; | 
 | 6028 | 	# is there any other compiler on Darwin besides gcc? | 
 | 6029 | 	Darwin*) | 
 | 6030 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 6031 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6032 | 	    if test "${CC}" = gcc | 
 | 6033 | 	    then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6034 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 6035 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6036 | 		case "${UNIVERSALSDK}" in | 
 | 6037 | 		*/MacOSX10.4u.sdk) | 
 | 6038 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 6039 | 			# compiler is gcc, otherwise the user will get very | 
 | 6040 | 			# confusing error messages when building on OSX 10.6 | 
 | 6041 | 			CC=gcc-4.0 | 
 | 6042 | 			CPP=cpp-4.0 | 
 | 6043 | 			;; | 
 | 6044 | 		esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6045 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 6046 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6047 | 	    fi | 
 | 6048 |  | 
 | 6049 | 	    # Calculate the right deployment target for this build. | 
 | 6050 | 	    # | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 6051 | 		cur_target_major=`sw_vers -productVersion | \ | 
 | 6052 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 6053 | 		cur_target_minor=`sw_vers -productVersion | \ | 
 | 6054 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 6055 | 		cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 6056 | 		if test ${cur_target_major} -eq 10 && \ | 
 | 6057 | 		   test ${cur_target_minor} -ge 3 | 
 | 6058 | 		then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6059 | 		    cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6060 | 		    if test ${enable_universalsdk}; then | 
 | 6061 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 6062 | 				    # Ensure that the default platform for a | 
 | 6063 | 				    # 4-way universal build is OSX 10.5, | 
 | 6064 | 				    # that's the first OS release where | 
 | 6065 | 				    # 4-way builds make sense. | 
 | 6066 | 				    cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 6067 |  | 
 | 6068 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 6069 | 				    cur_target='10.5' | 
 | 6070 |  | 
 | 6071 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 6072 | 				    cur_target='10.5' | 
 | 6073 |  | 
 | 6074 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 6075 | 				    cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6076 | 			    fi | 
 | 6077 | 		    else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 6078 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6079 | 				    # On Intel macs default to a deployment | 
 | 6080 | 				    # target of 10.4, that's the first OSX | 
 | 6081 | 				    # release with Intel support. | 
 | 6082 | 				    cur_target="10.4" | 
 | 6083 | 			    fi | 
 | 6084 | 		    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6085 | 	    fi | 
 | 6086 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 6087 |  | 
 | 6088 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 6089 | 	    # environment with a value that is the same as what we'll use | 
 | 6090 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 6091 | 	    # environment during configure and build time. | 
 | 6092 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 6093 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 6094 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 6095 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6096 | 	    if test "${enable_universalsdk}"; then | 
 | 6097 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 6098 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 6099 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 6100 | 		   ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6101 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6102 |  | 
 | 6103 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 6104 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 6105 | 		   LIPO_32BIT_FLAGS="" | 
 | 6106 | 		   ARCH_RUN_32BIT="true" | 
 | 6107 |  | 
 | 6108 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 6109 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 6110 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6111 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6112 |  | 
 | 6113 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 6114 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 6115 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6116 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6117 |  | 
 | 6118 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 6119 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 6120 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 6121 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6122 |  | 
 | 6123 | 		 else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6124 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6125 |  | 
 | 6126 | 		 fi | 
 | 6127 |  | 
 | 6128 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 6129 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
 | 6130 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 6131 | 		then | 
 | 6132 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 6133 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 6134 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6135 | 		fi | 
 | 6136 |  | 
 | 6137 | 	    fi | 
 | 6138 |  | 
 | 6139 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6140 | 	    ;; | 
 | 6141 | 	OSF*) | 
 | 6142 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6143 | 	    ;; | 
 | 6144 |     esac | 
 | 6145 |     ;; | 
 | 6146 |  | 
 | 6147 | *) | 
 | 6148 |     case $ac_sys_system in | 
 | 6149 |     OpenUNIX*|UnixWare*) | 
 | 6150 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 6151 | 	;; | 
 | 6152 |     OSF*) | 
 | 6153 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 6154 |     	;; | 
 | 6155 |     SCO_SV*) | 
 | 6156 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 6157 | 	;; | 
 | 6158 |     esac | 
 | 6159 |     ;; | 
 | 6160 | esac | 
 | 6161 |  | 
 | 6162 | if test "$Py_DEBUG" = 'true'; then | 
 | 6163 |   : | 
 | 6164 | else | 
 | 6165 |   OPT="-DNDEBUG $OPT" | 
 | 6166 | fi | 
 | 6167 |  | 
 | 6168 | if test "$ac_arch_flags" | 
 | 6169 | then | 
 | 6170 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 6171 | fi | 
 | 6172 |  | 
 | 6173 | # disable check for icc since it seems to pass, but generates a warning | 
 | 6174 | if test "$CC" = icc | 
 | 6175 | then | 
 | 6176 |   ac_cv_opt_olimit_ok=no | 
 | 6177 | fi | 
 | 6178 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
 | 6180 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6181 | if ${ac_cv_opt_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6182 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6183 | else | 
 | 6184 |   ac_save_cc="$CC" | 
 | 6185 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6187 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6188 |  | 
 | 6189 | int | 
 | 6190 | main () | 
 | 6191 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6192 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6193 |   ; | 
 | 6194 |   return 0; | 
 | 6195 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6196 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6197 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6198 |   ac_cv_opt_olimit_ok=yes | 
 | 6199 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6200 |   ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6201 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6202 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6204 | CC="$ac_save_cc" | 
 | 6205 | fi | 
 | 6206 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
 | 6208 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6209 | if test $ac_cv_opt_olimit_ok = yes; then | 
 | 6210 |     case $ac_sys_system in | 
 | 6211 | 	# XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
 | 6212 | 	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
 | 6213 | 	# environment? | 
 | 6214 |         Darwin*) | 
 | 6215 | 	    ;; | 
| Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 6216 |         # XXX thankfully this useless troublemaker of a flag has been | 
 | 6217 |         # eradicated in the 3.x line.  For now, make sure it isn't picked | 
 | 6218 |         # up by any of our other platforms that use CC. | 
 | 6219 |         AIX*|SunOS*|HP-UX*|IRIX*) | 
 | 6220 |             ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6221 |         *) | 
 | 6222 | 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
 | 6223 | 	    ;; | 
 | 6224 |     esac | 
 | 6225 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6226 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
 | 6227 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6228 |   if ${ac_cv_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6229 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6230 | else | 
 | 6231 |   ac_save_cc="$CC" | 
 | 6232 |   CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6233 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6234 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6235 |  | 
 | 6236 | int | 
 | 6237 | main () | 
 | 6238 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6239 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6240 |   ; | 
 | 6241 |   return 0; | 
 | 6242 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6243 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6244 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6245 |   ac_cv_olimit_ok=yes | 
 | 6246 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6247 |   ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6248 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6249 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6251 |   CC="$ac_save_cc" | 
 | 6252 | fi | 
 | 6253 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6254 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
 | 6255 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6256 |   if test $ac_cv_olimit_ok = yes; then | 
| Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 6257 |     case $ac_sys_system in | 
 | 6258 |         # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. | 
 | 6259 |         HP-UX*) | 
 | 6260 |             ;; | 
 | 6261 |         *) | 
 | 6262 |             BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
 | 6263 |             ;; | 
 | 6264 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6265 |   fi | 
 | 6266 | fi | 
 | 6267 |  | 
 | 6268 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 6269 | if test "$GCC" = "yes" | 
 | 6270 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6271 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 6272 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6273 |   save_CFLAGS=$CFLAGS | 
| Benjamin Peterson | c875966 | 2013-05-11 13:00:05 -0500 | [diff] [blame] | 6274 |   CFLAGS="$CFLAGS -Werror -Wformat" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6275 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6276 | /* end confdefs.h.  */ | 
 | 6277 |  | 
 | 6278 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6279 | int | 
 | 6280 | main () | 
 | 6281 | { | 
 | 6282 |  | 
 | 6283 |   ; | 
 | 6284 |   return 0; | 
 | 6285 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6286 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6287 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6288 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6289 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6290 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6291 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6292 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6293 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6294 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6295 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6296 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6297 |  | 
 | 6298 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6299 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6300 |  | 
 | 6301 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6303 |   CFLAGS=$save_CFLAGS | 
 | 6304 | fi | 
 | 6305 |  | 
 | 6306 | # On some compilers, pthreads are available without further options | 
 | 6307 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 6308 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 6309 | # So we have to see first whether pthreads are available without | 
 | 6310 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 6312 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6313 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6314 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6315 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6316 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6317 |   ac_cv_pthread_is_default=no | 
 | 6318 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6319 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6320 | /* end confdefs.h.  */ | 
 | 6321 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6322 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6323 | #include <pthread.h> | 
 | 6324 |  | 
 | 6325 | void* routine(void* p){return NULL;} | 
 | 6326 |  | 
 | 6327 | int main(){ | 
 | 6328 |   pthread_t p; | 
 | 6329 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6330 |     return 1; | 
 | 6331 |   (void)pthread_detach(p); | 
 | 6332 |   return 0; | 
 | 6333 | } | 
 | 6334 |  | 
 | 6335 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6336 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6337 |  | 
 | 6338 |   ac_cv_pthread_is_default=yes | 
 | 6339 |   ac_cv_kthread=no | 
 | 6340 |   ac_cv_pthread=no | 
 | 6341 |  | 
 | 6342 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6343 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6344 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6346 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6347 | fi | 
 | 6348 |  | 
 | 6349 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6350 | fi | 
 | 6351 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 6353 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6354 |  | 
 | 6355 |  | 
 | 6356 | if test $ac_cv_pthread_is_default = yes | 
 | 6357 | then | 
 | 6358 |   ac_cv_kpthread=no | 
 | 6359 | else | 
 | 6360 | # -Kpthread, if available, provides the right #defines | 
 | 6361 | # and linker options to make pthread_create available | 
 | 6362 | # Some compilers won't report that they do not support -Kpthread, | 
 | 6363 | # so we need to run a program to see whether it really made the | 
 | 6364 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 6366 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6367 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6368 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6369 | else | 
 | 6370 |   ac_save_cc="$CC" | 
 | 6371 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6372 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6373 |   ac_cv_kpthread=no | 
 | 6374 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6375 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6376 | /* end confdefs.h.  */ | 
 | 6377 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6378 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6379 | #include <pthread.h> | 
 | 6380 |  | 
 | 6381 | void* routine(void* p){return NULL;} | 
 | 6382 |  | 
 | 6383 | int main(){ | 
 | 6384 |   pthread_t p; | 
 | 6385 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6386 |     return 1; | 
 | 6387 |   (void)pthread_detach(p); | 
 | 6388 |   return 0; | 
 | 6389 | } | 
 | 6390 |  | 
 | 6391 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6392 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6393 |   ac_cv_kpthread=yes | 
 | 6394 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6395 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6396 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6398 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6399 | fi | 
 | 6400 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6401 | CC="$ac_save_cc" | 
 | 6402 | fi | 
 | 6403 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 6405 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6406 | fi | 
 | 6407 |  | 
 | 6408 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 6409 | then | 
 | 6410 | # -Kthread, if available, provides the right #defines | 
 | 6411 | # and linker options to make pthread_create available | 
 | 6412 | # Some compilers won't report that they do not support -Kthread, | 
 | 6413 | # so we need to run a program to see whether it really made the | 
 | 6414 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 6416 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6417 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6418 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6419 | else | 
 | 6420 |   ac_save_cc="$CC" | 
 | 6421 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6422 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6423 |   ac_cv_kthread=no | 
 | 6424 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6425 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6426 | /* end confdefs.h.  */ | 
 | 6427 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6428 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6429 | #include <pthread.h> | 
 | 6430 |  | 
 | 6431 | void* routine(void* p){return NULL;} | 
 | 6432 |  | 
 | 6433 | int main(){ | 
 | 6434 |   pthread_t p; | 
 | 6435 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6436 |     return 1; | 
 | 6437 |   (void)pthread_detach(p); | 
 | 6438 |   return 0; | 
 | 6439 | } | 
 | 6440 |  | 
 | 6441 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6442 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6443 |   ac_cv_kthread=yes | 
 | 6444 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6445 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6446 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6447 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6448 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6449 | fi | 
 | 6450 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6451 | CC="$ac_save_cc" | 
 | 6452 | fi | 
 | 6453 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 6455 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6456 | fi | 
 | 6457 |  | 
 | 6458 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6459 | then | 
 | 6460 | # -pthread, if available, provides the right #defines | 
 | 6461 | # and linker options to make pthread_create available | 
 | 6462 | # Some compilers won't report that they do not support -pthread, | 
 | 6463 | # so we need to run a program to see whether it really made the | 
 | 6464 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6466 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | fa3f9a3 | 2013-01-25 15:32:31 +0100 | [diff] [blame] | 6467 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6468 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6469 | else | 
 | 6470 |   ac_save_cc="$CC" | 
 | 6471 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6472 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6473 |   ac_cv_pthread=no | 
 | 6474 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6475 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6476 | /* end confdefs.h.  */ | 
 | 6477 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6478 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6479 | #include <pthread.h> | 
 | 6480 |  | 
 | 6481 | void* routine(void* p){return NULL;} | 
 | 6482 |  | 
 | 6483 | int main(){ | 
 | 6484 |   pthread_t p; | 
 | 6485 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6486 |     return 1; | 
 | 6487 |   (void)pthread_detach(p); | 
 | 6488 |   return 0; | 
 | 6489 | } | 
 | 6490 |  | 
 | 6491 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6492 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6493 |   ac_cv_pthread=yes | 
 | 6494 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6495 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6496 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6497 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6498 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6499 | fi | 
 | 6500 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6501 | CC="$ac_save_cc" | 
 | 6502 | fi | 
 | 6503 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6505 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6506 | fi | 
 | 6507 |  | 
 | 6508 | # If we have set a CC compiler flag for thread support then | 
 | 6509 | # check if it works for CXX, too. | 
 | 6510 | ac_cv_cxx_thread=no | 
 | 6511 | if test ! -z "$CXX" | 
 | 6512 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6514 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6515 | ac_save_cxx="$CXX" | 
 | 6516 |  | 
 | 6517 | if test "$ac_cv_kpthread" = "yes" | 
 | 6518 | then | 
 | 6519 |   CXX="$CXX -Kpthread" | 
 | 6520 |   ac_cv_cxx_thread=yes | 
 | 6521 | elif test "$ac_cv_kthread" = "yes" | 
 | 6522 | then | 
 | 6523 |   CXX="$CXX -Kthread" | 
 | 6524 |   ac_cv_cxx_thread=yes | 
 | 6525 | elif test "$ac_cv_pthread" = "yes" | 
 | 6526 | then | 
 | 6527 |   CXX="$CXX -pthread" | 
 | 6528 |   ac_cv_cxx_thread=yes | 
 | 6529 | fi | 
 | 6530 |  | 
 | 6531 | if test $ac_cv_cxx_thread = yes | 
 | 6532 | then | 
 | 6533 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6534 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6535 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6536 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6537 |   then | 
 | 6538 |     ac_cv_cxx_thread=yes | 
 | 6539 |   else | 
 | 6540 |     ac_cv_cxx_thread=no | 
 | 6541 |   fi | 
 | 6542 |   rm -fr conftest* | 
 | 6543 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6545 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6546 | fi | 
 | 6547 | CXX="$ac_save_cxx" | 
 | 6548 |  | 
 | 6549 |  | 
 | 6550 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6552 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6553 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6554 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6555 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6556 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6557 | /* end confdefs.h.  */ | 
 | 6558 | #include <stdlib.h> | 
 | 6559 | #include <stdarg.h> | 
 | 6560 | #include <string.h> | 
 | 6561 | #include <float.h> | 
 | 6562 |  | 
 | 6563 | int | 
 | 6564 | main () | 
 | 6565 | { | 
 | 6566 |  | 
 | 6567 |   ; | 
 | 6568 |   return 0; | 
 | 6569 | } | 
 | 6570 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6571 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6572 |   ac_cv_header_stdc=yes | 
 | 6573 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6574 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6575 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6577 |  | 
 | 6578 | if test $ac_cv_header_stdc = yes; then | 
 | 6579 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6580 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6581 | /* end confdefs.h.  */ | 
 | 6582 | #include <string.h> | 
 | 6583 |  | 
 | 6584 | _ACEOF | 
 | 6585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6586 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6587 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6588 | else | 
 | 6589 |   ac_cv_header_stdc=no | 
 | 6590 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6591 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6592 |  | 
 | 6593 | fi | 
 | 6594 |  | 
 | 6595 | if test $ac_cv_header_stdc = yes; then | 
 | 6596 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6597 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6598 | /* end confdefs.h.  */ | 
 | 6599 | #include <stdlib.h> | 
 | 6600 |  | 
 | 6601 | _ACEOF | 
 | 6602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6603 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6604 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6605 | else | 
 | 6606 |   ac_cv_header_stdc=no | 
 | 6607 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6608 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6609 |  | 
 | 6610 | fi | 
 | 6611 |  | 
 | 6612 | if test $ac_cv_header_stdc = yes; then | 
 | 6613 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6614 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6615 |   : | 
 | 6616 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6617 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6618 | /* end confdefs.h.  */ | 
 | 6619 | #include <ctype.h> | 
 | 6620 | #include <stdlib.h> | 
 | 6621 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6622 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6623 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6624 | #else | 
 | 6625 | # define ISLOWER(c) \ | 
 | 6626 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6627 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6628 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6629 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6630 | #endif | 
 | 6631 |  | 
 | 6632 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6633 | int | 
 | 6634 | main () | 
 | 6635 | { | 
 | 6636 |   int i; | 
 | 6637 |   for (i = 0; i < 256; i++) | 
 | 6638 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6639 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6640 |       return 2; | 
 | 6641 |   return 0; | 
 | 6642 | } | 
 | 6643 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6644 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6645 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6646 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6647 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6648 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6650 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6651 | fi | 
 | 6652 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6653 | fi | 
 | 6654 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6656 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6657 | if test $ac_cv_header_stdc = yes; then | 
 | 6658 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6659 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6660 |  | 
 | 6661 | fi | 
 | 6662 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6663 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6664 | fcntl.h grp.h \ | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6665 | ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \ | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6666 | 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] | 6667 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6668 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6669 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6670 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6671 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6672 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6673 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Christian Heimes | 3aa138f | 2013-06-18 13:25:24 +0200 | [diff] [blame] | 6674 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6675 | do : | 
 | 6676 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6677 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6678 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6679 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6680 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | _ACEOF | 
 | 6682 |  | 
 | 6683 | fi | 
 | 6684 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6685 | done | 
 | 6686 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6687 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6689 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6691 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6692 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6693 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6694 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6695 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6696 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6697 | #include <sys/types.h> | 
 | 6698 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6699 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | int | 
 | 6701 | main () | 
 | 6702 | { | 
 | 6703 | if ((DIR *) 0) | 
 | 6704 | return 0; | 
 | 6705 |   ; | 
 | 6706 |   return 0; | 
 | 6707 | } | 
 | 6708 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6709 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6711 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6712 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6713 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6715 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6716 | eval ac_res=\$$as_ac_Header | 
 | 6717 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6718 | $as_echo "$ac_res" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6719 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6721 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6722 | _ACEOF | 
 | 6723 |  | 
 | 6724 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6725 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6726 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6727 | done | 
 | 6728 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6729 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6730 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6731 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6732 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6733 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6734 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6737 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6738 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6739 | /* Override any GCC internal prototype to avoid an error. | 
 | 6740 |    Use char because int might match the return type of a GCC | 
 | 6741 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | #ifdef __cplusplus | 
 | 6743 | extern "C" | 
 | 6744 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | int | 
 | 6747 | main () | 
 | 6748 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6749 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6750 |   ; | 
 | 6751 |   return 0; | 
 | 6752 | } | 
 | 6753 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6754 | for ac_lib in '' dir; do | 
 | 6755 |   if test -z "$ac_lib"; then | 
 | 6756 |     ac_res="none required" | 
 | 6757 |   else | 
 | 6758 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6759 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6760 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6761 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6762 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6763 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6764 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6765 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6766 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6767 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6768 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6769 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6770 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6771 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6772 | else | 
 | 6773 |   ac_cv_search_opendir=no | 
 | 6774 | fi | 
 | 6775 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | LIBS=$ac_func_search_save_LIBS | 
 | 6777 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6779 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6780 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6781 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6782 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6783 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6784 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6785 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6786 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6787 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6788 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6789 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6790 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | else | 
 | 6792 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6794 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6796 | /* Override any GCC internal prototype to avoid an error. | 
 | 6797 |    Use char because int might match the return type of a GCC | 
 | 6798 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | #ifdef __cplusplus | 
 | 6800 | extern "C" | 
 | 6801 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | int | 
 | 6804 | main () | 
 | 6805 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6806 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6807 |   ; | 
 | 6808 |   return 0; | 
 | 6809 | } | 
 | 6810 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6811 | for ac_lib in '' x; do | 
 | 6812 |   if test -z "$ac_lib"; then | 
 | 6813 |     ac_res="none required" | 
 | 6814 |   else | 
 | 6815 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6816 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6817 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6818 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6819 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6820 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6821 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6822 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6823 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6824 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6825 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6826 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6827 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6828 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6829 | else | 
 | 6830 |   ac_cv_search_opendir=no | 
 | 6831 | fi | 
 | 6832 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6833 | LIBS=$ac_func_search_save_LIBS | 
 | 6834 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6836 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6837 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6838 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6839 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6840 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6841 | fi | 
 | 6842 |  | 
 | 6843 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6844 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6846 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6847 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6848 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6849 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6850 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6851 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6852 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6853 | int | 
 | 6854 | main () | 
 | 6855 | { | 
 | 6856 | return makedev(0, 0); | 
 | 6857 |   ; | 
 | 6858 |   return 0; | 
 | 6859 | } | 
 | 6860 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6861 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6862 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6863 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6864 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6865 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6866 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6867 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6868 |  | 
 | 6869 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6871 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6872 |  | 
 | 6873 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6874 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6875 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6876 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6877 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6878 |  | 
 | 6879 | fi | 
 | 6880 |  | 
 | 6881 |  | 
 | 6882 |  | 
 | 6883 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6884 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6885 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6886 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6887 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6888 |  | 
 | 6889 | fi | 
 | 6890 |  | 
 | 6891 |  | 
 | 6892 |   fi | 
 | 6893 | fi | 
 | 6894 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6895 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6896 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6897 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6898 | do : | 
 | 6899 |   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] | 6900 | #ifdef HAVE_ASM_TYPES_H | 
 | 6901 | #include <asm/types.h> | 
 | 6902 | #endif | 
 | 6903 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6904 | #include <sys/socket.h> | 
 | 6905 | #endif | 
 | 6906 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6907 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6908 | 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] | 6909 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6910 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6911 | _ACEOF | 
 | 6912 |  | 
 | 6913 | fi | 
 | 6914 |  | 
 | 6915 | done | 
 | 6916 |  | 
 | 6917 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6918 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6919 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 6921 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 6922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6923 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6924 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 |  | 
 | 6926 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6928 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6929 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6930 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 |  | 
 | 6932 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6933 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6934 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6935 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6936 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6937 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6938 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 6940 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6941 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6942 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 6944 | $as_echo_n "checking for makedev... " >&6; } | 
 | 6945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6946 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6947 |  | 
 | 6948 | #if defined(MAJOR_IN_MKDEV) | 
 | 6949 | #include <sys/mkdev.h> | 
 | 6950 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 6951 | #include <sys/sysmacros.h> | 
 | 6952 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6953 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6954 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6955 | int | 
 | 6956 | main () | 
 | 6957 | { | 
 | 6958 |  makedev(0, 0) | 
 | 6959 |   ; | 
 | 6960 |   return 0; | 
 | 6961 | } | 
 | 6962 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6963 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6964 |   ac_cv_has_makedev=yes | 
 | 6965 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6966 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6967 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6968 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6969 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6970 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 6971 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6972 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6973 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6974 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6975 | #define _OSF_SOURCE 1 | 
 | 6976 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6977 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6978 | int | 
 | 6979 | main () | 
 | 6980 | { | 
 | 6981 |  makedev(0, 0) | 
 | 6982 |   ; | 
 | 6983 |   return 0; | 
 | 6984 | } | 
 | 6985 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6986 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6987 |   ac_cv_has_makedev=yes | 
 | 6988 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6989 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6990 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6991 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6992 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6993 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6994 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6995 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6996 |  | 
 | 6997 |     fi | 
 | 6998 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 7000 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7001 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7002 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7003 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7004 |  | 
 | 7005 | fi | 
 | 7006 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7007 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 7008 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 7009 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 7010 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 7011 | # structures (such as rlimit64) without declaring them. As a | 
 | 7012 | # work-around, disable LFS on such configurations | 
 | 7013 |  | 
 | 7014 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 7016 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7018 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7019 |  | 
 | 7020 | #define _LARGEFILE_SOURCE 1 | 
 | 7021 | #define _FILE_OFFSET_BITS 64 | 
 | 7022 | #include <sys/resource.h> | 
 | 7023 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7024 | int | 
 | 7025 | main () | 
 | 7026 | { | 
 | 7027 | struct rlimit foo; | 
 | 7028 |   ; | 
 | 7029 |   return 0; | 
 | 7030 | } | 
 | 7031 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7032 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7033 |   sol_lfs_bug=no | 
 | 7034 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7035 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7036 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 7039 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7040 | if test "$sol_lfs_bug" = "yes"; then | 
 | 7041 |   use_lfs=no | 
 | 7042 | fi | 
 | 7043 |  | 
 | 7044 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7045 | # Two defines needed to enable largefile support on various platforms | 
 | 7046 | # These may affect some typedefs | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 7047 | case $ac_sys_system/$ac_sys_release in | 
 | 7048 | AIX*) | 
 | 7049 |  | 
 | 7050 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 7051 |  | 
 | 7052 |     ;; | 
 | 7053 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7054 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7055 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 |  | 
 | 7057 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7058 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7059 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7060 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7061 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7062 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 7063 | cat >> confdefs.h <<\EOF | 
 | 7064 | #if defined(SCO_DS) | 
 | 7065 | #undef _OFF_T | 
 | 7066 | #endif | 
 | 7067 | EOF | 
 | 7068 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7069 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7070 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7071 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7072 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7073 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7074 |  | 
 | 7075 | cat >>confdefs.h <<_ACEOF | 
 | 7076 | #define mode_t int | 
 | 7077 | _ACEOF | 
 | 7078 |  | 
 | 7079 | fi | 
 | 7080 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7081 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7082 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7083 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7084 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7085 |  | 
 | 7086 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7087 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7088 | _ACEOF | 
 | 7089 |  | 
 | 7090 | fi | 
 | 7091 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7092 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7093 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7094 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7095 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7096 |  | 
 | 7097 | cat >>confdefs.h <<_ACEOF | 
 | 7098 | #define pid_t int | 
 | 7099 | _ACEOF | 
 | 7100 |  | 
 | 7101 | fi | 
 | 7102 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7103 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7104 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 7105 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7107 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7108 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7109 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7110 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7111 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7112 |  | 
 | 7113 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7114 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | _ACEOF | 
 | 7116 |  | 
 | 7117 | fi | 
 | 7118 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 7120 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7121 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7122 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7124 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7125 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7126 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7127 |  | 
 | 7128 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7130 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7131 |   ac_cv_type_uid_t=yes | 
 | 7132 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7133 |   ac_cv_type_uid_t=no | 
 | 7134 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7135 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7136 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7137 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 7139 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7140 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7141 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7142 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7143 |  | 
 | 7144 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7145 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7146 |  | 
 | 7147 | fi | 
 | 7148 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7149 |  | 
 | 7150 | # There are two separate checks for each of the exact-width integer types we | 
 | 7151 | # need.  First we check whether the type is available using the usual | 
 | 7152 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 7153 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 7154 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 7155 | # directly, #define's uint32_t to be a suitable type. | 
 | 7156 |  | 
 | 7157 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 7158 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 7159 |  | 
 | 7160 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 7161 |  | 
 | 7162 | fi | 
 | 7163 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7164 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 7165 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7166 |   no|yes) ;; #( | 
 | 7167 |   *) | 
 | 7168 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7169 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7170 |  | 
 | 7171 |  | 
 | 7172 | cat >>confdefs.h <<_ACEOF | 
 | 7173 | #define uint32_t $ac_cv_c_uint32_t | 
 | 7174 | _ACEOF | 
 | 7175 | ;; | 
 | 7176 |   esac | 
 | 7177 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7178 |  | 
 | 7179 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 7180 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 7181 |  | 
 | 7182 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 7183 |  | 
 | 7184 | fi | 
 | 7185 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7186 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 7187 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7188 |   no|yes) ;; #( | 
 | 7189 |   *) | 
 | 7190 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7191 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7192 |  | 
 | 7193 |  | 
 | 7194 | cat >>confdefs.h <<_ACEOF | 
 | 7195 | #define uint64_t $ac_cv_c_uint64_t | 
 | 7196 | _ACEOF | 
 | 7197 | ;; | 
 | 7198 |   esac | 
 | 7199 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7200 |  | 
 | 7201 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 7202 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 7203 |  | 
 | 7204 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 7205 |  | 
 | 7206 | fi | 
 | 7207 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7208 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 7209 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7210 |   no|yes) ;; #( | 
 | 7211 |   *) | 
 | 7212 |  | 
 | 7213 | cat >>confdefs.h <<_ACEOF | 
 | 7214 | #define int32_t $ac_cv_c_int32_t | 
 | 7215 | _ACEOF | 
 | 7216 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7217 | esac | 
 | 7218 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7219 |  | 
 | 7220 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 7221 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 7222 |  | 
 | 7223 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 7224 |  | 
 | 7225 | fi | 
 | 7226 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7227 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 7228 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7229 |   no|yes) ;; #( | 
 | 7230 |   *) | 
 | 7231 |  | 
 | 7232 | cat >>confdefs.h <<_ACEOF | 
 | 7233 | #define int64_t $ac_cv_c_int64_t | 
 | 7234 | _ACEOF | 
 | 7235 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7236 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7237 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7238 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7239 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7240 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7242 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7243 |  | 
 | 7244 | fi | 
 | 7245 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7246 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7247 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7248 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7249 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7252 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 7254 | $as_echo_n "checking size of int... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7255 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7256 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7257 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7258 |   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] | 7259 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7260 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7261 |   if test "$ac_cv_type_int" = yes; then | 
 | 7262 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7264 | as_fn_error 77 "cannot compute sizeof (int) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7265 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7266 |    else | 
 | 7267 |      ac_cv_sizeof_int=0 | 
 | 7268 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7269 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7270 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7271 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 7273 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7274 |  | 
 | 7275 |  | 
 | 7276 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7277 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7278 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7279 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7280 |  | 
 | 7281 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7282 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7283 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7284 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7285 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 7287 | $as_echo_n "checking size of long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7288 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7289 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7291 |   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] | 7292 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7293 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7294 |   if test "$ac_cv_type_long" = yes; then | 
 | 7295 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7297 | as_fn_error 77 "cannot compute sizeof (long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7298 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7299 |    else | 
 | 7300 |      ac_cv_sizeof_long=0 | 
 | 7301 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7302 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7303 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7304 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 7306 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7307 |  | 
 | 7308 |  | 
 | 7309 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7310 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7311 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7313 |  | 
 | 7314 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7315 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7316 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7317 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7318 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 7320 | $as_echo_n "checking size of void *... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7321 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7322 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7323 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7324 |   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] | 7325 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7326 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7327 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 7328 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7329 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7330 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7331 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7332 |    else | 
 | 7333 |      ac_cv_sizeof_void_p=0 | 
 | 7334 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7336 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 7339 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7340 |  | 
 | 7341 |  | 
 | 7342 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7344 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7345 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7346 |  | 
 | 7347 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7348 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7349 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7350 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7351 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 7353 | $as_echo_n "checking size of short... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7354 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7355 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7357 |   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] | 7358 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7359 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7360 |   if test "$ac_cv_type_short" = yes; then | 
 | 7361 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7362 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7363 | as_fn_error 77 "cannot compute sizeof (short) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7364 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7365 |    else | 
 | 7366 |      ac_cv_sizeof_short=0 | 
 | 7367 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7369 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 7372 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7373 |  | 
 | 7374 |  | 
 | 7375 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7377 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7379 |  | 
 | 7380 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7381 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7382 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7383 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7384 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 7386 | $as_echo_n "checking size of float... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7387 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7388 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7389 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7390 |   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] | 7391 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7392 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7393 |   if test "$ac_cv_type_float" = yes; then | 
 | 7394 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7396 | as_fn_error 77 "cannot compute sizeof (float) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7397 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7398 |    else | 
 | 7399 |      ac_cv_sizeof_float=0 | 
 | 7400 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7401 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 7405 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7406 |  | 
 | 7407 |  | 
 | 7408 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7410 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7411 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7412 |  | 
 | 7413 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7414 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7415 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7416 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7417 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 7419 | $as_echo_n "checking size of double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7420 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7421 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7423 |   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] | 7424 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7425 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7426 |   if test "$ac_cv_type_double" = yes; then | 
 | 7427 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7428 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7429 | as_fn_error 77 "cannot compute sizeof (double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7430 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7431 |    else | 
 | 7432 |      ac_cv_sizeof_double=0 | 
 | 7433 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7434 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7435 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7436 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 7438 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7439 |  | 
 | 7440 |  | 
 | 7441 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7443 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7444 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7445 |  | 
 | 7446 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7447 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7448 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7449 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7450 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 7452 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7453 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7454 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7455 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7456 |   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] | 7457 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7458 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7459 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 7460 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7462 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7463 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7464 |    else | 
 | 7465 |      ac_cv_sizeof_fpos_t=0 | 
 | 7466 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7467 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 7471 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7472 |  | 
 | 7473 |  | 
 | 7474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7475 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7476 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7478 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7479 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7480 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7483 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7485 | $as_echo_n "checking size of size_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7486 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7487 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7488 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7489 |   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] | 7490 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7491 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7492 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7493 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7495 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7496 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7497 |    else | 
 | 7498 |      ac_cv_sizeof_size_t=0 | 
 | 7499 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7500 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7501 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7502 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7504 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7505 |  | 
 | 7506 |  | 
 | 7507 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7508 | cat >>confdefs.h <<_ACEOF | 
 | 7509 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7510 | _ACEOF | 
 | 7511 |  | 
 | 7512 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7513 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7514 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7515 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7516 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7518 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7519 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7520 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7521 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7522 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7523 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7524 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7525 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7526 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7528 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7529 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7530 |    else | 
 | 7531 |      ac_cv_sizeof_pid_t=0 | 
 | 7532 |    fi | 
 | 7533 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7534 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7535 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7537 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7538 |  | 
 | 7539 |  | 
 | 7540 |  | 
 | 7541 | cat >>confdefs.h <<_ACEOF | 
 | 7542 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7543 | _ACEOF | 
 | 7544 |  | 
 | 7545 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7546 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7548 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7549 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7551 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | int | 
 | 7554 | main () | 
 | 7555 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7556 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 |   ; | 
 | 7558 |   return 0; | 
 | 7559 | } | 
 | 7560 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7561 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 |  | 
 | 7563 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7564 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7565 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7566 |   have_long_long=yes | 
 | 7567 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7568 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7571 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7572 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7573 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7574 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7575 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7576 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7578 | $as_echo_n "checking size of long long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7579 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7580 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7582 |   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] | 7583 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7585 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7586 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7588 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7589 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7590 |    else | 
 | 7591 |      ac_cv_sizeof_long_long=0 | 
 | 7592 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7593 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7594 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7597 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7598 |  | 
 | 7599 |  | 
 | 7600 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7602 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7604 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7605 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7606 | fi | 
 | 7607 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7609 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7610 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7612 | /* end confdefs.h.  */ | 
 | 7613 |  | 
 | 7614 | int | 
 | 7615 | main () | 
 | 7616 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7617 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7618 |   ; | 
 | 7619 |   return 0; | 
 | 7620 | } | 
 | 7621 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7622 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7623 |  | 
 | 7624 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7625 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7626 |  | 
 | 7627 |   have_long_double=yes | 
 | 7628 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7629 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7632 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7633 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7634 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7635 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7636 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7637 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7639 | $as_echo_n "checking size of long double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7640 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7641 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7642 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7643 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7644 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7645 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7646 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7647 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7648 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7649 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7650 | See \`config.log' for more details" "$LINENO" 5; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7651 |    else | 
 | 7652 |      ac_cv_sizeof_long_double=0 | 
 | 7653 |    fi | 
 | 7654 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7655 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7656 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7658 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7659 |  | 
 | 7660 |  | 
 | 7661 |  | 
 | 7662 | cat >>confdefs.h <<_ACEOF | 
 | 7663 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7664 | _ACEOF | 
 | 7665 |  | 
 | 7666 |  | 
 | 7667 | fi | 
 | 7668 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7670 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7671 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7673 | /* end confdefs.h.  */ | 
 | 7674 |  | 
 | 7675 | int | 
 | 7676 | main () | 
 | 7677 | { | 
 | 7678 | _Bool x; x = (_Bool)0; | 
 | 7679 |   ; | 
 | 7680 |   return 0; | 
 | 7681 | } | 
 | 7682 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7683 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7684 |  | 
 | 7685 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7686 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7687 |  | 
 | 7688 |   have_c99_bool=yes | 
 | 7689 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7690 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7693 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7694 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7695 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7698 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7700 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7701 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7702 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7703 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7704 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7705 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7706 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7707 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7708 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7710 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7711 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7712 |    else | 
 | 7713 |      ac_cv_sizeof__Bool=0 | 
 | 7714 |    fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7715 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7716 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7717 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7719 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7720 |  | 
 | 7721 |  | 
 | 7722 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7723 | cat >>confdefs.h <<_ACEOF | 
 | 7724 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7725 | _ACEOF | 
 | 7726 |  | 
 | 7727 |  | 
 | 7728 | fi | 
 | 7729 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7730 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 7731 |         #include <stdint.h> | 
 | 7732 |         #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7733 |         #ifdef HAVE_INTTYPES_H | 
 | 7734 |         #include <inttypes.h> | 
 | 7735 |         #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7736 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7737 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7738 |  | 
 | 7739 | cat >>confdefs.h <<_ACEOF | 
 | 7740 | #define HAVE_UINTPTR_T 1 | 
 | 7741 | _ACEOF | 
 | 7742 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7743 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7744 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7745 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7746 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7748 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7749 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7750 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7752 |   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] | 7753 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7755 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7756 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7758 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7759 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7760 |    else | 
 | 7761 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7762 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7764 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7767 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7768 |  | 
 | 7769 |  | 
 | 7770 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7772 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7774 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7775 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7776 | fi | 
 | 7777 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7778 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7779 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7780 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7781 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7782 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7784 | $as_echo_n "checking size of off_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7785 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7786 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7787 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7788 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7789 | #ifdef HAVE_SYS_TYPES_H | 
 | 7790 | #include <sys/types.h> | 
 | 7791 | #endif | 
 | 7792 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7793 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7794 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7795 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7796 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7797 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7798 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7799 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7800 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7801 |    else | 
 | 7802 |      ac_cv_sizeof_off_t=0 | 
 | 7803 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7804 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7805 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7806 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7808 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7810 |  | 
 | 7811 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7812 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7813 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7815 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7816 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7817 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7819 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7820 | if test "$have_long_long" = yes | 
 | 7821 | then | 
 | 7822 | 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] | 7823 | 	"$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] | 7824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7825 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7827 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7828 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7829 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7830 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7831 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7832 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7833 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7834 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7835 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7836 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7837 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7838 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7839 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7840 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7841 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7843 | $as_echo_n "checking size of time_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7844 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7845 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7846 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7847 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7848 | #ifdef HAVE_SYS_TYPES_H | 
 | 7849 | #include <sys/types.h> | 
 | 7850 | #endif | 
 | 7851 | #ifdef HAVE_TIME_H | 
 | 7852 | #include <time.h> | 
 | 7853 | #endif | 
 | 7854 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7855 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7856 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7857 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7858 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7859 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7861 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7862 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7863 |    else | 
 | 7864 |      ac_cv_sizeof_time_t=0 | 
 | 7865 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7866 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7867 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7868 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7870 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7872 |  | 
 | 7873 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7875 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7877 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7878 |  | 
 | 7879 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7880 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7881 | ac_save_cc="$CC" | 
 | 7882 | if test "$ac_cv_kpthread" = "yes" | 
 | 7883 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7884 | elif test "$ac_cv_kthread" = "yes" | 
 | 7885 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7886 | elif test "$ac_cv_pthread" = "yes" | 
 | 7887 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7888 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7890 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7891 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7893 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7894 |  | 
 | 7895 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | int | 
 | 7897 | main () | 
 | 7898 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7899 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 |   ; | 
 | 7901 |   return 0; | 
 | 7902 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7903 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7905 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7906 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7907 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 7910 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7911 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7912 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7913 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7914 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7915 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 7917 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7918 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7919 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7920 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7921 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7922 | #ifdef HAVE_PTHREAD_H | 
 | 7923 | #include <pthread.h> | 
 | 7924 | #endif | 
 | 7925 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7926 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7927 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7928 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7929 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 7930 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7932 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7933 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7934 |    else | 
 | 7935 |      ac_cv_sizeof_pthread_t=0 | 
 | 7936 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7937 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7938 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7939 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 7941 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7943 |  | 
 | 7944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7946 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7948 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7949 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7950 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7951 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7952 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
 | 7954 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7955 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7956 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7957 |   enableval=$enable_toolbox_glue; | 
 | 7958 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7959 |  | 
 | 7960 |  | 
 | 7961 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7963 | 	case $ac_sys_system/$ac_sys_release in | 
 | 7964 | 	Darwin/*) | 
 | 7965 | 		enable_toolbox_glue="yes";; | 
 | 7966 | 	*) | 
 | 7967 | 		enable_toolbox_glue="no";; | 
 | 7968 | 	esac | 
 | 7969 | fi | 
 | 7970 | case "$enable_toolbox_glue" in | 
 | 7971 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7972 | 	extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7973 | 	extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7975 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7976 |  | 
 | 7977 | 	;; | 
 | 7978 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7979 | 	extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7980 | 	extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7981 | 	;; | 
 | 7982 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
 | 7984 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7985 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7986 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7987 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7988 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7989 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7990 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 7991 |     ;; | 
 | 7992 |   Darwin/*) | 
 | 7993 |     OTHER_LIBTOOL_OPT="" | 
 | 7994 |     ;; | 
 | 7995 | esac | 
 | 7996 |  | 
 | 7997 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7998 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7999 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8000 |   Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8001 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8002 |     if test "${enable_universalsdk}"; then | 
 | 8003 | 	    : | 
 | 8004 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8005 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8006 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8007 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8008 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8009 |   Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 8010 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8011 |     if test ${gcc_version} '<' 4.0 | 
 | 8012 |         then | 
 | 8013 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8014 |         else | 
 | 8015 |             LIBTOOL_CRUFT="" | 
 | 8016 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8017 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8018 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8019 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8020 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8021 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8022 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8023 |     #include <unistd.h> | 
 | 8024 |     int main(int argc, char*argv[]) | 
 | 8025 |     { | 
 | 8026 |       if (sizeof(long) == 4) { | 
 | 8027 |     	  return 0; | 
 | 8028 |       } else { | 
 | 8029 |       	  return 1; | 
 | 8030 |       } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 8031 |     } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8032 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8033 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8034 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8035 |   ac_osx_32bit=yes | 
 | 8036 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8037 |   ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8038 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8040 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8041 | fi | 
 | 8042 |  | 
 | 8043 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8044 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8045 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8046 |     	i386) | 
 | 8047 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 8048 |     		;; | 
 | 8049 |     	ppc) | 
 | 8050 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 8051 |     		;; | 
 | 8052 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8053 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8054 |     		;; | 
 | 8055 |     	esac | 
 | 8056 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8057 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8058 |     	i386) | 
 | 8059 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 8060 |     		;; | 
 | 8061 |     	ppc) | 
 | 8062 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 8063 |     		;; | 
 | 8064 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8065 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8066 |     		;; | 
 | 8067 |     	esac | 
 | 8068 |  | 
 | 8069 | 	#ARCH_RUN_32BIT="true" | 
 | 8070 |     fi | 
 | 8071 |  | 
 | 8072 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8073 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8074 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8075 | esac | 
 | 8076 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 8078 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8079 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8080 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8081 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8083 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8084 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8085 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8087 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8088 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8089 | 	if test $enable_shared = "yes" | 
 | 8090 | 	then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8091 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8092 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8093 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8094 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8095 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8096 | fi | 
 | 8097 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 8099 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8100 | case $ac_sys_system/$ac_sys_release in | 
 | 8101 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8102 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8103 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8105 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 8106 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8107 |   	;; | 
 | 8108 |   *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8109 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8110 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8111 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8112 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8113 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8114 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8115 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8116 |  | 
 | 8117 |  | 
 | 8118 |  | 
 | 8119 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8120 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8121 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8122 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 8124 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8125 | if test -z "$SO" | 
 | 8126 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8127 | 	case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8128 | 	hp*|HP*) | 
 | 8129 | 		case `uname -m` in | 
 | 8130 | 			ia64) SO=.so;; | 
 | 8131 | 	  		*)    SO=.sl;; | 
 | 8132 | 		esac | 
 | 8133 | 		;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8134 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8135 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8136 | 	esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 8137 | else | 
 | 8138 | 	# this might also be a termcap variable, see #610332 | 
 | 8139 |         echo | 
 | 8140 |         echo '=====================================================================' | 
 | 8141 |         echo '+                                                                   +' | 
 | 8142 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
 | 8143 |         echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 8144 |         echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 8145 |         echo '+                                                                   +' | 
 | 8146 |         echo '=====================================================================' | 
 | 8147 | 	sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8148 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 8150 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8151 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8152 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8153 | cat >>confdefs.h <<_ACEOF | 
 | 8154 | #define SHLIB_EXT "$SO" | 
 | 8155 | _ACEOF | 
 | 8156 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8157 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8158 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8159 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 8160 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 8162 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8163 | if test -z "$LDSHARED" | 
 | 8164 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8165 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8166 | 	AIX*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8167 | 		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] | 8168 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8169 | 		;; | 
 | 8170 | 	BeOS*) | 
 | 8171 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8172 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8173 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8174 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8175 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | 	SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8177 | 		if test "$GCC" = "yes" ; then | 
 | 8178 | 			LDSHARED='$(CC) -shared' | 
 | 8179 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8180 | 		else | 
 | 8181 | 			LDSHARED='$(CC) -G' | 
 | 8182 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8183 | 		fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8184 | 	hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8185 | 		if test "$GCC" = "yes" ; then | 
 | 8186 | 			LDSHARED='$(CC) -shared' | 
 | 8187 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8188 | 		else | 
 | 8189 | 			LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8190 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8191 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8192 | 	Darwin/1.3*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8193 | 		LDSHARED='$(CC) -bundle' | 
 | 8194 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8195 | 		if test "$enable_framework" ; then | 
 | 8196 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8197 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8198 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8199 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8200 | 		else | 
 | 8201 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8202 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8203 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8204 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8205 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8206 | 		LDSHARED='$(CC) -bundle' | 
 | 8207 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8208 | 		if test "$enable_framework" ; then | 
 | 8209 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8210 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8211 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8212 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8213 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8214 | 			# No framework, use the Python app as bundle-loader | 
 | 8215 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8216 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8217 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8218 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8219 | 	Darwin/*) | 
 | 8220 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 8221 | 		# This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 8222 |  | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8223 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 8224 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 8225 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 8226 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 8227 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 8228 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8229 | 		then | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8230 | 			# building for OS X 10.0 through 10.2 | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8231 | 			LDSHARED='$(CC) -bundle' | 
 | 8232 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8233 | 			if test "$enable_framework" ; then | 
 | 8234 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8235 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8236 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8237 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8238 | 			else | 
 | 8239 | 				# No framework, use the Python app as bundle-loader | 
 | 8240 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 8241 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8242 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8243 | 			fi | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8244 | 		else | 
 | 8245 | 			# building for OS X 10.3 and later | 
 | 8246 | 			if test "${enable_universalsdk}"; then | 
 | 8247 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 8248 | 			fi | 
 | 8249 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 8250 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 8251 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8252 | 		fi | 
 | 8253 | 		;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8254 | 	Linux*|GNU*|QNX*) | 
 | 8255 | 		LDSHARED='$(CC) -shared' | 
 | 8256 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 8257 | 	BSD/OS*/4*) | 
 | 8258 | 		LDSHARED="gcc -shared" | 
 | 8259 | 		LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8260 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8261 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8262 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8263 | 			LDSHARED='$(CC) -shared' | 
 | 8264 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8265 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8266 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8267 | 		fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8268 | 	OpenBSD*) | 
 | 8269 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8270 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8271 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8272 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8273 | 		else | 
 | 8274 | 				case `uname -r` in | 
 | 8275 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 8276 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 8277 | 				   ;; | 
 | 8278 | 				*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8279 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8280 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8281 | 				   ;; | 
 | 8282 | 				esac | 
 | 8283 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8284 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 8285 | 		LDSHARED='$(CC) -shared' | 
 | 8286 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8287 | 	OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8288 | 		if test "$GCC" = "yes" ; then | 
 | 8289 | 			LDSHARED='$(CC) -shared' | 
 | 8290 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8291 | 		else | 
 | 8292 | 			LDSHARED='$(CC) -G' | 
 | 8293 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8294 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8295 | 	SCO_SV*) | 
 | 8296 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 8297 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 8298 | 	CYGWIN*) | 
 | 8299 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 8300 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
 | 8301 | 	atheos*) | 
 | 8302 | 		LDSHARED="gcc -shared" | 
 | 8303 | 		LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8304 | 	*)	LDSHARED="ld";; | 
 | 8305 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8306 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 8308 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8309 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8310 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8311 | # 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] | 8312 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 8314 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8315 | if test -z "$CCSHARED" | 
 | 8316 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8317 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8318 | 	SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 8319 | 		then CCSHARED="-fPIC"; | 
 | 8320 | 		elif test `uname -p` = sparc; | 
 | 8321 | 		then CCSHARED="-xcode=pic32"; | 
 | 8322 | 		else CCSHARED="-Kpic"; | 
 | 8323 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8324 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8325 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8326 | 		 else CCSHARED="+z"; | 
 | 8327 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8328 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8329 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8330 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8331 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8332 | 		if test "$GCC" = "yes" | 
 | 8333 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8334 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8335 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8336 | 	SCO_SV*) | 
 | 8337 | 		if test "$GCC" = "yes" | 
 | 8338 | 		then CCSHARED="-fPIC" | 
 | 8339 | 		else CCSHARED="-Kpic -belf" | 
 | 8340 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8341 | 	IRIX*/6*)  case $CC in | 
 | 8342 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8343 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8344 | 		   esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8345 | 	atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8346 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8347 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 8349 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8350 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8351 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 8353 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8354 | if test -z "$LINKFORSHARED" | 
 | 8355 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8356 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8357 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8358 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8359 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 8360 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8361 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8362 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8363 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | 	Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8365 | 		# -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
 | 8366 | 		# which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8367 | 		# not used by the core itself but which needs to be in the core so | 
 | 8368 | 		# that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 8369 | 		# -prebind is no longer used, because it actually seems to give a | 
 | 8370 | 		# slowdown in stead of a speedup, maybe due to the large number of | 
 | 8371 | 		# dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8372 |  | 
 | 8373 | 		LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8374 | 		if test "$enable_framework" | 
 | 8375 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8376 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8377 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8378 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8379 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8380 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8381 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8382 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8383 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8384 | 		then | 
 | 8385 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 8386 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8387 | 	SunOS/5*) case $CC in | 
 | 8388 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8389 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8390 | 		    then | 
 | 8391 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8392 | 		    fi;; | 
 | 8393 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8394 | 	CYGWIN*) | 
 | 8395 | 		if test $enable_shared = "no" | 
 | 8396 | 		then | 
 | 8397 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 8398 | 		fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 8399 | 	QNX*) | 
 | 8400 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 8401 | 		# symbol table so that they can be found when a module | 
 | 8402 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 8403 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 8404 | 		# when running test_compile.py. | 
 | 8405 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8406 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8407 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 8409 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8410 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8411 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8412 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 8414 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8415 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 8416 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8417 | 	case $ac_sys_system in | 
 | 8418 | 	CYGWIN*) | 
 | 8419 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 8420 | 		# but not when building the interpreter DLL. | 
 | 8421 | 		CFLAGSFORSHARED='';; | 
 | 8422 | 	*) | 
 | 8423 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 8424 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8425 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 8427 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8428 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8429 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 8430 | # library (with --enable-shared). | 
 | 8431 | # 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] | 8432 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 8433 | # if it is not required, since it creates a dependency of the shared library | 
 | 8434 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 8435 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 8436 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8437 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 8439 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8440 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8441 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8442 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8443 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 8445 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8446 |  | 
 | 8447 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8448 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 8450 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8451 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8452 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8453 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8455 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8457 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8459 | /* Override any GCC internal prototype to avoid an error. | 
 | 8460 |    Use char because int might match the return type of a GCC | 
 | 8461 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | #ifdef __cplusplus | 
 | 8463 | extern "C" | 
 | 8464 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | int | 
 | 8467 | main () | 
 | 8468 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8469 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 |   ; | 
 | 8471 |   return 0; | 
 | 8472 | } | 
 | 8473 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8474 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8476 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8477 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8478 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8479 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8480 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8482 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8484 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8485 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 |   cat >>confdefs.h <<_ACEOF | 
 | 8487 | #define HAVE_LIBDL 1 | 
 | 8488 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8489 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8490 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8491 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8492 | fi | 
 | 8493 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 8495 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8496 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8497 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8498 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8500 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8502 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8504 | /* Override any GCC internal prototype to avoid an error. | 
 | 8505 |    Use char because int might match the return type of a GCC | 
 | 8506 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | #ifdef __cplusplus | 
 | 8508 | extern "C" | 
 | 8509 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | int | 
 | 8512 | main () | 
 | 8513 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8514 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 |   ; | 
 | 8516 |   return 0; | 
 | 8517 | } | 
 | 8518 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8519 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8521 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8522 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8523 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8524 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8525 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8527 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8529 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8530 | 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] | 8531 |   cat >>confdefs.h <<_ACEOF | 
 | 8532 | #define HAVE_LIBDLD 1 | 
 | 8533 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8534 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8535 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8536 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8537 | fi | 
 | 8538 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8539 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8540 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8541 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8542 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 8543 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8544 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8545 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8546 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8547 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8549 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8551 | /* Override any GCC internal prototype to avoid an error. | 
 | 8552 |    Use char because int might match the return type of a GCC | 
 | 8553 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | #ifdef __cplusplus | 
 | 8555 | extern "C" | 
 | 8556 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | int | 
 | 8559 | main () | 
 | 8560 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8561 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 |   ; | 
 | 8563 |   return 0; | 
 | 8564 | } | 
 | 8565 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8566 | for ac_lib in '' pthread rt posix4; do | 
 | 8567 |   if test -z "$ac_lib"; then | 
 | 8568 |     ac_res="none required" | 
 | 8569 |   else | 
 | 8570 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8571 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8572 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8573 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8574 |   ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8575 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8576 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8577 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8578 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8579 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8580 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8581 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8582 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8583 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8584 | else | 
 | 8585 |   ac_cv_search_sem_init=no | 
 | 8586 | fi | 
 | 8587 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8588 | LIBS=$ac_func_search_save_LIBS | 
 | 8589 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8591 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8592 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8593 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8594 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8595 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8596 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8597 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8598 | 						# posix4 on Solaris 2.6 | 
 | 8599 | 						# pthread (first!) on Linux | 
 | 8600 | fi | 
 | 8601 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8602 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8604 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8605 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8606 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8607 | else | 
 | 8608 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8609 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8611 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8612 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8613 | /* Override any GCC internal prototype to avoid an error. | 
 | 8614 |    Use char because int might match the return type of a GCC | 
 | 8615 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8616 | #ifdef __cplusplus | 
 | 8617 | extern "C" | 
 | 8618 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8619 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8620 | int | 
 | 8621 | main () | 
 | 8622 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8623 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8624 |   ; | 
 | 8625 |   return 0; | 
 | 8626 | } | 
 | 8627 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8628 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8629 |   ac_cv_lib_intl_textdomain=yes | 
 | 8630 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8631 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8632 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8633 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8634 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8635 | LIBS=$ac_check_lib_save_LIBS | 
 | 8636 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8638 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8639 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8640 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8641 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8642 |  | 
 | 8643 | fi | 
 | 8644 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8645 |  | 
 | 8646 | # checks for system dependent C++ extensions support | 
 | 8647 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8648 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8649 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8650 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8651 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8652 |  | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8653 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | int | 
 | 8655 | main () | 
 | 8656 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8657 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 |   ; | 
 | 8659 |   return 0; | 
 | 8660 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8661 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8663 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8664 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8665 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8666 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8668 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8669 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8670 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8671 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8672 |  | 
 | 8673 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8674 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8675 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8676 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8677 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8678 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8679 | 	*) ;; | 
 | 8680 | esac | 
 | 8681 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8682 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8683 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8685 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8686 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8687 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8688 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8690 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8692 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8694 | /* Override any GCC internal prototype to avoid an error. | 
 | 8695 |    Use char because int might match the return type of a GCC | 
 | 8696 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | #ifdef __cplusplus | 
 | 8698 | extern "C" | 
 | 8699 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | int | 
 | 8702 | main () | 
 | 8703 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8704 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 |   ; | 
 | 8706 |   return 0; | 
 | 8707 | } | 
 | 8708 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8709 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8711 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8712 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8713 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8714 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8715 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8717 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8719 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8720 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8721 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8722 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8723 |  # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8725 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8726 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8727 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8728 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8730 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8732 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8734 | /* Override any GCC internal prototype to avoid an error. | 
 | 8735 |    Use char because int might match the return type of a GCC | 
 | 8736 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | #ifdef __cplusplus | 
 | 8738 | extern "C" | 
 | 8739 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | int | 
 | 8742 | main () | 
 | 8743 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8744 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 |   ; | 
 | 8746 |   return 0; | 
 | 8747 | } | 
 | 8748 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8749 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8752 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8753 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8754 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8755 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8757 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8759 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8760 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8761 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8762 | fi | 
 | 8763 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8764 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8765 | case "$ac_sys_system" in | 
 | 8766 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
 | 8768 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8769 | if ${ac_cv_lib_net_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8770 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8771 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8773 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8775 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8777 | /* Override any GCC internal prototype to avoid an error. | 
 | 8778 |    Use char because int might match the return type of a GCC | 
 | 8779 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | #ifdef __cplusplus | 
 | 8781 | extern "C" | 
 | 8782 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | int | 
 | 8785 | main () | 
 | 8786 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8787 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 |   ; | 
 | 8789 |   return 0; | 
 | 8790 | } | 
 | 8791 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8792 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 |   ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8794 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 |   ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8796 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8797 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8798 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8800 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
 | 8802 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8803 | if test "x$ac_cv_lib_net_socket" = xyes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8804 |   LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8805 | fi | 
 | 8806 |  # BeOS | 
 | 8807 | ;; | 
 | 8808 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8809 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8811 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8814 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8815 |   withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8817 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8818 | LIBS="$withval $LIBS" | 
 | 8819 |  | 
 | 8820 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8821 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8822 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8823 | fi | 
 | 8824 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8825 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8826 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8827 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8828 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8830 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8831 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8832 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8833 | else | 
 | 8834 |   case $PKG_CONFIG in | 
 | 8835 |   [\\/]* | ?:[\\/]*) | 
 | 8836 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8837 |   ;; | 
 | 8838 |   *) | 
 | 8839 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8840 | for as_dir in $PATH | 
 | 8841 | do | 
 | 8842 |   IFS=$as_save_IFS | 
 | 8843 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8844 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8845 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8846 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8847 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8848 |     break 2 | 
 | 8849 |   fi | 
 | 8850 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8851 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8852 | IFS=$as_save_IFS | 
 | 8853 |  | 
 | 8854 |   ;; | 
 | 8855 | esac | 
 | 8856 | fi | 
 | 8857 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8858 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8859 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8860 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8861 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8862 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8863 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8864 | fi | 
 | 8865 |  | 
 | 8866 |  | 
 | 8867 | fi | 
 | 8868 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8869 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8870 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8871 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8873 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8874 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8875 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8876 | else | 
 | 8877 |   case $ac_pt_PKG_CONFIG in | 
 | 8878 |   [\\/]* | ?:[\\/]*) | 
 | 8879 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8880 |   ;; | 
 | 8881 |   *) | 
 | 8882 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8883 | for as_dir in $PATH | 
 | 8884 | do | 
 | 8885 |   IFS=$as_save_IFS | 
 | 8886 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8887 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8888 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8889 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8890 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8891 |     break 2 | 
 | 8892 |   fi | 
 | 8893 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8894 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8895 | IFS=$as_save_IFS | 
 | 8896 |  | 
 | 8897 |   ;; | 
 | 8898 | esac | 
 | 8899 | fi | 
 | 8900 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8901 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8902 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8903 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8904 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8906 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8907 | fi | 
 | 8908 |  | 
 | 8909 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8910 |     PKG_CONFIG="" | 
 | 8911 |   else | 
 | 8912 |     case $cross_compiling:$ac_tool_warned in | 
 | 8913 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8915 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8916 | ac_tool_warned=yes ;; | 
 | 8917 | esac | 
 | 8918 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8919 |   fi | 
 | 8920 | else | 
 | 8921 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8922 | fi | 
 | 8923 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8924 |  | 
 | 8925 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 8927 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8928 |  | 
 | 8929 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8930 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8931 |   withval=$with_system_expat; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8932 | else | 
 | 8933 |   with_system_expat="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8934 | fi | 
 | 8935 |  | 
 | 8936 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 8938 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8939 |  | 
 | 8940 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 8942 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8943 |  | 
 | 8944 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8945 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8946 |   withval=$with_system_ffi; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8947 | else | 
 | 8948 |   with_system_ffi="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8949 | fi | 
 | 8950 |  | 
 | 8951 |  | 
 | 8952 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8953 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 8954 | else | 
 | 8955 |     LIBFFI_INCLUDEDIR="" | 
 | 8956 | fi | 
 | 8957 |  | 
 | 8958 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 8960 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8961 |  | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 8962 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 8963 |  | 
 | 8964 |  | 
 | 8965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 8966 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 8967 |  | 
 | 8968 | # Check whether --with-tcltk-includes was given. | 
 | 8969 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 8970 |   withval=$with_tcltk_includes; | 
 | 8971 | else | 
 | 8972 |   with_tcltk_includes="default" | 
 | 8973 | fi | 
 | 8974 |  | 
 | 8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 8976 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 8978 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 8979 |  | 
 | 8980 | # Check whether --with-tcltk-libs was given. | 
 | 8981 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 8982 |   withval=$with_tcltk_libs; | 
 | 8983 | else | 
 | 8984 |   with_tcltk_libs="default" | 
 | 8985 | fi | 
 | 8986 |  | 
 | 8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 8988 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 8989 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 8990 | then | 
 | 8991 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 8992 |   then | 
 | 8993 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 8994 |   fi | 
 | 8995 |   TCLTK_INCLUDES="" | 
 | 8996 |   TCLTK_LIBS="" | 
 | 8997 | else | 
 | 8998 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 8999 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 9000 | fi | 
 | 9001 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9002 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 9004 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9005 |  | 
 | 9006 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9007 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9008 |   withval=$with_dbmliborder; | 
 | 9009 | if test x$with_dbmliborder = xyes | 
 | 9010 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9011 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9012 | else | 
 | 9013 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 9014 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 9015 |     then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9016 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9017 |     fi | 
 | 9018 |   done | 
 | 9019 | fi | 
 | 9020 | fi | 
 | 9021 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 9023 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9024 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9025 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9026 |  | 
 | 9027 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 9029 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9031 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9032 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9033 |   withval=$with_signal_module; | 
 | 9034 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9035 |  | 
 | 9036 |  | 
 | 9037 | if test -z "$with_signal_module" | 
 | 9038 | then with_signal_module="yes" | 
 | 9039 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 9041 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9042 |  | 
 | 9043 | if test "${with_signal_module}" = "yes"; then | 
 | 9044 | 	USE_SIGNAL_MODULE="" | 
 | 9045 | 	SIGNAL_OBJS="" | 
 | 9046 | else | 
 | 9047 | 	USE_SIGNAL_MODULE="#" | 
 | 9048 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 9049 | fi | 
 | 9050 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9051 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9052 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9053 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9054 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 9056 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9058 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9059 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9060 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9061 |   withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9063 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9064 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9065 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9066 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9067 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9068 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9069 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9070 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9071 | fi | 
 | 9072 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 |  | 
 | 9074 | # Templates for things AC_DEFINEd more than once. | 
 | 9075 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9076 |  | 
 | 9077 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 |  | 
 | 9079 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 9081 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9083 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9084 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9085 |   withval=$with_threads; | 
 | 9086 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9087 |  | 
 | 9088 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9089 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9091 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9092 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9093 |   withval=$with_thread; with_threads=$with_thread | 
 | 9094 | fi | 
 | 9095 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9096 |  | 
 | 9097 | if test -z "$with_threads" | 
 | 9098 | then with_threads="yes" | 
 | 9099 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 9101 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9102 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9103 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9104 | if test "$with_threads" = "no" | 
 | 9105 | then | 
 | 9106 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9107 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 9108 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9109 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9110 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9111 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9112 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9113 |  | 
 | 9114 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9116 | elif test "$ac_cv_kpthread" = "yes" | 
 | 9117 | then | 
 | 9118 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9119 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9120 |         CXX="$CXX -Kpthread" | 
 | 9121 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9122 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9123 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9124 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9125 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9126 | elif test "$ac_cv_kthread" = "yes" | 
 | 9127 | then | 
 | 9128 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9129 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9130 |         CXX="$CXX -Kthread" | 
 | 9131 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9132 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9133 |  | 
 | 9134 |     posix_threads=yes | 
 | 9135 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9136 | elif test "$ac_cv_pthread" = "yes" | 
 | 9137 | then | 
 | 9138 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9139 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9140 |         CXX="$CXX -pthread" | 
 | 9141 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9142 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9143 |  | 
 | 9144 |     posix_threads=yes | 
 | 9145 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9146 | else | 
 | 9147 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 9148 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 9149 |     fi | 
 | 9150 |     if test ! -z "$withval" -a -d "$withval" | 
 | 9151 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 9152 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9153 |  | 
 | 9154 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9155 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 9156 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9157 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 9158 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 9159 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9160 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9161 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9162 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9163 | #ifdef _POSIX_THREADS | 
 | 9164 | yes | 
 | 9165 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 |  | 
 | 9167 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9169 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9170 |   unistd_defines_pthreads=yes | 
 | 9171 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9172 |   unistd_defines_pthreads=no | 
 | 9173 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9174 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9175 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9176 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 9177 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9178 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9179 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9180 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9181 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9182 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9183 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9184 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9185 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9186 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9187 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9188 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9189 |  | 
 | 9190 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9191 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9192 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9193 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9194 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9195 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9196 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9198 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9199 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9201 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9202 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9203 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9204 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9205 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9206 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
 | 9207 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9209 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9210 | if test "${with_pth+set}" = set; then : | 
 | 9211 |   withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9212 | $as_echo "$withval" >&6; } | 
 | 9213 |                   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9214 |  | 
 | 9215 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9216 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9217 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9218 |                   LIBS="-lpth $LIBS" | 
 | 9219 |                   THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9220 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9221 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9222 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9223 |  | 
 | 9224 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 9225 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 9226 |     # So we really have to include pthread.h, and then link. | 
 | 9227 |     _libs=$LIBS | 
 | 9228 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9229 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 9230 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 9231 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9232 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9233 |  | 
 | 9234 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9235 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9236 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9237 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | int | 
 | 9239 | main () | 
 | 9240 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9241 |  | 
 | 9242 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 |   ; | 
 | 9244 |   return 0; | 
 | 9245 | } | 
 | 9246 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9247 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9249 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9250 | $as_echo "yes" >&6; } | 
 | 9251 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9252 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9253 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9254 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9255 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9257 |     LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9258 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9259 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9260 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9261 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9262 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9263 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9264 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9265 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9266 |     ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9267 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9268 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9269 |  | 
 | 9270 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9271 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9272 |  | 
 | 9273 |     THREADOBJ="Python/thread.o" | 
 | 9274 | else | 
 | 9275 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9276 |     ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9277 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9278 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 |  | 
 | 9280 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9281 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9282 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9283 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9284 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9285 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9286 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 9287 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9288 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9289 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9290 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9292 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9294 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9296 | /* Override any GCC internal prototype to avoid an error. | 
 | 9297 |    Use char because int might match the return type of a GCC | 
 | 9298 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | #ifdef __cplusplus | 
 | 9300 | extern "C" | 
 | 9301 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | int | 
 | 9304 | main () | 
 | 9305 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9306 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 |   ; | 
 | 9308 |   return 0; | 
 | 9309 | } | 
 | 9310 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9311 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9313 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9314 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9315 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9316 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9317 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9319 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 9321 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9322 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9323 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9324 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9325 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9326 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9327 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9328 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9329 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9330 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 9331 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9332 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9333 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9334 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9336 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9338 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9340 | /* Override any GCC internal prototype to avoid an error. | 
 | 9341 |    Use char because int might match the return type of a GCC | 
 | 9342 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | #ifdef __cplusplus | 
 | 9344 | extern "C" | 
 | 9345 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | int | 
 | 9348 | main () | 
 | 9349 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9350 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 |   ; | 
 | 9352 |   return 0; | 
 | 9353 | } | 
 | 9354 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9355 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9357 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9358 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9359 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9360 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9361 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9363 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 9365 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9366 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9367 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9368 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9369 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9370 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9371 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9372 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9373 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9374 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 9375 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9376 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9377 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9378 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9380 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9382 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9383 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9384 | /* Override any GCC internal prototype to avoid an error. | 
 | 9385 |    Use char because int might match the return type of a GCC | 
 | 9386 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | #ifdef __cplusplus | 
 | 9388 | extern "C" | 
 | 9389 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | int | 
 | 9392 | main () | 
 | 9393 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9394 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 |   ; | 
 | 9396 |   return 0; | 
 | 9397 | } | 
 | 9398 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9399 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9401 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9402 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9403 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9404 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9405 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9407 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 9409 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9410 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9411 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9412 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9413 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9414 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9415 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9416 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9417 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9418 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 9419 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9420 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9421 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9422 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9424 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9426 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9428 | /* Override any GCC internal prototype to avoid an error. | 
 | 9429 |    Use char because int might match the return type of a GCC | 
 | 9430 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | #ifdef __cplusplus | 
 | 9432 | extern "C" | 
 | 9433 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | int | 
 | 9436 | main () | 
 | 9437 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9438 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 |   ; | 
 | 9440 |   return 0; | 
 | 9441 | } | 
 | 9442 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9443 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9445 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9446 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9447 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9448 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9449 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9450 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9451 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 9453 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9454 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9455 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9456 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9457 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9458 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9459 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9460 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9461 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9462 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9463 | fi | 
 | 9464 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9465 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9466 | fi | 
 | 9467 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9468 | fi | 
 | 9469 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9470 | fi | 
 | 9471 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9472 | fi | 
 | 9473 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9474 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9475 | fi | 
 | 9476 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9477 |  | 
 | 9478 | fi | 
 | 9479 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9480 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9481 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9482 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | fi | 
 | 9484 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9485 | fi | 
 | 9486 |  | 
 | 9487 |  | 
 | 9488 | fi | 
 | 9489 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9490 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9491 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9492 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 9493 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9494 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9495 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9496 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9498 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9500 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9502 | /* Override any GCC internal prototype to avoid an error. | 
 | 9503 |    Use char because int might match the return type of a GCC | 
 | 9504 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | #ifdef __cplusplus | 
 | 9506 | extern "C" | 
 | 9507 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | int | 
 | 9510 | main () | 
 | 9511 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9512 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 |   ; | 
 | 9514 |   return 0; | 
 | 9515 | } | 
 | 9516 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9517 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9519 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9520 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9521 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9522 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9523 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9525 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 9527 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9528 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9529 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9530 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9531 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9532 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9533 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9534 | fi | 
 | 9535 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9536 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9537 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9538 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 9539 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9540 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9541 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9542 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9544 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9548 | /* Override any GCC internal prototype to avoid an error. | 
 | 9549 |    Use char because int might match the return type of a GCC | 
 | 9550 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | #ifdef __cplusplus | 
 | 9552 | extern "C" | 
 | 9553 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | int | 
 | 9556 | main () | 
 | 9557 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9558 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 |   ; | 
 | 9560 |   return 0; | 
 | 9561 | } | 
 | 9562 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9563 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9565 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9566 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9567 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9568 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9569 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9571 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 9573 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9574 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9575 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9576 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9577 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9578 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9579 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9580 | fi | 
 | 9581 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9582 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9583 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9584 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 9585 |     then | 
 | 9586 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 9587 |         # needs this '-threads' argument during linking. | 
 | 9588 |         case $ac_sys_system in | 
 | 9589 |         OSF1) LDLAST=-threads;; | 
 | 9590 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9591 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9592 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9593 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9594 | if test "$posix_threads" = "yes"; then | 
 | 9595 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9596 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9597 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9598 |  | 
 | 9599 |       fi | 
 | 9600 |  | 
 | 9601 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 9602 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9603 |       SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9604 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9605 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9606 | 		       ;; | 
 | 9607 |       SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9608 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9609 |  | 
 | 9610 | 		       ;; | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9611 |       AIX/*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9612 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9613 |  | 
 | 9614 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9615 |       esac | 
 | 9616 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9617 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 9618 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9619 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9620 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9621 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9622 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9623 |   ac_cv_pthread_system_supported=no | 
 | 9624 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9625 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9626 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9627 |  | 
 | 9628 |       #include <stdio.h> | 
 | 9629 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9630 |       void *foo(void *parm) { | 
 | 9631 |         return NULL; | 
 | 9632 |       } | 
 | 9633 |       main() { | 
 | 9634 |         pthread_attr_t attr; | 
 | 9635 |         pthread_t id; | 
 | 9636 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 9637 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 9638 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 9639 |         exit(0); | 
 | 9640 |       } | 
 | 9641 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9642 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9643 |   ac_cv_pthread_system_supported=yes | 
 | 9644 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9645 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9646 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9647 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9648 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9649 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9650 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9651 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9652 | fi | 
 | 9653 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9654 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 9655 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9656 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 9657 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9658 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9659 |  | 
 | 9660 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9661 |       for ac_func in pthread_sigmask | 
 | 9662 | do : | 
 | 9663 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9664 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9665 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9666 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9667 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9668 |  case $ac_sys_system in | 
 | 9669 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9670 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9671 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9672 |  | 
 | 9673 |             ;; | 
 | 9674 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9675 | fi | 
 | 9676 | done | 
 | 9677 |  | 
| Christian Heimes | 0d604cf | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 9678 |       for ac_func in pthread_atfork | 
 | 9679 | do : | 
 | 9680 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 9681 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 9682 |   cat >>confdefs.h <<_ACEOF | 
 | 9683 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 9684 | _ACEOF | 
 | 9685 |  | 
 | 9686 | fi | 
 | 9687 | done | 
 | 9688 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9689 | fi | 
 | 9690 |  | 
 | 9691 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9692 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9695 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9696 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9697 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9698 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9699 |   no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9700 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9701 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9702 |        ipv6=no | 
 | 9703 |        ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9704 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9705 | $as_echo "yes" >&6; } | 
 | 9706 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9707 |  | 
 | 9708 |        ipv6=yes | 
 | 9709 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9711 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9713 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9714 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9715 |  /* AF_INET6 available check */ | 
 | 9716 | #include <sys/types.h> | 
 | 9717 | #include <sys/socket.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9718 | int | 
 | 9719 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9720 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9721 | int domain = AF_INET6; | 
 | 9722 |   ; | 
 | 9723 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9724 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | _ACEOF | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9726 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9727 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9728 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9729 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9730 |   ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9731 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9732 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9733 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9734 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9735 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9736 |   ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9737 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9738 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9740 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9741 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9742 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9743 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9744 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9746 |  | 
 | 9747 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9748 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | int | 
 | 9750 | main () | 
 | 9751 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9752 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9753 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 |   ; | 
 | 9755 |   return 0; | 
 | 9756 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9757 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9759 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9760 |  | 
 | 9761 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9762 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9763 | 	  ipv6=yes | 
 | 9764 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9765 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9766 |  | 
 | 9767 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9768 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9769 | 	  ipv6=no | 
 | 9770 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9771 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9772 | 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] | 9773 | fi | 
 | 9774 |  | 
 | 9775 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9776 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9777 |  | 
 | 9778 | fi | 
 | 9779 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9780 | fi | 
 | 9781 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9782 |  | 
 | 9783 | ipv6type=unknown | 
 | 9784 | ipv6lib=none | 
 | 9785 | ipv6trylibc=no | 
 | 9786 |  | 
 | 9787 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9788 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9789 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9790 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9791 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9792 | 		case $i in | 
 | 9793 | 		inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9794 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9795 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9796 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9797 | #include <netinet/in.h> | 
 | 9798 | #ifdef IPV6_INRIA_VERSION | 
 | 9799 | yes | 
 | 9800 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9803 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9804 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9805 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9806 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9807 |  | 
 | 9808 | 			;; | 
 | 9809 | 		kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9810 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9811 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9812 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9813 | #include <netinet/in.h> | 
 | 9814 | #ifdef __KAME__ | 
 | 9815 | yes | 
 | 9816 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9819 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9820 |   ipv6type=$i; | 
 | 9821 | 				ipv6lib=inet6 | 
 | 9822 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9823 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9824 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9825 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9826 |  | 
 | 9827 | 			;; | 
 | 9828 | 		linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9829 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9830 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9831 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9832 | #include <features.h> | 
 | 9833 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 9834 | yes | 
 | 9835 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9836 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9838 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9839 |   ipv6type=$i; | 
 | 9840 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9841 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9842 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9843 |  | 
 | 9844 | 			;; | 
 | 9845 | 		linux-inet6) | 
 | 9846 | 						if test -d /usr/inet6; then | 
 | 9847 | 				ipv6type=$i | 
 | 9848 | 				ipv6lib=inet6 | 
 | 9849 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9850 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9851 | 			fi | 
 | 9852 | 			;; | 
 | 9853 | 		solaris) | 
 | 9854 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 9855 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9856 | 				ipv6type=$i | 
 | 9857 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9858 |                           fi | 
 | 9859 |                         fi | 
 | 9860 | 			;; | 
 | 9861 | 		toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9862 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9863 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9864 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9865 | #include <sys/param.h> | 
 | 9866 | #ifdef _TOSHIBA_INET6 | 
 | 9867 | yes | 
 | 9868 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9871 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9872 |   ipv6type=$i; | 
 | 9873 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9874 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9875 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9876 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9877 |  | 
 | 9878 | 			;; | 
 | 9879 | 		v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9880 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9881 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9882 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9883 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 9884 | #ifdef __V6D__ | 
 | 9885 | yes | 
 | 9886 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9889 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9890 |   ipv6type=$i; | 
 | 9891 | 				ipv6lib=v6; | 
 | 9892 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9893 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9894 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9895 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9896 |  | 
 | 9897 | 			;; | 
 | 9898 | 		zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9899 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9900 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9901 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9902 | #include <sys/param.h> | 
 | 9903 | #ifdef _ZETA_MINAMI_INET6 | 
 | 9904 | yes | 
 | 9905 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9908 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9909 |   ipv6type=$i; | 
 | 9910 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9911 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9912 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9913 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9914 |  | 
 | 9915 | 			;; | 
 | 9916 | 		esac | 
 | 9917 | 		if test "$ipv6type" != "unknown"; then | 
 | 9918 | 			break | 
 | 9919 | 		fi | 
 | 9920 | 	done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9921 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 9922 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9923 | fi | 
 | 9924 |  | 
 | 9925 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 9926 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 9927 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 9928 | 		echo "using lib$ipv6lib" | 
 | 9929 | 	else | 
 | 9930 | 		if test $ipv6trylibc = "yes"; then | 
 | 9931 | 			echo "using libc" | 
 | 9932 | 		else | 
 | 9933 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 9934 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 9935 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 9936 | 			exit 1 | 
 | 9937 | 		fi | 
 | 9938 | 	fi | 
 | 9939 | fi | 
 | 9940 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 9942 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 9943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9944 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9945 |  | 
 | 9946 |   #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9947 | int | 
 | 9948 | main () | 
 | 9949 | { | 
 | 9950 | FSIORefNum fRef = 0 | 
 | 9951 |   ; | 
 | 9952 |   return 0; | 
 | 9953 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9954 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9955 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9956 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9957 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9958 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9959 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9960 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9961 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9962 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9963 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9964 | else | 
 | 9965 |  | 
 | 9966 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9967 | $as_echo "no" >&6; } | 
 | 9968 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9969 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9971 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9972 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 9974 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9975 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9976 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9977 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9978 |   withval=$with_doc_strings; | 
 | 9979 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9980 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9981 |  | 
 | 9982 | if test -z "$with_doc_strings" | 
 | 9983 | then with_doc_strings="yes" | 
 | 9984 | fi | 
 | 9985 | if test "$with_doc_strings" != "no" | 
 | 9986 | then | 
 | 9987 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9988 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9989 |  | 
 | 9990 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 9992 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9993 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9994 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 9996 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9997 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9998 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9999 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10000 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10001 | if test "$withval" != no | 
 | 10002 | then | 
 | 10003 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10004 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10005 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10006 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10007 | $as_echo "yes" >&6; } | 
 | 10008 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10009 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10010 | fi | 
 | 10011 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10012 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10013 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10014 | fi | 
 | 10015 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10016 |  | 
 | 10017 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 10019 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10021 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10022 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10023 |   withval=$with_pymalloc; | 
 | 10024 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10025 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10026 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10027 | if test -z "$with_pymalloc" | 
 | 10028 | then with_pymalloc="yes" | 
 | 10029 | fi | 
 | 10030 | if test "$with_pymalloc" != "no" | 
 | 10031 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10033 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10034 |  | 
 | 10035 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 10037 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10038 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10039 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 10041 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10042 |  | 
 | 10043 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10044 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10045 |   withval=$with_valgrind; | 
 | 10046 | else | 
 | 10047 |   with_valgrind=no | 
 | 10048 | fi | 
 | 10049 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 10051 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10052 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10053 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10054 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10055 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10056 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10057 |  | 
 | 10058 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10059 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10060 |  | 
 | 10061 | fi | 
 | 10062 |  | 
 | 10063 |  | 
 | 10064 | fi | 
 | 10065 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10066 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
 | 10068 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10069 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10070 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10071 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10072 |   withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10073 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | then | 
 | 10075 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10076 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10078 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10079 | $as_echo "yes" >&6; } | 
 | 10080 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10081 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10082 | fi | 
 | 10083 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10084 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10085 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10086 | fi | 
 | 10087 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10088 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10089 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10090 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10091 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10092 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10093 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 10094 | # 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] | 10095 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10096 | do : | 
 | 10097 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10098 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10100 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10102 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10103 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10104 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10105 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10106 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10107 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 10108 | # loading of modules. | 
 | 10109 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 10111 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10112 | if test -z "$DYNLOADFILE" | 
 | 10113 | then | 
 | 10114 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10115 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 10116 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10117 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10118 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 10119 | 	fi | 
 | 10120 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10121 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 10122 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10123 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 10124 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10125 | 	atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10126 | 	*) | 
 | 10127 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 10128 | 	# out any dynamic loading | 
 | 10129 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10130 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10131 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 10132 | 	fi | 
 | 10133 | 	;; | 
 | 10134 | 	esac | 
 | 10135 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 10137 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10138 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 10139 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10141 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10142 |  | 
 | 10143 | fi | 
 | 10144 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10145 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 10146 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10147 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 10149 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10150 | if test -z "$MACHDEP_OBJS" | 
 | 10151 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10152 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 10153 | else | 
 | 10154 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10155 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 10157 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10158 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10159 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 10160 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
 | 10161 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 10162 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10163 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Benjamin Peterson | d16e01c | 2014-02-04 10:20:26 -0500 | [diff] [blame] | 10164 |  initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime mmap \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 10165 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 10166 |  putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 10167 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 10168 |  setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 10169 |  setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10170 |  setlocale setregid setreuid setresuid setresgid \ | 
 | 10171 |  setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 10172 |  sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10173 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 10174 |  truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10175 | do : | 
 | 10176 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10177 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10178 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10180 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10182 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10183 | fi | 
 | 10184 | done | 
 | 10185 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10186 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10187 | # For some functions, having a definition is not sufficient, since | 
 | 10188 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 10190 | $as_echo_n "checking for chroot... " >&6; } | 
 | 10191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10192 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10193 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10194 | int | 
 | 10195 | main () | 
 | 10196 | { | 
 | 10197 | void *x=chroot | 
 | 10198 |   ; | 
 | 10199 |   return 0; | 
 | 10200 | } | 
 | 10201 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10202 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10203 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10204 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10205 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10206 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10207 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10208 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10209 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10210 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10211 |  | 
 | 10212 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 10215 | $as_echo_n "checking for link... " >&6; } | 
 | 10216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10217 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10218 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10219 | int | 
 | 10220 | main () | 
 | 10221 | { | 
 | 10222 | void *x=link | 
 | 10223 |   ; | 
 | 10224 |   return 0; | 
 | 10225 | } | 
 | 10226 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10227 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10228 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10229 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10230 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10231 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10232 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10233 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10234 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10235 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10236 |  | 
 | 10237 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 10240 | $as_echo_n "checking for symlink... " >&6; } | 
 | 10241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10242 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10243 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10244 | int | 
 | 10245 | main () | 
 | 10246 | { | 
 | 10247 | void *x=symlink | 
 | 10248 |   ; | 
 | 10249 |   return 0; | 
 | 10250 | } | 
 | 10251 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10252 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10253 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10254 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10255 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10256 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10257 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10258 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10259 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10260 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10261 |  | 
 | 10262 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 10265 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 10266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10267 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10268 | #include <unistd.h> | 
 | 10269 | int | 
 | 10270 | main () | 
 | 10271 | { | 
 | 10272 | void *x=fchdir | 
 | 10273 |   ; | 
 | 10274 |   return 0; | 
 | 10275 | } | 
 | 10276 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10277 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10278 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10279 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10280 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10281 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10282 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10283 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10284 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10285 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10286 |  | 
 | 10287 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 10290 | $as_echo_n "checking for fsync... " >&6; } | 
 | 10291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10292 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10293 | #include <unistd.h> | 
 | 10294 | int | 
 | 10295 | main () | 
 | 10296 | { | 
 | 10297 | void *x=fsync | 
 | 10298 |   ; | 
 | 10299 |   return 0; | 
 | 10300 | } | 
 | 10301 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10302 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10303 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10304 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10305 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10306 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10307 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10308 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10309 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10310 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10311 |  | 
 | 10312 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 10315 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 10316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10317 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10318 | #include <unistd.h> | 
 | 10319 | int | 
 | 10320 | main () | 
 | 10321 | { | 
 | 10322 | void *x=fdatasync | 
 | 10323 |   ; | 
 | 10324 |   return 0; | 
 | 10325 | } | 
 | 10326 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10328 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10329 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10330 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10331 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10332 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10333 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10334 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10335 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10336 |  | 
 | 10337 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 10340 | $as_echo_n "checking for epoll... " >&6; } | 
 | 10341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10342 | /* end confdefs.h.  */ | 
 | 10343 | #include <sys/epoll.h> | 
 | 10344 | int | 
 | 10345 | main () | 
 | 10346 | { | 
 | 10347 | void *x=epoll_create | 
 | 10348 |   ; | 
 | 10349 |   return 0; | 
 | 10350 | } | 
 | 10351 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10352 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10353 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10354 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10355 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10356 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10357 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10358 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10359 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10360 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10361 |  | 
 | 10362 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 10365 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 10366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10367 | /* end confdefs.h.  */ | 
 | 10368 |  | 
 | 10369 | #include <sys/types.h> | 
 | 10370 | #include <sys/event.h> | 
 | 10371 |  | 
 | 10372 | int | 
 | 10373 | main () | 
 | 10374 | { | 
 | 10375 | int x=kqueue() | 
 | 10376 |   ; | 
 | 10377 |   return 0; | 
 | 10378 | } | 
 | 10379 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10380 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10381 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10382 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10383 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10384 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10385 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10386 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10387 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10388 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10389 |  | 
 | 10390 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10391 | 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] | 10392 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 10393 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 10394 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 10395 | # address to avoid compiler warnings and potential miscompilations | 
 | 10396 | # because of the missing prototypes. | 
 | 10397 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 10399 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 10400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10401 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10402 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10403 | #include <stdio.h> | 
 | 10404 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10405 | int | 
 | 10406 | main () | 
 | 10407 | { | 
 | 10408 | void* p = ctermid_r | 
 | 10409 |   ; | 
 | 10410 |   return 0; | 
 | 10411 | } | 
 | 10412 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10413 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10414 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10415 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10416 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10417 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10418 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10419 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10420 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10421 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10422 |  | 
 | 10423 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10425 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 10427 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10428 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10429 |   $as_echo_n "(cached) " >&6 | 
 | 10430 | else | 
 | 10431 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10432 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10433 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10434 | int | 
 | 10435 | main () | 
 | 10436 | { | 
 | 10437 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10438 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10439 |   ; | 
 | 10440 |   return 0; | 
 | 10441 | } | 
 | 10442 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10443 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10444 |   ac_cv_flock_decl=yes | 
 | 10445 | else | 
 | 10446 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10447 |  | 
 | 10448 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10450 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10451 | fi | 
 | 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 10453 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 10454 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 10455 |   for ac_func in flock | 
 | 10456 | do : | 
 | 10457 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10458 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10459 |   cat >>confdefs.h <<_ACEOF | 
 | 10460 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10461 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10462 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10463 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10464 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10465 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10466 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10467 |   $as_echo_n "(cached) " >&6 | 
 | 10468 | else | 
 | 10469 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10470 | LIBS="-lbsd  $LIBS" | 
 | 10471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10472 | /* end confdefs.h.  */ | 
 | 10473 |  | 
 | 10474 | /* Override any GCC internal prototype to avoid an error. | 
 | 10475 |    Use char because int might match the return type of a GCC | 
 | 10476 |    builtin and then its argument prototype would still apply.  */ | 
 | 10477 | #ifdef __cplusplus | 
 | 10478 | extern "C" | 
 | 10479 | #endif | 
 | 10480 | char flock (); | 
 | 10481 | int | 
 | 10482 | main () | 
 | 10483 | { | 
 | 10484 | return flock (); | 
 | 10485 |   ; | 
 | 10486 |   return 0; | 
 | 10487 | } | 
 | 10488 | _ACEOF | 
 | 10489 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 10490 |   ac_cv_lib_bsd_flock=yes | 
 | 10491 | else | 
 | 10492 |   ac_cv_lib_bsd_flock=no | 
 | 10493 | fi | 
 | 10494 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10495 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10496 | LIBS=$ac_check_lib_save_LIBS | 
 | 10497 | fi | 
 | 10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 10499 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10500 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10501 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10502 |  | 
 | 10503 |  | 
 | 10504 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 10505 |  | 
 | 10506 |  | 
 | 10507 | fi | 
 | 10508 |  | 
 | 10509 |  | 
 | 10510 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10511 | done | 
 | 10512 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10513 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10514 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 10516 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 10517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10518 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10519 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10520 | #include <unistd.h> | 
 | 10521 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10522 | int | 
 | 10523 | main () | 
 | 10524 | { | 
 | 10525 | void* p = getpagesize | 
 | 10526 |   ; | 
 | 10527 |   return 0; | 
 | 10528 | } | 
 | 10529 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10530 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10531 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10532 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10533 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10534 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10535 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10536 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10537 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10538 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10539 |  | 
 | 10540 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10541 | 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] | 10542 |  | 
| Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 10544 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 10545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10546 | /* end confdefs.h.  */ | 
 | 10547 |  | 
 | 10548 | #include <stdlib.h> | 
 | 10549 |  | 
 | 10550 | int | 
 | 10551 | main () | 
 | 10552 | { | 
 | 10553 | int res = unsetenv("DUMMY") | 
 | 10554 |   ; | 
 | 10555 |   return 0; | 
 | 10556 | } | 
 | 10557 | _ACEOF | 
 | 10558 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10559 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10560 | $as_echo "no" >&6; } | 
 | 10561 | else | 
 | 10562 |  | 
 | 10563 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 10564 |  | 
 | 10565 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10566 | $as_echo "yes" >&6; } | 
 | 10567 |  | 
 | 10568 | fi | 
 | 10569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10570 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10571 | for ac_prog in true | 
 | 10572 | do | 
 | 10573 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10574 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10576 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10577 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10578 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10579 | else | 
 | 10580 |   if test -n "$TRUE"; then | 
 | 10581 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 10582 | else | 
 | 10583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10584 | for as_dir in $PATH | 
 | 10585 | do | 
 | 10586 |   IFS=$as_save_IFS | 
 | 10587 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10588 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 10589 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10590 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10591 |     $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] | 10592 |     break 2 | 
 | 10593 |   fi | 
 | 10594 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10595 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10596 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10597 |  | 
 | 10598 | fi | 
 | 10599 | fi | 
 | 10600 | TRUE=$ac_cv_prog_TRUE | 
 | 10601 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10602 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 10603 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10604 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10605 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10606 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10607 | fi | 
 | 10608 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10609 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10610 |   test -n "$TRUE" && break | 
 | 10611 | done | 
 | 10612 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 10613 |  | 
 | 10614 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 10616 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10617 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10618 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10619 | else | 
 | 10620 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10621 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10623 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10624 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10625 | /* Override any GCC internal prototype to avoid an error. | 
 | 10626 |    Use char because int might match the return type of a GCC | 
 | 10627 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10628 | #ifdef __cplusplus | 
 | 10629 | extern "C" | 
 | 10630 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10631 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10632 | int | 
 | 10633 | main () | 
 | 10634 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10635 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10636 |   ; | 
 | 10637 |   return 0; | 
 | 10638 | } | 
 | 10639 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10640 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10641 |   ac_cv_lib_c_inet_aton=yes | 
 | 10642 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10643 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10644 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10645 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10646 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10647 | LIBS=$ac_check_lib_save_LIBS | 
 | 10648 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 10650 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10651 | 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] | 10652 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10653 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10654 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 10655 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10656 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10657 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10658 | else | 
 | 10659 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10660 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10662 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10663 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10664 | /* Override any GCC internal prototype to avoid an error. | 
 | 10665 |    Use char because int might match the return type of a GCC | 
 | 10666 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10667 | #ifdef __cplusplus | 
 | 10668 | extern "C" | 
 | 10669 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10670 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10671 | int | 
 | 10672 | main () | 
 | 10673 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10674 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10675 |   ; | 
 | 10676 |   return 0; | 
 | 10677 | } | 
 | 10678 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10679 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10680 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 10681 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10682 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10683 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10684 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10685 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10686 | LIBS=$ac_check_lib_save_LIBS | 
 | 10687 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 10689 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10690 | 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] | 10691 |   cat >>confdefs.h <<_ACEOF | 
 | 10692 | #define HAVE_LIBRESOLV 1 | 
 | 10693 | _ACEOF | 
 | 10694 |  | 
 | 10695 |   LIBS="-lresolv $LIBS" | 
 | 10696 |  | 
 | 10697 | fi | 
 | 10698 |  | 
 | 10699 |  | 
 | 10700 | fi | 
 | 10701 |  | 
 | 10702 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10703 | # On Tru64, chflags seems to be present, but calling it will | 
 | 10704 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 10706 | $as_echo_n "checking for chflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10707 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10708 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10709 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10710 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10711 |   ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10712 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10713 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10714 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10715 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10716 | #include <sys/stat.h> | 
 | 10717 | #include <unistd.h> | 
 | 10718 | int main(int argc, char*argv[]) | 
 | 10719 | { | 
 | 10720 |   if(chflags(argv[0], 0) != 0) | 
 | 10721 |     return 1; | 
 | 10722 |   return 0; | 
 | 10723 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10724 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10725 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10726 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10727 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10728 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10729 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10730 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10732 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10733 | fi | 
 | 10734 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10735 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10736 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 10738 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10739 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10740 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10741 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10742 |   ac_cv_have_chflags="yes" | 
 | 10743 | else | 
 | 10744 |   ac_cv_have_chflags="no" | 
 | 10745 | fi | 
 | 10746 |  | 
 | 10747 | fi | 
 | 10748 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10749 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10750 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10751 |  | 
 | 10752 | fi | 
 | 10753 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 10755 | $as_echo_n "checking for lchflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10756 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10757 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10758 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10759 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10760 |   ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10761 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10762 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10763 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10764 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10765 | #include <sys/stat.h> | 
 | 10766 | #include <unistd.h> | 
 | 10767 | int main(int argc, char*argv[]) | 
 | 10768 | { | 
 | 10769 |   if(lchflags(argv[0], 0) != 0) | 
 | 10770 |     return 1; | 
 | 10771 |   return 0; | 
 | 10772 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10773 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10774 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10775 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10776 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10777 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10778 |   ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10779 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10780 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10781 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10782 | fi | 
 | 10783 |  | 
 | 10784 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10785 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10787 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10788 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10789 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10790 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10791 |   ac_cv_have_lchflags="yes" | 
 | 10792 | else | 
 | 10793 |   ac_cv_have_lchflags="no" | 
 | 10794 | fi | 
 | 10795 |  | 
 | 10796 | fi | 
 | 10797 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10798 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10799 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10800 |  | 
 | 10801 | fi | 
 | 10802 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10803 | case $ac_sys_system/$ac_sys_release in | 
 | 10804 | Darwin/*) | 
 | 10805 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10806 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10807 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10808 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10809 | 	;; | 
 | 10810 | esac | 
 | 10811 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10813 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10814 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10815 |   $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10816 | else | 
 | 10817 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10818 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10820 | /* end confdefs.h.  */ | 
 | 10821 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10822 | /* Override any GCC internal prototype to avoid an error. | 
 | 10823 |    Use char because int might match the return type of a GCC | 
 | 10824 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10825 | #ifdef __cplusplus | 
 | 10826 | extern "C" | 
 | 10827 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10828 | char inflateCopy (); | 
 | 10829 | int | 
 | 10830 | main () | 
 | 10831 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10832 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10833 |   ; | 
 | 10834 |   return 0; | 
 | 10835 | } | 
 | 10836 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10837 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10838 |   ac_cv_lib_z_inflateCopy=yes | 
 | 10839 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10840 |   ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10841 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10842 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10843 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10844 | LIBS=$ac_check_lib_save_LIBS | 
 | 10845 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 10847 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10848 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10849 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10850 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10851 |  | 
 | 10852 | fi | 
 | 10853 |  | 
 | 10854 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10855 | case $ac_sys_system/$ac_sys_release in | 
 | 10856 | Darwin/*) | 
 | 10857 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 10858 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 10859 | 	;; | 
 | 10860 | esac | 
 | 10861 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 10863 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 10864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10865 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10866 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10867 | #include <netdb.h> | 
 | 10868 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10869 | int | 
 | 10870 | main () | 
 | 10871 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10872 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10873 |   ; | 
 | 10874 |   return 0; | 
 | 10875 | } | 
 | 10876 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10877 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10878 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10879 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10880 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10881 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10882 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10883 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10884 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10885 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10886 |  | 
 | 10887 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10888 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10889 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10890 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 10892 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 10893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10894 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10895 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10896 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10897 | #include <sys/socket.h> | 
 | 10898 | #include <netinet/in.h> | 
 | 10899 | #include <arpa/inet.h> | 
 | 10900 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10901 | int | 
 | 10902 | main () | 
 | 10903 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10904 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10905 |   ; | 
 | 10906 |   return 0; | 
 | 10907 | } | 
 | 10908 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10909 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10911 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10912 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10913 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10914 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10915 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10916 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10917 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10918 |  | 
 | 10919 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10920 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10921 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10922 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 10924 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 10925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10926 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10927 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10928 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10929 | #include <sys/socket.h> | 
 | 10930 | #include <netinet/in.h> | 
 | 10931 | #include <arpa/inet.h> | 
 | 10932 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10933 | int | 
 | 10934 | main () | 
 | 10935 | { | 
 | 10936 | void* p = inet_pton | 
 | 10937 |   ; | 
 | 10938 |   return 0; | 
 | 10939 | } | 
 | 10940 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10941 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10942 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10943 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10944 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10945 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10946 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10947 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10948 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10949 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10950 |  | 
 | 10951 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10952 | 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] | 10953 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10954 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 10956 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 10957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10958 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10959 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10960 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10961 | #ifdef HAVE_GRP_H | 
 | 10962 | #include <grp.h> | 
 | 10963 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10964 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10965 | int | 
 | 10966 | main () | 
 | 10967 | { | 
 | 10968 | void* p = setgroups | 
 | 10969 |   ; | 
 | 10970 |   return 0; | 
 | 10971 | } | 
 | 10972 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10973 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10975 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10976 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10977 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10978 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10979 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10981 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10982 |  | 
 | 10983 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10984 | 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] | 10985 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10986 | # check for openpty and forkpty | 
 | 10987 |  | 
 | 10988 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10989 | do : | 
 | 10990 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10991 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10993 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10995 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10996 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10997 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 10998 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10999 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11000 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11001 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11003 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11005 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11007 | /* Override any GCC internal prototype to avoid an error. | 
 | 11008 |    Use char because int might match the return type of a GCC | 
 | 11009 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | #ifdef __cplusplus | 
 | 11011 | extern "C" | 
 | 11012 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | int | 
 | 11015 | main () | 
 | 11016 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11017 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 |   ; | 
 | 11019 |   return 0; | 
 | 11020 | } | 
 | 11021 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11022 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11024 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11025 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11026 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11027 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11028 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11030 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 11032 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11033 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11034 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11035 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11036 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11037 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 11038 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11039 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11040 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11041 | else | 
 | 11042 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11043 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11045 | /* end confdefs.h.  */ | 
 | 11046 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11047 | /* Override any GCC internal prototype to avoid an error. | 
 | 11048 |    Use char because int might match the return type of a GCC | 
 | 11049 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11050 | #ifdef __cplusplus | 
 | 11051 | extern "C" | 
 | 11052 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11053 | char openpty (); | 
 | 11054 | int | 
 | 11055 | main () | 
 | 11056 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11057 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11058 |   ; | 
 | 11059 |   return 0; | 
 | 11060 | } | 
 | 11061 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11062 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11063 |   ac_cv_lib_bsd_openpty=yes | 
 | 11064 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11065 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11066 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11067 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11068 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11069 | LIBS=$ac_check_lib_save_LIBS | 
 | 11070 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 11072 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11073 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11074 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11075 |  LIBS="$LIBS -lbsd" | 
 | 11076 | fi | 
 | 11077 |  | 
 | 11078 |  | 
 | 11079 | fi | 
 | 11080 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11081 |  | 
 | 11082 | fi | 
 | 11083 | done | 
 | 11084 |  | 
 | 11085 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11086 | do : | 
 | 11087 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11088 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11090 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11092 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11093 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11094 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 11095 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11096 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11097 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11098 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11100 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11102 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11104 | /* Override any GCC internal prototype to avoid an error. | 
 | 11105 |    Use char because int might match the return type of a GCC | 
 | 11106 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11107 | #ifdef __cplusplus | 
 | 11108 | extern "C" | 
 | 11109 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | int | 
 | 11112 | main () | 
 | 11113 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11114 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 |   ; | 
 | 11116 |   return 0; | 
 | 11117 | } | 
 | 11118 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11119 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11121 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11122 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11123 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11124 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11125 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11127 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 11129 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11130 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11131 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11132 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11133 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11134 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 11135 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11136 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11137 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11138 | else | 
 | 11139 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11140 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11142 | /* end confdefs.h.  */ | 
 | 11143 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11144 | /* Override any GCC internal prototype to avoid an error. | 
 | 11145 |    Use char because int might match the return type of a GCC | 
 | 11146 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11147 | #ifdef __cplusplus | 
 | 11148 | extern "C" | 
 | 11149 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11150 | char forkpty (); | 
 | 11151 | int | 
 | 11152 | main () | 
 | 11153 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11154 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11155 |   ; | 
 | 11156 |   return 0; | 
 | 11157 | } | 
 | 11158 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11159 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11160 |   ac_cv_lib_bsd_forkpty=yes | 
 | 11161 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11162 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11163 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11164 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11165 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11166 | LIBS=$ac_check_lib_save_LIBS | 
 | 11167 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 11169 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11170 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11171 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11172 |  LIBS="$LIBS -lbsd" | 
 | 11173 | fi | 
 | 11174 |  | 
 | 11175 |  | 
 | 11176 | fi | 
 | 11177 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11178 |  | 
 | 11179 | fi | 
 | 11180 | done | 
 | 11181 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11182 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11183 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11184 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11185 | do : | 
 | 11186 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11187 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11188 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11189 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11190 | _ACEOF | 
 | 11191 |  | 
 | 11192 | fi | 
 | 11193 | done | 
 | 11194 |  | 
 | 11195 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11196 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11197 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11198 | do : | 
 | 11199 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11200 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11201 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11203 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11205 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11206 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11207 | done | 
 | 11208 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11209 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11210 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11211 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11212 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11213 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11214 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11215 |   case " $LIBOBJS " in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11216 |   *" dup2.$ac_objext "* ) ;; | 
 | 11217 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11218 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11219 | esac | 
 | 11220 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11221 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11222 |  | 
 | 11223 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11224 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11225 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 11226 |  | 
 | 11227 | else | 
 | 11228 |   case " $LIBOBJS " in | 
 | 11229 |   *" getcwd.$ac_objext "* ) ;; | 
 | 11230 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 11231 |  ;; | 
 | 11232 | esac | 
 | 11233 |  | 
 | 11234 | fi | 
 | 11235 |  | 
 | 11236 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11237 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11238 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 11239 |  | 
 | 11240 | else | 
 | 11241 |   case " $LIBOBJS " in | 
 | 11242 |   *" strdup.$ac_objext "* ) ;; | 
 | 11243 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 11244 |  ;; | 
 | 11245 | esac | 
 | 11246 |  | 
 | 11247 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11248 |  | 
 | 11249 |  | 
 | 11250 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11251 | do : | 
 | 11252 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11253 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11255 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11257 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11258 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11259 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | int | 
 | 11261 | main () | 
 | 11262 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11263 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 |   ; | 
 | 11265 |   return 0; | 
 | 11266 | } | 
 | 11267 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11268 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11270 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11271 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11272 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11273 | 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] | 11274 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11275 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11276 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11277 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11278 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11279 | do : | 
 | 11280 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11281 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11282 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11283 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11284 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11285 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11286 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11287 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11288 | int | 
 | 11289 | main () | 
 | 11290 | { | 
 | 11291 | setpgrp(0,0); | 
 | 11292 |   ; | 
 | 11293 |   return 0; | 
 | 11294 | } | 
 | 11295 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11296 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11298 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11299 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11300 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11302 |  | 
 | 11303 | fi | 
 | 11304 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11305 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11306 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11307 | do : | 
 | 11308 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11309 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11310 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11311 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11312 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11313 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11314 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11315 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | int | 
 | 11317 | main () | 
 | 11318 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11319 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 |   ; | 
 | 11321 |   return 0; | 
 | 11322 | } | 
 | 11323 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11324 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11325 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11326 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11327 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11328 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11329 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11330 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11331 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11332 | 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] | 11333 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11334 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11335 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11336 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11337 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 11339 | $as_echo_n "checking for major... " >&6; } | 
 | 11340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11341 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11342 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11343 | #if defined(MAJOR_IN_MKDEV) | 
 | 11344 | #include <sys/mkdev.h> | 
 | 11345 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 11346 | #include <sys/sysmacros.h> | 
 | 11347 | #else | 
 | 11348 | #include <sys/types.h> | 
 | 11349 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11350 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11351 | int | 
 | 11352 | main () | 
 | 11353 | { | 
 | 11354 |  | 
 | 11355 |   makedev(major(0),minor(0)); | 
 | 11356 |  | 
 | 11357 |   ; | 
 | 11358 |   return 0; | 
 | 11359 | } | 
 | 11360 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11361 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11362 |  | 
 | 11363 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11364 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11365 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11366 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11367 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11368 |  | 
 | 11369 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11370 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11371 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11372 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11373 |  | 
 | 11374 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11375 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11376 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11377 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11378 | # 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] | 11379 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 11381 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 11382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11383 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11384 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11385 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11386 | #include <sys/socket.h> | 
 | 11387 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11388 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | int | 
 | 11391 | main () | 
 | 11392 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11393 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 |   ; | 
 | 11395 |   return 0; | 
 | 11396 | } | 
 | 11397 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11398 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11399 |   have_getaddrinfo=yes | 
 | 11400 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11401 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11402 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11403 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11404 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 11406 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11407 | if test $have_getaddrinfo = yes | 
 | 11408 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11409 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 11410 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11411 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11412 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11413 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11414 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11415 |  | 
 | 11416 | if test "${enable_ipv6+set}" = set; then | 
 | 11417 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 11418 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11419 |   ac_cv_buggy_getaddrinfo=yes | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11420 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11421 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11422 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11423 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11424 |  | 
| Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 11425 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11426 | #include <sys/types.h> | 
 | 11427 | #include <netdb.h> | 
 | 11428 | #include <string.h> | 
 | 11429 | #include <sys/socket.h> | 
 | 11430 | #include <netinet/in.h> | 
 | 11431 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11432 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11433 | { | 
 | 11434 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 11435 |   struct addrinfo hints, *ai, *aitop; | 
 | 11436 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 11437 |  | 
 | 11438 |   for (passive = 0; passive <= 1; passive++) { | 
 | 11439 |     memset(&hints, 0, sizeof(hints)); | 
 | 11440 |     hints.ai_family = AF_UNSPEC; | 
 | 11441 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 11442 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11443 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11444 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 11445 |       (void)gai_strerror(gaierr); | 
 | 11446 |       goto bad; | 
 | 11447 |     } | 
 | 11448 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 11449 |       if (ai->ai_addr == NULL || | 
 | 11450 |           ai->ai_addrlen == 0 || | 
 | 11451 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 11452 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 11453 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 11454 |         goto bad; | 
 | 11455 |       } | 
 | 11456 |       switch (ai->ai_family) { | 
 | 11457 |       case AF_INET: | 
 | 11458 |         if (strcmp(strport, "54321") != 0) { | 
 | 11459 |           goto bad; | 
 | 11460 |         } | 
 | 11461 |         if (passive) { | 
 | 11462 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 11463 |             goto bad; | 
 | 11464 |           } | 
 | 11465 |         } else { | 
 | 11466 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 11467 |             goto bad; | 
 | 11468 |           } | 
 | 11469 |         } | 
 | 11470 |         inet4++; | 
 | 11471 |         break; | 
 | 11472 |       case AF_INET6: | 
 | 11473 |         if (strcmp(strport, "54321") != 0) { | 
 | 11474 |           goto bad; | 
 | 11475 |         } | 
 | 11476 |         if (passive) { | 
 | 11477 |           if (strcmp(straddr, "::") != 0) { | 
 | 11478 |             goto bad; | 
 | 11479 |           } | 
 | 11480 |         } else { | 
 | 11481 |           if (strcmp(straddr, "::1") != 0) { | 
 | 11482 |             goto bad; | 
 | 11483 |           } | 
 | 11484 |         } | 
 | 11485 |         inet6++; | 
 | 11486 |         break; | 
 | 11487 |       case AF_UNSPEC: | 
 | 11488 |         goto bad; | 
 | 11489 |         break; | 
 | 11490 |       default: | 
 | 11491 |         /* another family support? */ | 
 | 11492 |         break; | 
 | 11493 |       } | 
 | 11494 |     } | 
 | 11495 |   } | 
 | 11496 |  | 
 | 11497 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 11498 |     goto bad; | 
 | 11499 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 11500 |     goto bad; | 
 | 11501 |  | 
 | 11502 |   if (aitop) | 
 | 11503 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11504 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11505 |  | 
 | 11506 |  bad: | 
 | 11507 |   if (aitop) | 
 | 11508 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11509 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11510 | } | 
 | 11511 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11513 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11514 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11515 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11516 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11517 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11519 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11520 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11521 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11522 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11523 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11524 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11525 |  | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 11527 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 11528 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11529 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11530 | then | 
 | 11531 | 	if test $ipv6 = yes | 
 | 11532 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11533 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 11534 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 11535 | 		exit 1 | 
 | 11536 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11537 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11539 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11540 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11541 | fi | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11542 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11543 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11544 | do : | 
 | 11545 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11546 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11548 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11550 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11551 | fi | 
 | 11552 | done | 
 | 11553 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11554 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11555 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 11557 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11558 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11559 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11560 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11563 | #include <sys/types.h> | 
 | 11564 | #include <sys/time.h> | 
 | 11565 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | int | 
 | 11568 | main () | 
 | 11569 | { | 
 | 11570 | if ((struct tm *) 0) | 
 | 11571 | return 0; | 
 | 11572 |   ; | 
 | 11573 |   return 0; | 
 | 11574 | } | 
 | 11575 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11576 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11577 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11578 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11579 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11580 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11582 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 11584 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11585 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11587 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11588 |  | 
 | 11589 | fi | 
 | 11590 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 11592 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11593 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11594 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11595 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11596 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11597 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11598 | #include <sys/types.h> | 
 | 11599 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11601 | int | 
 | 11602 | main () | 
 | 11603 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11604 | struct tm tm; | 
 | 11605 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11606 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 |   ; | 
 | 11608 |   return 0; | 
 | 11609 | } | 
 | 11610 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11611 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11612 |   ac_cv_struct_tm=time.h | 
 | 11613 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11614 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11615 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11617 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 11619 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11620 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11621 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11622 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11623 |  | 
 | 11624 | fi | 
 | 11625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11626 | 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] | 11627 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11629 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11630 | 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] | 11631 |  | 
 | 11632 | cat >>confdefs.h <<_ACEOF | 
 | 11633 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 11634 | _ACEOF | 
 | 11635 |  | 
 | 11636 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11637 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11638 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 11640 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11641 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11642 |  | 
 | 11643 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11644 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 11645 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11646 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11647 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11648 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11649 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11650 | fi | 
 | 11651 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11653 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11654 | _ACEOF | 
 | 11655 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11656 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 11657 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11658 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11659 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11660 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11661 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11662 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11663 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11664 | #if !HAVE_DECL_TZNAME | 
 | 11665 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11666 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | int | 
 | 11669 | main () | 
 | 11670 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11671 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 |   ; | 
 | 11673 |   return 0; | 
 | 11674 | } | 
 | 11675 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11676 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11677 |   ac_cv_var_tzname=yes | 
 | 11678 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11679 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11680 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11681 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11682 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11683 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 11685 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11686 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11688 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11689 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11690 |   fi | 
 | 11691 | fi | 
 | 11692 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11693 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11694 | 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] | 11695 |  | 
 | 11696 | cat >>confdefs.h <<_ACEOF | 
 | 11697 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 11698 | _ACEOF | 
 | 11699 |  | 
 | 11700 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11701 | fi | 
 | 11702 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11703 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11704 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11705 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | cat >>confdefs.h <<_ACEOF | 
 | 11707 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 11708 | _ACEOF | 
 | 11709 |  | 
 | 11710 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11711 | fi | 
 | 11712 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11713 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11714 | 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] | 11715 |  | 
 | 11716 | cat >>confdefs.h <<_ACEOF | 
 | 11717 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 11718 | _ACEOF | 
 | 11719 |  | 
 | 11720 |  | 
 | 11721 | fi | 
 | 11722 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11723 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11724 | 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] | 11725 |  | 
 | 11726 | cat >>confdefs.h <<_ACEOF | 
 | 11727 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 11728 | _ACEOF | 
 | 11729 |  | 
 | 11730 |  | 
 | 11731 | fi | 
 | 11732 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11733 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11734 | 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] | 11735 |  | 
 | 11736 | cat >>confdefs.h <<_ACEOF | 
 | 11737 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 11738 | _ACEOF | 
 | 11739 |  | 
 | 11740 |  | 
 | 11741 | fi | 
 | 11742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11743 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11744 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11745 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | cat >>confdefs.h <<_ACEOF | 
 | 11747 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 11748 | _ACEOF | 
 | 11749 |  | 
 | 11750 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11751 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11752 |  | 
 | 11753 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11754 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11755 |   *" fileblocks.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11756 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 11757 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11758 | esac | 
 | 11759 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11760 | fi | 
 | 11761 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11762 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 11765 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11766 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11767 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11768 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11769 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11770 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11771 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11772 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11773 | int | 
 | 11774 | main () | 
 | 11775 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11776 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11777 |   ; | 
 | 11778 |   return 0; | 
 | 11779 | } | 
 | 11780 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11781 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11782 |   ac_cv_header_time_altzone=yes | 
 | 11783 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11784 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11785 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11787 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11788 | fi | 
 | 11789 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11791 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11792 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11794 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11795 |  | 
 | 11796 | fi | 
 | 11797 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11798 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11800 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11802 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11803 |  | 
 | 11804 | #include <sys/types.h> | 
 | 11805 | #include <sys/select.h> | 
 | 11806 | #include <sys/time.h> | 
 | 11807 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | int | 
 | 11809 | main () | 
 | 11810 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11811 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 |   ; | 
 | 11813 |   return 0; | 
 | 11814 | } | 
 | 11815 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11816 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11817 |  | 
 | 11818 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11819 | $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] | 11820 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11821 |   was_it_defined=yes | 
 | 11822 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11823 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11826 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11827 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11829 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11830 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11831 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11832 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11833 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11834 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11835 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | int | 
 | 11837 | main () | 
 | 11838 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11839 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11840 |   ; | 
 | 11841 |   return 0; | 
 | 11842 | } | 
 | 11843 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11844 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11845 |   ac_cv_struct_addrinfo=yes | 
 | 11846 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11847 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11848 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11850 | fi | 
 | 11851 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 11853 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11854 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11856 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11857 |  | 
 | 11858 | fi | 
 | 11859 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 11861 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11862 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11863 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11864 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11865 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11866 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11867 |  | 
 | 11868 | #		include <sys/types.h> | 
 | 11869 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11870 | int | 
 | 11871 | main () | 
 | 11872 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11873 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 |   ; | 
 | 11875 |   return 0; | 
 | 11876 | } | 
 | 11877 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11878 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11879 |   ac_cv_struct_sockaddr_storage=yes | 
 | 11880 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11881 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11882 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11884 | fi | 
 | 11885 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 11887 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11888 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11890 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11891 |  | 
 | 11892 | fi | 
 | 11893 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11894 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11895 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 11897 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11898 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11899 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11900 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11901 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11902 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11903 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11904 | int | 
 | 11905 | main () | 
 | 11906 | { | 
 | 11907 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11908 | test_array [0] = 0; | 
 | 11909 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11910 |  | 
 | 11911 |   ; | 
 | 11912 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11913 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11915 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11916 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11918 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11919 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11921 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 11923 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11924 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11925 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11926 |  | 
 | 11927 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11928 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 11930 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11931 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11932 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11934 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11935 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11936 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11937 | int | 
 | 11938 | main () | 
 | 11939 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11940 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11941 | #ifndef __cplusplus | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11942 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 |   typedef int charset[2]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11944 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11946 |   char const *const *pcpcc; | 
 | 11947 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 11949 |   struct point {int x, y;}; | 
 | 11950 |   static struct point const zero = {0,0}; | 
 | 11951 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 11952 |      It does not let you subtract one const X* pointer from another in | 
 | 11953 |      an arm of an if-expression whose if-part is not a constant | 
 | 11954 |      expression */ | 
 | 11955 |   const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11956 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 |   /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11958 |   ++pcpcc; | 
 | 11959 |   ppc = (char**) pcpcc; | 
 | 11960 |   pcpcc = (char const *const *) ppc; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11961 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 11962 |     char tx; | 
 | 11963 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11965 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11966 |     *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11967 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 |   } | 
 | 11969 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 11970 |     int x[] = {25, 17}; | 
 | 11971 |     const int *foo = &x[0]; | 
 | 11972 |     ++foo; | 
 | 11973 |   } | 
 | 11974 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 11975 |     typedef const int *iptr; | 
 | 11976 |     iptr p = 0; | 
 | 11977 |     ++p; | 
 | 11978 |   } | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11979 |   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11981 |     struct s { int j; const int *ap[3]; } bx; | 
 | 11982 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 |   } | 
 | 11984 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 11985 |     const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11986 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11988 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11989 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11990 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 |   ; | 
 | 11992 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11993 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11994 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11995 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11996 |   ac_cv_c_const=yes | 
 | 11997 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11998 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11999 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12001 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 12003 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12004 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12006 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12007 |  | 
 | 12008 | fi | 
 | 12009 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12010 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12011 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 12013 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 12014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12015 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12016 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | int | 
 | 12018 | main () | 
 | 12019 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12020 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12021 |   ; | 
 | 12022 |   return 0; | 
 | 12023 | } | 
 | 12024 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12025 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12026 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12027 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12028 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12029 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12030 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12031 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12032 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12035 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12036 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12037 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 12039 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 12040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12041 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12042 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | int | 
 | 12044 | main () | 
 | 12045 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12046 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12047 |   ; | 
 | 12048 |   return 0; | 
 | 12049 | } | 
 | 12050 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12051 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12052 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12053 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12054 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12055 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12056 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12057 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12058 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12061 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12062 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12063 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 12065 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 12066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12067 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12068 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | int | 
 | 12070 | main () | 
 | 12071 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12072 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12073 |   ; | 
 | 12074 |   return 0; | 
 | 12075 | } | 
 | 12076 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12077 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12079 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12081 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12082 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 12085 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12086 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12087 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 12089 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 12090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12091 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12092 |  | 
 | 12093 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12094 | int foo(int x, ...) { | 
 | 12095 | 	va_list va; | 
 | 12096 | 	va_start(va, x); | 
 | 12097 | 	va_arg(va, int); | 
 | 12098 | 	va_arg(va, char *); | 
 | 12099 | 	va_arg(va, double); | 
 | 12100 | 	return 0; | 
 | 12101 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12102 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | int | 
 | 12104 | main () | 
 | 12105 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12106 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12107 |   ; | 
 | 12108 |   return 0; | 
 | 12109 | } | 
 | 12110 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12111 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12112 |  | 
 | 12113 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12114 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12116 |   works=yes | 
 | 12117 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12118 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12121 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12122 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12123 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 12125 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 12126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12127 | /* end confdefs.h.  */ | 
 | 12128 |  | 
 | 12129 | #include <sys/types.h> | 
 | 12130 | #include <sys/socket.h> | 
 | 12131 |  | 
 | 12132 | int | 
 | 12133 | main () | 
 | 12134 | { | 
 | 12135 | void *x=socketpair | 
 | 12136 |   ; | 
 | 12137 |   return 0; | 
 | 12138 | } | 
 | 12139 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12140 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12141 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12142 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12143 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12144 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12145 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12146 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12147 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12148 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12149 |  | 
 | 12150 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12151 | 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] | 12152 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12153 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 12155 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 12156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12157 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12158 | #include <sys/types.h> | 
 | 12159 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | int | 
 | 12161 | main () | 
 | 12162 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12163 | struct sockaddr x; | 
 | 12164 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 |   ; | 
 | 12166 |   return 0; | 
 | 12167 | } | 
 | 12168 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12169 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12170 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12171 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12173 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12174 |  | 
 | 12175 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12176 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12177 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12178 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12179 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12180 | 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] | 12181 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12182 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 12184 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 12185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12186 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12187 |  | 
 | 12188 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 12189 | #include <stdarg.h> | 
 | 12190 | #else | 
 | 12191 | #include <varargs.h> | 
 | 12192 | #endif | 
 | 12193 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12194 | int | 
 | 12195 | main () | 
 | 12196 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12197 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 |   ; | 
 | 12199 |   return 0; | 
 | 12200 | } | 
 | 12201 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12202 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12203 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12204 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12205 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12206 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12207 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12209 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12210 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12211 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 12214 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12215 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12216 | # 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] | 12217 |  | 
 | 12218 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12219 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12220 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12221 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12222 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12223 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12224 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 12225 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12226 |   OLD_CFLAGS=$CFLAGS | 
 | 12227 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12228 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12229 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12230 |  | 
 | 12231 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12233 | int | 
 | 12234 | main () | 
 | 12235 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12236 |  | 
 | 12237 |     char *name; | 
 | 12238 |     struct hostent *he, *res; | 
 | 12239 |     char buffer[2048]; | 
 | 12240 |     int buflen = 2048; | 
 | 12241 |     int h_errnop; | 
 | 12242 |  | 
 | 12243 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 |  | 
 | 12245 |   ; | 
 | 12246 |   return 0; | 
 | 12247 | } | 
 | 12248 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12251 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12252 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12254 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12255 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12256 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12257 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12259 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12260 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12261 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12262 | $as_echo "no" >&6; } | 
 | 12263 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 12264 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 12265 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12266 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12267 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12268 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | int | 
 | 12271 | main () | 
 | 12272 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12273 |  | 
 | 12274 |         char *name; | 
 | 12275 |         struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12276 |         char buffer[2048]; | 
 | 12277 |         int buflen = 2048; | 
 | 12278 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12279 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12280 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 |  | 
 | 12282 |   ; | 
 | 12283 |   return 0; | 
 | 12284 | } | 
 | 12285 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12286 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12288 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12289 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12291 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12292 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12293 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12294 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12295 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12296 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12298 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12299 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12300 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 12301 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 12302 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12303 | /* end confdefs.h.  */ | 
 | 12304 |  | 
 | 12305 | #           include <netdb.h> | 
 | 12306 |  | 
 | 12307 | int | 
 | 12308 | main () | 
 | 12309 | { | 
 | 12310 |  | 
 | 12311 |             char *name; | 
 | 12312 |             struct hostent *he; | 
 | 12313 |             struct hostent_data data; | 
 | 12314 |  | 
 | 12315 |             (void) gethostbyname_r(name, he, &data); | 
 | 12316 |  | 
 | 12317 |   ; | 
 | 12318 |   return 0; | 
 | 12319 | } | 
 | 12320 | _ACEOF | 
 | 12321 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12322 |  | 
 | 12323 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 12324 |  | 
 | 12325 |  | 
 | 12326 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 12327 |  | 
 | 12328 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12329 | $as_echo "yes" >&6; } | 
 | 12330 |  | 
 | 12331 | else | 
 | 12332 |  | 
 | 12333 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12334 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12336 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12337 | 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] | 12338 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12339 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12340 | 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] | 12341 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12342 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12344 |   CFLAGS=$OLD_CFLAGS | 
 | 12345 |  | 
 | 12346 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12348 |   for ac_func in gethostbyname | 
 | 12349 | do : | 
 | 12350 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12351 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12353 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12354 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12355 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12356 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12357 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12358 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12359 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12360 | fi | 
 | 12361 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12362 |  | 
 | 12363 |  | 
 | 12364 |  | 
 | 12365 |  | 
 | 12366 |  | 
 | 12367 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12368 | # checks for system services | 
 | 12369 | # (none yet) | 
 | 12370 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12371 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12372 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12373 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12374 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12375 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12376 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 12377 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12378 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12379 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12380 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12382 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12384 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12386 | /* Override any GCC internal prototype to avoid an error. | 
 | 12387 |    Use char because int might match the return type of a GCC | 
 | 12388 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12389 | #ifdef __cplusplus | 
 | 12390 | extern "C" | 
 | 12391 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12393 | int | 
 | 12394 | main () | 
 | 12395 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12396 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 |   ; | 
 | 12398 |   return 0; | 
 | 12399 | } | 
 | 12400 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12401 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12403 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12404 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12405 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12406 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12407 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12408 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12409 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 12411 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12412 | 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] | 12413 |   cat >>confdefs.h <<_ACEOF | 
 | 12414 | #define HAVE_LIBIEEE 1 | 
 | 12415 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12416 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12417 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12418 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12419 | fi | 
 | 12420 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12421 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12422 | fi | 
 | 12423 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12424 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12425 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 12427 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12429 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12430 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12431 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12432 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12433 | then | 
 | 12434 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12435 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12437 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12438 | $as_echo "yes" >&6; } | 
 | 12439 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12440 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12441 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12442 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12443 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12444 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12445 | fi | 
 | 12446 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12447 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12448 | # check for --with-libm=... | 
 | 12449 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12450 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12451 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12452 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12453 | *) LIBM=-lm | 
 | 12454 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 12456 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12457 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12458 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12459 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12460 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12461 | if test "$withval" = no | 
 | 12462 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12463 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 12464 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12465 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12466 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12467 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 12468 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12469 | 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] | 12470 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12471 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12472 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 12473 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12474 | fi | 
 | 12475 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12476 |  | 
 | 12477 | # check for --with-libc=... | 
 | 12478 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 12480 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12482 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12483 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12484 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12485 | if test "$withval" = no | 
 | 12486 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12487 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 12488 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12489 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12490 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12491 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 12492 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12493 | 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] | 12494 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12495 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12496 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 12497 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12498 | fi | 
 | 12499 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12500 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12501 | # ************************************************** | 
 | 12502 | # * Check for various properties of floating point * | 
 | 12503 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12504 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 12506 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12507 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12508 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12509 | else | 
 | 12510 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12511 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12512 |   ac_cv_little_endian_double=no | 
 | 12513 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12514 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12515 | /* end confdefs.h.  */ | 
 | 12516 |  | 
 | 12517 | #include <string.h> | 
 | 12518 | int main() { | 
 | 12519 |     double x = 9006104071832581.0; | 
 | 12520 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 12521 |         return 0; | 
 | 12522 |     else | 
 | 12523 |         return 1; | 
 | 12524 | } | 
 | 12525 |  | 
 | 12526 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12527 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12528 |   ac_cv_little_endian_double=yes | 
 | 12529 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12530 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12531 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12533 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12534 | fi | 
 | 12535 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12536 | fi | 
 | 12537 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 12539 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12540 | if test "$ac_cv_little_endian_double" = yes | 
 | 12541 | then | 
 | 12542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12543 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12544 |  | 
 | 12545 | fi | 
 | 12546 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 12548 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12549 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12550 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12551 | else | 
 | 12552 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12553 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12554 |   ac_cv_big_endian_double=no | 
 | 12555 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12556 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12557 | /* end confdefs.h.  */ | 
 | 12558 |  | 
 | 12559 | #include <string.h> | 
 | 12560 | int main() { | 
 | 12561 |     double x = 9006104071832581.0; | 
 | 12562 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 12563 |         return 0; | 
 | 12564 |     else | 
 | 12565 |         return 1; | 
 | 12566 | } | 
 | 12567 |  | 
 | 12568 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12569 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12570 |   ac_cv_big_endian_double=yes | 
 | 12571 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12572 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12573 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12575 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12576 | fi | 
 | 12577 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12578 | fi | 
 | 12579 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 12581 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12582 | if test "$ac_cv_big_endian_double" = yes | 
 | 12583 | then | 
 | 12584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12585 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12586 |  | 
 | 12587 | fi | 
 | 12588 |  | 
 | 12589 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 12590 | # While Python doesn't currently have full support for these platforms | 
 | 12591 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 12592 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 12594 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12595 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12596 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12597 | else | 
 | 12598 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12599 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12600 |   ac_cv_mixed_endian_double=no | 
 | 12601 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12602 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12603 | /* end confdefs.h.  */ | 
 | 12604 |  | 
 | 12605 | #include <string.h> | 
 | 12606 | int main() { | 
 | 12607 |     double x = 9006104071832581.0; | 
 | 12608 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 12609 |         return 0; | 
 | 12610 |     else | 
 | 12611 |         return 1; | 
 | 12612 | } | 
 | 12613 |  | 
 | 12614 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12615 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12616 |   ac_cv_mixed_endian_double=yes | 
 | 12617 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12618 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12619 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12621 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12622 | fi | 
 | 12623 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12624 | fi | 
 | 12625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 12627 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12628 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 12629 | then | 
 | 12630 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12631 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12632 |  | 
 | 12633 | fi | 
 | 12634 |  | 
 | 12635 | # The short float repr introduced in Python 3.1 requires the | 
 | 12636 | # correctly-rounded string <-> double conversion functions from | 
 | 12637 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
 | 12638 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12639 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12640 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12641 |  | 
 | 12642 | # This inline assembler syntax may also work for suncc and icc, | 
 | 12643 | # so we try it on all platforms. | 
 | 12644 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 12646 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 12647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12648 | /* end confdefs.h.  */ | 
 | 12649 |  | 
 | 12650 | int | 
 | 12651 | main () | 
 | 12652 | { | 
 | 12653 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12654 |   unsigned short cw; | 
 | 12655 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 12656 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12657 |  | 
 | 12658 |   ; | 
 | 12659 |   return 0; | 
 | 12660 | } | 
 | 12661 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12662 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12663 |   have_gcc_asm_for_x87=yes | 
 | 12664 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12665 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12666 | fi | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 12669 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12670 | if test "$have_gcc_asm_for_x87" = yes | 
 | 12671 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12672 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12673 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12674 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12675 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12676 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12677 | # Detect whether system arithmetic is subject to x87-style double | 
 | 12678 | # rounding issues.  The result of this test has little meaning on non | 
 | 12679 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 12680 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 12681 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 12683 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12684 | # $BASECFLAGS may affect the result | 
 | 12685 | ac_save_cc="$CC" | 
 | 12686 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12687 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12688 |   ac_cv_x87_double_rounding=no | 
 | 12689 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12690 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12691 | /* end confdefs.h.  */ | 
 | 12692 |  | 
 | 12693 | #include <stdlib.h> | 
 | 12694 | #include <math.h> | 
 | 12695 | int main() { | 
 | 12696 |     volatile double x, y, z; | 
 | 12697 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 12698 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 12699 |     y = 1./x; | 
 | 12700 |     if (y != 1.) | 
 | 12701 |         exit(0); | 
 | 12702 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 12703 |     x = 1e16; | 
 | 12704 |     y = 2.99999; | 
 | 12705 |     z = x + y; | 
 | 12706 |     if (z != 1e16+4.) | 
 | 12707 |         exit(0); | 
 | 12708 |     /* both tests show evidence of double rounding */ | 
 | 12709 |     exit(1); | 
 | 12710 | } | 
 | 12711 |  | 
 | 12712 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12713 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12714 |   ac_cv_x87_double_rounding=no | 
 | 12715 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12716 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12717 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12719 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12720 | fi | 
 | 12721 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12722 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 12724 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12725 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 12726 | then | 
 | 12727 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12728 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12729 |  | 
 | 12730 | fi | 
 | 12731 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12732 | # ************************************ | 
 | 12733 | # * Check for mathematical functions * | 
 | 12734 | # ************************************ | 
 | 12735 |  | 
 | 12736 | LIBS_SAVE=$LIBS | 
 | 12737 | LIBS="$LIBS $LIBM" | 
 | 12738 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12739 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12740 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12742 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12743 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12744 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12745 | else | 
 | 12746 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12747 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12748 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12749 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12750 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12751 | /* end confdefs.h.  */ | 
 | 12752 |  | 
 | 12753 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12754 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12755 | int main() { | 
 | 12756 |     /* return 0 if either negative zeros don't exist | 
 | 12757 |        on this platform or if negative zeros exist | 
 | 12758 |        and tanh(-0.) == -0. */ | 
 | 12759 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12760 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12761 |   else exit(1); | 
 | 12762 | } | 
 | 12763 |  | 
 | 12764 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12765 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12766 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12767 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12768 |   ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12769 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12770 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12771 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12772 | fi | 
 | 12773 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12774 | fi | 
 | 12775 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12777 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12778 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12779 | then | 
 | 12780 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12781 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12782 |  | 
 | 12783 | fi | 
 | 12784 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12785 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12786 | do : | 
 | 12787 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12788 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12789 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12790 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12791 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12792 | _ACEOF | 
 | 12793 |  | 
 | 12794 | fi | 
 | 12795 | done | 
 | 12796 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12797 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12798 | do : | 
 | 12799 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12800 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12801 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12802 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12803 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12804 | _ACEOF | 
 | 12805 |  | 
 | 12806 | fi | 
 | 12807 | done | 
 | 12808 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12809 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 12810 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12811 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12812 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12813 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12814 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12815 | fi | 
 | 12816 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12817 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12818 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12819 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12820 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 12821 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12822 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12823 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12824 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12825 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12826 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12827 |  | 
 | 12828 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12829 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12830 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12831 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 12832 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12833 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12834 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12835 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12836 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12837 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12838 |  | 
 | 12839 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12840 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12841 | _ACEOF | 
 | 12842 |  | 
 | 12843 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12844 | LIBS=$LIBS_SAVE | 
 | 12845 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12846 | # For multiprocessing module, check that sem_open | 
 | 12847 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 12848 | # the kernel module that provides POSIX semaphores | 
 | 12849 | # isn't loaded by default, so an attempt to call | 
 | 12850 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 12852 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12853 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12854 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12855 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12856 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12857 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12859 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12860 | /* end confdefs.h.  */ | 
 | 12861 |  | 
 | 12862 | #include <unistd.h> | 
 | 12863 | #include <fcntl.h> | 
 | 12864 | #include <stdio.h> | 
 | 12865 | #include <semaphore.h> | 
 | 12866 | #include <sys/stat.h> | 
 | 12867 |  | 
 | 12868 | int main(void) { | 
 | 12869 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 12870 |   if (a == SEM_FAILED) { | 
 | 12871 |     perror("sem_open"); | 
 | 12872 |     return 1; | 
 | 12873 |   } | 
 | 12874 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12875 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12876 |   return 0; | 
 | 12877 | } | 
 | 12878 |  | 
 | 12879 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12880 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12881 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12882 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12883 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12884 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12886 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12887 | fi | 
 | 12888 |  | 
 | 12889 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12890 | fi | 
 | 12891 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 12893 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12894 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 12895 | then | 
 | 12896 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12897 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12898 |  | 
 | 12899 | fi | 
 | 12900 |  | 
 | 12901 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 12903 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12904 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12905 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12906 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12907 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12908 |   ac_cv_broken_sem_getvalue=yes | 
 | 12909 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12910 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12911 | /* end confdefs.h.  */ | 
 | 12912 |  | 
 | 12913 | #include <unistd.h> | 
 | 12914 | #include <fcntl.h> | 
 | 12915 | #include <stdio.h> | 
 | 12916 | #include <semaphore.h> | 
 | 12917 | #include <sys/stat.h> | 
 | 12918 |  | 
 | 12919 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12920 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12921 |   int count; | 
 | 12922 |   int res; | 
 | 12923 |   if(a==SEM_FAILED){ | 
 | 12924 |     perror("sem_open"); | 
 | 12925 |     return 1; | 
 | 12926 |  | 
 | 12927 |   } | 
 | 12928 |   res = sem_getvalue(a, &count); | 
 | 12929 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12930 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12931 |   return res==-1 ? 1 : 0; | 
 | 12932 | } | 
 | 12933 |  | 
 | 12934 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12935 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12936 |   ac_cv_broken_sem_getvalue=no | 
 | 12937 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12938 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12939 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12941 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12942 | fi | 
 | 12943 |  | 
 | 12944 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12945 | fi | 
 | 12946 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 12948 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12949 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 12950 | then | 
 | 12951 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12952 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12953 |  | 
 | 12954 | fi | 
 | 12955 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12956 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 12958 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12959 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12960 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12961 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 12962 | yes) | 
 | 12963 |   enable_big_digits=30 ;; | 
 | 12964 | no) | 
 | 12965 |   enable_big_digits=15 ;; | 
 | 12966 | 15|30) | 
 | 12967 |   ;; | 
 | 12968 | *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12969 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12970 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 12972 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12973 |  | 
 | 12974 | cat >>confdefs.h <<_ACEOF | 
 | 12975 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 12976 | _ACEOF | 
 | 12977 |  | 
 | 12978 |  | 
 | 12979 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 12981 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12982 | fi | 
 | 12983 |  | 
 | 12984 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12985 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12986 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12987 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 |  | 
 | 12989 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12990 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12992 |   wchar_h="yes" | 
 | 12993 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12994 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12996 |  | 
 | 12997 | fi | 
 | 12998 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12999 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13001 | # determine wchar_t size | 
 | 13002 | if test "$wchar_h" = yes | 
 | 13003 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13004 |   # The cast to long int works around a bug in the HP C Compiler | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 13006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 13007 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 13009 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13010 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13011 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13013 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 13014 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13017 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 13018 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 13019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13020 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13021 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13022 |    else | 
 | 13023 |      ac_cv_sizeof_wchar_t=0 | 
 | 13024 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13026 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 13029 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13030 |  | 
 | 13031 |  | 
 | 13032 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13034 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13036 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13037 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13038 | fi | 
 | 13039 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 13041 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13042 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13044 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13045 |  | 
 | 13046 | #include <tcl.h> | 
 | 13047 | #if TCL_UTF_MAX != 6 | 
 | 13048 | # error "NOT UCS4_TCL" | 
 | 13049 | #endif | 
 | 13050 | int | 
 | 13051 | main () | 
 | 13052 | { | 
 | 13053 |  | 
 | 13054 |   ; | 
 | 13055 |   return 0; | 
 | 13056 | } | 
 | 13057 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13058 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13059 |  | 
 | 13060 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13061 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13062 |  | 
 | 13063 |   have_ucs4_tcl=yes | 
 | 13064 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13065 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 13068 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13069 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13070 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13071 | if test "$wchar_h" = yes | 
 | 13072 | then | 
 | 13073 |   # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13074 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 13075 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13076 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13077 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13078 | else | 
 | 13079 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13080 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13081 |   ac_cv_wchar_t_signed=yes | 
 | 13082 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13083 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13084 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13085 |  | 
 | 13086 |   #include <wchar.h> | 
 | 13087 |   int main() | 
 | 13088 |   { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 13089 | 	/* Success: exit code 0 */ | 
 | 13090 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13091 |   } | 
 | 13092 |  | 
 | 13093 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13094 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13095 |   ac_cv_wchar_t_signed=yes | 
 | 13096 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13097 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13098 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13100 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13101 | fi | 
 | 13102 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13103 | fi | 
 | 13104 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13105 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 13106 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13107 | fi | 
 | 13108 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
 | 13110 | $as_echo_n "checking what type to use for unicode... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13111 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13112 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13113 |   enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13114 | else | 
 | 13115 |   enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13116 | fi | 
 | 13117 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13118 |  | 
 | 13119 | if test $enable_unicode = yes | 
 | 13120 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 13121 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13122 |   case "$have_ucs4_tcl" in | 
 | 13123 |   yes) enable_unicode="ucs4" | 
 | 13124 |        ;; | 
 | 13125 |   *)   enable_unicode="ucs2" | 
 | 13126 |        ;; | 
 | 13127 |   esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13128 | fi | 
 | 13129 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 13130 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13131 | case "$enable_unicode" in | 
 | 13132 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13133 |       $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13134 |  | 
 | 13135 |       ;; | 
 | 13136 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13137 |       $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13138 |  | 
 | 13139 |       ;; | 
| Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 13140 | no)   ;;      # To allow --disable-unicode | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13141 | *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13142 | esac | 
 | 13143 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13144 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 |  | 
 | 13146 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13147 | if test "$enable_unicode" = "no" | 
 | 13148 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13149 |   UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13150 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
 | 13151 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13152 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13153 |   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13155 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13156 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13157 |  | 
 | 13158 |   # wchar_t is only usable if it maps to an unsigned type | 
 | 13159 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13160 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13161 |   then | 
 | 13162 |     PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13163 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13164 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13165 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13166 |     $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13167 |  | 
 | 13168 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 13169 |   then | 
 | 13170 |        PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13171 |        $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13172 |  | 
 | 13173 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 13174 |   then | 
 | 13175 |        PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13176 |        $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13177 |  | 
 | 13178 |   else | 
 | 13179 |        PY_UNICODE_TYPE="no type found" | 
 | 13180 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13181 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 13182 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13183 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13184 |  | 
 | 13185 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13186 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 13187 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13188 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13189 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13190 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13191 |   ac_cv_c_bigendian=unknown | 
 | 13192 |     # See if we're dealing with a universal compiler. | 
 | 13193 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13194 | /* end confdefs.h.  */ | 
 | 13195 | #ifndef __APPLE_CC__ | 
 | 13196 | 	       not a universal capable compiler | 
 | 13197 | 	     #endif | 
 | 13198 | 	     typedef int dummy; | 
 | 13199 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13200 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13201 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13202 |  | 
 | 13203 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 13204 | 	# there are at least two -arch flags with different values. | 
 | 13205 | 	ac_arch= | 
 | 13206 | 	ac_prev= | 
 | 13207 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 13208 | 	 if test -n "$ac_prev"; then | 
 | 13209 | 	   case $ac_word in | 
 | 13210 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 13211 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 13212 | 		 ac_arch=$ac_word | 
 | 13213 | 	       else | 
 | 13214 | 		 ac_cv_c_bigendian=universal | 
 | 13215 | 		 break | 
 | 13216 | 	       fi | 
 | 13217 | 	       ;; | 
 | 13218 | 	   esac | 
 | 13219 | 	   ac_prev= | 
 | 13220 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 13221 | 	   ac_prev=arch | 
 | 13222 | 	 fi | 
 | 13223 |        done | 
 | 13224 | fi | 
 | 13225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13226 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13227 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 13228 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13229 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13230 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13231 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13232 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | int | 
 | 13234 | main () | 
 | 13235 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13236 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 13237 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 13238 | 		     && LITTLE_ENDIAN) | 
 | 13239 | 	      bogus endian macros | 
 | 13240 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 |  | 
 | 13242 |   ; | 
 | 13243 |   return 0; | 
 | 13244 | } | 
 | 13245 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13246 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13247 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13248 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13249 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13250 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13251 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13252 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | int | 
 | 13254 | main () | 
 | 13255 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13256 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13257 | 		 not big endian | 
 | 13258 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 |  | 
 | 13260 |   ; | 
 | 13261 |   return 0; | 
 | 13262 | } | 
 | 13263 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13264 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13265 |   ac_cv_c_bigendian=yes | 
 | 13266 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13267 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13268 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13270 | fi | 
 | 13271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13272 |     fi | 
 | 13273 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13274 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 13275 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13277 | #include <limits.h> | 
 | 13278 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | int | 
 | 13280 | main () | 
 | 13281 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13282 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 13283 | 	      bogus endian macros | 
 | 13284 | 	     #endif | 
 | 13285 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 |   ; | 
 | 13287 |   return 0; | 
 | 13288 | } | 
 | 13289 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13290 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13291 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 13292 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13293 | /* end confdefs.h.  */ | 
 | 13294 | #include <limits.h> | 
 | 13295 |  | 
 | 13296 | int | 
 | 13297 | main () | 
 | 13298 | { | 
 | 13299 | #ifndef _BIG_ENDIAN | 
 | 13300 | 		 not big endian | 
 | 13301 | 		#endif | 
 | 13302 |  | 
 | 13303 |   ; | 
 | 13304 |   return 0; | 
 | 13305 | } | 
 | 13306 | _ACEOF | 
 | 13307 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13308 |   ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13309 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13310 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13313 | fi | 
 | 13314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13315 |     fi | 
 | 13316 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13317 |       # Compile a test program. | 
 | 13318 |       if test "$cross_compiling" = yes; then : | 
 | 13319 |   # Try to guess by grepping values from an object file. | 
 | 13320 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13321 | /* end confdefs.h.  */ | 
 | 13322 | short int ascii_mm[] = | 
 | 13323 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 13324 | 		short int ascii_ii[] = | 
 | 13325 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 13326 | 		int use_ascii (int i) { | 
 | 13327 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 13328 | 		} | 
 | 13329 | 		short int ebcdic_ii[] = | 
 | 13330 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 13331 | 		short int ebcdic_mm[] = | 
 | 13332 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 13333 | 		int use_ebcdic (int i) { | 
 | 13334 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 13335 | 		} | 
 | 13336 | 		extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13337 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13338 | int | 
 | 13339 | main () | 
 | 13340 | { | 
 | 13341 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 13342 |   ; | 
 | 13343 |   return 0; | 
 | 13344 | } | 
 | 13345 | _ACEOF | 
 | 13346 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13347 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 13348 | 	      ac_cv_c_bigendian=yes | 
 | 13349 | 	    fi | 
 | 13350 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 13351 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 13352 | 		ac_cv_c_bigendian=no | 
 | 13353 | 	      else | 
 | 13354 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 13355 | 		ac_cv_c_bigendian=unknown | 
 | 13356 | 	      fi | 
 | 13357 | 	    fi | 
 | 13358 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13359 | 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] | 13360 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13361 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13362 | /* end confdefs.h.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13363 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | int | 
 | 13365 | main () | 
 | 13366 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13367 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13368 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 13369 | 	     union | 
 | 13370 | 	     { | 
 | 13371 | 	       long int l; | 
 | 13372 | 	       char c[sizeof (long int)]; | 
 | 13373 | 	     } u; | 
 | 13374 | 	     u.l = 1; | 
 | 13375 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13376 |  | 
 | 13377 |   ; | 
 | 13378 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13379 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13381 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13382 |   ac_cv_c_bigendian=no | 
 | 13383 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13384 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13385 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13386 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13387 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13388 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13389 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13390 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 13393 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 13394 |  case $ac_cv_c_bigendian in #( | 
 | 13395 |    yes) | 
 | 13396 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 13397 | ;; #( | 
 | 13398 |    no) | 
 | 13399 |       ;; #( | 
 | 13400 |    universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13401 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13402 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13403 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13404 |      ;; #( | 
 | 13405 |    *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13406 |      as_fn_error $? "unknown endianness | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13407 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13408 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13409 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13410 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13411 | # Check whether right shifting a negative integer extends the sign bit | 
 | 13412 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 13414 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13415 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13416 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13417 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13419 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13420 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13421 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13422 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13423 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13424 |  | 
 | 13425 | int main() | 
 | 13426 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13427 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13428 | } | 
 | 13429 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13431 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13432 |   ac_cv_rshift_extends_sign=yes | 
 | 13433 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13434 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13435 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13437 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13438 | fi | 
 | 13439 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13440 | fi | 
 | 13441 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 13443 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13444 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13445 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13447 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13448 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13449 | fi | 
 | 13450 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13451 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 13453 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13454 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13455 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13456 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13459 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13460 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13461 | int | 
 | 13462 | main () | 
 | 13463 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13464 |  | 
 | 13465 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 13466 | 	flockfile(f); | 
 | 13467 | 	getc_unlocked(f); | 
 | 13468 | 	funlockfile(f); | 
 | 13469 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 |   ; | 
 | 13471 |   return 0; | 
 | 13472 | } | 
 | 13473 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13474 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13475 |   ac_cv_have_getc_unlocked=yes | 
 | 13476 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13477 |   ac_cv_have_getc_unlocked=no | 
 | 13478 | fi | 
 | 13479 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13480 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13481 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13482 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 13484 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13485 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 13486 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13488 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13489 |  | 
 | 13490 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13491 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13492 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13493 | # save the value of LIBS so we don't actually link Python with readline | 
 | 13494 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13495 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13496 | # On some systems we need to link readline to a termcap compatible | 
 | 13497 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 13498 | # with setup.py. | 
 | 13499 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 13501 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13502 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 13503 |   if test -z "$py_libtermcap"; then | 
 | 13504 |     READLINE_LIBS="-lreadline" | 
 | 13505 |   else | 
 | 13506 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 13507 |   fi | 
 | 13508 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13509 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13510 | /* end confdefs.h.  */ | 
 | 13511 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13512 | /* Override any GCC internal prototype to avoid an error. | 
 | 13513 |    Use char because int might match the return type of a GCC | 
 | 13514 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13515 | #ifdef __cplusplus | 
 | 13516 | extern "C" | 
 | 13517 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13518 | char readline (); | 
 | 13519 | int | 
 | 13520 | main () | 
 | 13521 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13522 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13523 |   ; | 
 | 13524 |   return 0; | 
 | 13525 | } | 
 | 13526 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13527 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13528 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13529 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13530 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13531 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13532 |   if test $py_cv_lib_readline = yes; then | 
 | 13533 |     break | 
 | 13534 |   fi | 
 | 13535 | done | 
 | 13536 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 13537 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13538 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13539 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 13540 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13541 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13542 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 13543 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13544 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13545 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13546 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13547 | fi | 
 | 13548 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13549 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 13551 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13552 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13553 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13554 | else | 
 | 13555 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13556 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13558 | /* end confdefs.h.  */ | 
 | 13559 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13560 | /* Override any GCC internal prototype to avoid an error. | 
 | 13561 |    Use char because int might match the return type of a GCC | 
 | 13562 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13563 | #ifdef __cplusplus | 
 | 13564 | extern "C" | 
 | 13565 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13566 | char rl_callback_handler_install (); | 
 | 13567 | int | 
 | 13568 | main () | 
 | 13569 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13570 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13571 |   ; | 
 | 13572 |   return 0; | 
 | 13573 | } | 
 | 13574 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13575 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13576 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 13577 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13578 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13579 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13580 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13581 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13582 | LIBS=$ac_check_lib_save_LIBS | 
 | 13583 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 13585 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13586 | 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] | 13587 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13588 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13589 |  | 
 | 13590 | fi | 
 | 13591 |  | 
 | 13592 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13593 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13595 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13596 | #include <readline/readline.h> | 
 | 13597 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13598 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13599 |   have_readline=yes | 
 | 13600 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13601 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13602 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13603 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13604 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13605 | if test $have_readline = yes | 
 | 13606 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13607 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13608 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13609 | #include <readline/readline.h> | 
 | 13610 |  | 
 | 13611 | _ACEOF | 
 | 13612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13613 |   $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] | 13614 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13615 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13616 |  | 
 | 13617 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13618 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13619 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13620 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13621 | /* end confdefs.h.  */ | 
 | 13622 | #include <readline/readline.h> | 
 | 13623 |  | 
 | 13624 | _ACEOF | 
 | 13625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13626 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13627 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13628 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13629 |  | 
 | 13630 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13631 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13632 |  | 
 | 13633 | fi | 
 | 13634 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13635 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 13637 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13638 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13639 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13640 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13642 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13644 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13646 | /* Override any GCC internal prototype to avoid an error. | 
 | 13647 |    Use char because int might match the return type of a GCC | 
 | 13648 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13649 | #ifdef __cplusplus | 
 | 13650 | extern "C" | 
 | 13651 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13653 | int | 
 | 13654 | main () | 
 | 13655 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13656 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13657 |   ; | 
 | 13658 |   return 0; | 
 | 13659 | } | 
 | 13660 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13661 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13663 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13664 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13665 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13666 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13667 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | LIBS=$ac_check_lib_save_LIBS | 
 | 13669 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 13671 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13672 | 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] | 13673 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13674 | $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] | 13675 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13676 | fi | 
 | 13677 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13678 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13679 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 13681 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13682 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13683 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13684 | else | 
 | 13685 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13686 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13688 | /* end confdefs.h.  */ | 
 | 13689 |  | 
 | 13690 | /* Override any GCC internal prototype to avoid an error. | 
 | 13691 |    Use char because int might match the return type of a GCC | 
 | 13692 |    builtin and then its argument prototype would still apply.  */ | 
 | 13693 | #ifdef __cplusplus | 
 | 13694 | extern "C" | 
 | 13695 | #endif | 
 | 13696 | char rl_completion_display_matches_hook (); | 
 | 13697 | int | 
 | 13698 | main () | 
 | 13699 | { | 
 | 13700 | return rl_completion_display_matches_hook (); | 
 | 13701 |   ; | 
 | 13702 |   return 0; | 
 | 13703 | } | 
 | 13704 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13705 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13706 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13707 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13708 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13709 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13710 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13711 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13712 | LIBS=$ac_check_lib_save_LIBS | 
 | 13713 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13715 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13716 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13717 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13718 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13719 |  | 
 | 13720 | fi | 
 | 13721 |  | 
 | 13722 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13723 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13725 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13726 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13727 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13728 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13729 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13730 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13732 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13733 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13734 | /* Override any GCC internal prototype to avoid an error. | 
 | 13735 |    Use char because int might match the return type of a GCC | 
 | 13736 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | #ifdef __cplusplus | 
 | 13738 | extern "C" | 
 | 13739 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13740 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | int | 
 | 13742 | main () | 
 | 13743 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13744 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 |   ; | 
 | 13746 |   return 0; | 
 | 13747 | } | 
 | 13748 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13749 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13752 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13753 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13754 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13755 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13756 | LIBS=$ac_check_lib_save_LIBS | 
 | 13757 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13759 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13760 | 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] | 13761 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13762 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13763 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13764 | fi | 
 | 13765 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13766 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13767 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13769 | /* end confdefs.h.  */ | 
 | 13770 | #include <readline/readline.h> | 
 | 13771 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13772 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13773 |   have_readline=yes | 
 | 13774 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13775 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13776 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13777 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13778 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13779 | if test $have_readline = yes | 
 | 13780 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13781 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13782 | /* end confdefs.h.  */ | 
 | 13783 | #include <readline/readline.h> | 
 | 13784 |  | 
 | 13785 | _ACEOF | 
 | 13786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13787 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13788 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13789 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13790 |  | 
 | 13791 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13792 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13793 |  | 
 | 13794 | fi | 
 | 13795 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13796 | # End of readline checks: restore LIBS | 
 | 13797 | LIBS=$LIBS_no_readline | 
 | 13798 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13800 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13801 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13802 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13803 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13805 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13806 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13807 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13808 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13809 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13810 |  | 
 | 13811 | int main() | 
 | 13812 | { | 
 | 13813 | 	int val1 = nice(1); | 
 | 13814 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13815 | 		exit(0); | 
 | 13816 | 	exit(1); | 
 | 13817 | } | 
 | 13818 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13819 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13820 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13821 |   ac_cv_broken_nice=yes | 
 | 13822 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13823 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13824 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13826 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13827 | fi | 
 | 13828 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13829 | fi | 
 | 13830 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 13832 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13833 | if test "$ac_cv_broken_nice" = yes | 
 | 13834 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13835 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13836 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13837 |  | 
 | 13838 | fi | 
 | 13839 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 13841 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13842 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13843 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13844 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13845 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13846 |   ac_cv_broken_poll=no | 
 | 13847 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13848 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13849 | /* end confdefs.h.  */ | 
 | 13850 |  | 
 | 13851 | #include <poll.h> | 
 | 13852 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13853 | int main() | 
 | 13854 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13855 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13856 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13857 |  | 
 | 13858 |     close (42); | 
 | 13859 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13860 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13861 |     if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13862 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13863 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13864 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13865 |     else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13866 |         return 1; | 
 | 13867 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13868 |  | 
 | 13869 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13870 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13871 |   ac_cv_broken_poll=yes | 
 | 13872 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13873 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13874 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13875 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13876 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13877 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13878 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13879 | fi | 
 | 13880 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 13882 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13883 | if test "$ac_cv_broken_poll" = yes | 
 | 13884 | then | 
 | 13885 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13886 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13887 |  | 
 | 13888 | fi | 
 | 13889 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13890 | # 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] | 13891 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 13892 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13893 | 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] | 13894 | #include <$ac_cv_struct_tm> | 
 | 13895 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13896 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13897 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13898 |  | 
 | 13899 | cat >>confdefs.h <<_ACEOF | 
 | 13900 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 13901 | _ACEOF | 
 | 13902 |  | 
 | 13903 |  | 
 | 13904 | fi | 
 | 13905 |  | 
 | 13906 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 13907 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13908 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13909 |  | 
 | 13910 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13911 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 13912 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13913 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13914 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13915 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13916 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13917 | fi | 
 | 13918 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13919 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13920 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13921 | _ACEOF | 
 | 13922 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13923 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 13924 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13925 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13926 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13927 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13928 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13929 | /* end confdefs.h.  */ | 
 | 13930 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13931 | #if !HAVE_DECL_TZNAME | 
 | 13932 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13933 | #endif | 
 | 13934 |  | 
 | 13935 | int | 
 | 13936 | main () | 
 | 13937 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13938 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13939 |   ; | 
 | 13940 |   return 0; | 
 | 13941 | } | 
 | 13942 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13943 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13944 |   ac_cv_var_tzname=yes | 
 | 13945 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13946 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13947 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13948 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13949 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13950 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 13952 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13953 |   if test $ac_cv_var_tzname = yes; then | 
 | 13954 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13955 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13956 |  | 
 | 13957 |   fi | 
 | 13958 | fi | 
 | 13959 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13960 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13961 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 13963 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13964 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13965 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13966 | else | 
 | 13967 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13968 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13969 |   ac_cv_working_tzset=no | 
 | 13970 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13971 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13972 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13973 |  | 
 | 13974 | #include <stdlib.h> | 
 | 13975 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13976 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13977 |  | 
 | 13978 | #if HAVE_TZNAME | 
 | 13979 | extern char *tzname[]; | 
 | 13980 | #endif | 
 | 13981 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13982 | int main() | 
 | 13983 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13984 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 13985 | 	   do 'something' with localtime, but it works as documented | 
 | 13986 | 	   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] | 13987 | 	   This includes making sure that tzname is set properly if | 
 | 13988 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 13989 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13990 |  | 
 | 13991 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13992 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13993 | 	*/ | 
 | 13994 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13995 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13996 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 13997 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13998 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13999 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14000 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 14001 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14002 | #if HAVE_TZNAME | 
 | 14003 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 14004 | 	if (strcmp(tzname[0], "UTC") || | 
 | 14005 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 14006 | 	    exit(1); | 
 | 14007 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14008 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14009 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14010 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14011 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14012 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14013 | #if HAVE_TZNAME | 
 | 14014 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 14015 | 	    exit(1); | 
 | 14016 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14017 |  | 
 | 14018 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 14019 | 	tzset(); | 
 | 14020 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 14021 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14022 | #if HAVE_TZNAME | 
 | 14023 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 14024 | 	    exit(1); | 
 | 14025 | #endif | 
 | 14026 |  | 
 | 14027 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14028 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 14029 | 	    exit(1); | 
 | 14030 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 14031 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14032 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14033 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14034 | 	exit(0); | 
 | 14035 | } | 
 | 14036 |  | 
 | 14037 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14038 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14039 |   ac_cv_working_tzset=yes | 
 | 14040 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14041 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14042 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14044 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14045 | fi | 
 | 14046 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14047 | fi | 
 | 14048 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 14050 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14051 | if test "$ac_cv_working_tzset" = yes | 
 | 14052 | then | 
 | 14053 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14054 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14055 |  | 
 | 14056 | fi | 
 | 14057 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14058 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 14060 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14061 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14062 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14063 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14064 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14065 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14066 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14067 | int | 
 | 14068 | main () | 
 | 14069 | { | 
 | 14070 |  | 
 | 14071 | struct stat st; | 
 | 14072 | st.st_mtim.tv_nsec = 1; | 
 | 14073 |  | 
 | 14074 |   ; | 
 | 14075 |   return 0; | 
 | 14076 | } | 
 | 14077 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14078 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14079 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14080 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14081 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14082 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14084 | fi | 
 | 14085 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 14087 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14088 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 14089 | then | 
 | 14090 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14091 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14092 |  | 
 | 14093 | fi | 
 | 14094 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14095 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 14097 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14098 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14099 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14100 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14101 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14102 | /* end confdefs.h.  */ | 
 | 14103 | #include <sys/stat.h> | 
 | 14104 | int | 
 | 14105 | main () | 
 | 14106 | { | 
 | 14107 |  | 
 | 14108 | struct stat st; | 
 | 14109 | st.st_mtimespec.tv_nsec = 1; | 
 | 14110 |  | 
 | 14111 |   ; | 
 | 14112 |   return 0; | 
 | 14113 | } | 
 | 14114 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14115 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14116 |   ac_cv_stat_tv_nsec2=yes | 
 | 14117 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14118 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14119 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14121 | fi | 
 | 14122 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 14124 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14125 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 14126 | then | 
 | 14127 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14128 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14129 |  | 
 | 14130 | fi | 
 | 14131 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14132 | # first curses configure check | 
 | 14133 | ac_save_cppflags="$CPPFLAGS" | 
 | 14134 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
 | 14135 |  | 
 | 14136 | for ac_header in curses.h ncurses.h | 
 | 14137 | do : | 
 | 14138 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 14139 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 14140 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 14141 |   cat >>confdefs.h <<_ACEOF | 
 | 14142 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 14143 | _ACEOF | 
 | 14144 |  | 
 | 14145 | fi | 
 | 14146 |  | 
 | 14147 | done | 
 | 14148 |  | 
 | 14149 |  | 
 | 14150 | # On Solaris, term.h requires curses.h | 
 | 14151 | for ac_header in term.h | 
 | 14152 | do : | 
 | 14153 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 14154 | #ifdef HAVE_CURSES_H | 
 | 14155 | #include <curses.h> | 
 | 14156 | #endif | 
 | 14157 |  | 
 | 14158 | " | 
 | 14159 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 14160 |   cat >>confdefs.h <<_ACEOF | 
 | 14161 | #define HAVE_TERM_H 1 | 
 | 14162 | _ACEOF | 
 | 14163 |  | 
 | 14164 | fi | 
 | 14165 |  | 
 | 14166 | done | 
 | 14167 |  | 
 | 14168 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14169 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 14171 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14172 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14173 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14174 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14175 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14176 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14177 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | int | 
 | 14179 | main () | 
 | 14180 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14181 |  | 
 | 14182 |   int rtn; | 
 | 14183 |   rtn = mvwdelch(0,0,0); | 
 | 14184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 |   ; | 
 | 14186 |   return 0; | 
 | 14187 | } | 
 | 14188 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14189 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14190 |   ac_cv_mvwdelch_is_expression=yes | 
 | 14191 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14192 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14193 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14195 | fi | 
 | 14196 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 14198 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14199 |  | 
 | 14200 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 14201 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14203 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14204 |  | 
 | 14205 | fi | 
 | 14206 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 14208 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14209 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14210 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14211 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14212 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14213 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14214 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14215 | int | 
 | 14216 | main () | 
 | 14217 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14218 |  | 
 | 14219 |   WINDOW *w; | 
 | 14220 |   w->_flags = 0; | 
 | 14221 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 |   ; | 
 | 14223 |   return 0; | 
 | 14224 | } | 
 | 14225 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14226 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14227 |   ac_cv_window_has_flags=yes | 
 | 14228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14229 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14230 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14232 | fi | 
 | 14233 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 14235 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14236 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14237 |  | 
 | 14238 | if test "$ac_cv_window_has_flags" = yes | 
 | 14239 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14241 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14242 |  | 
 | 14243 | fi | 
 | 14244 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 14246 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 14247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14248 | /* end confdefs.h.  */ | 
 | 14249 | #include <curses.h> | 
 | 14250 | int | 
 | 14251 | main () | 
 | 14252 | { | 
 | 14253 | void *x=is_term_resized | 
 | 14254 |   ; | 
 | 14255 |   return 0; | 
 | 14256 | } | 
 | 14257 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14258 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14259 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14260 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14261 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14262 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14263 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14264 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14265 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14266 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14267 |  | 
 | 14268 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14270 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 14272 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 14273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14274 | /* end confdefs.h.  */ | 
 | 14275 | #include <curses.h> | 
 | 14276 | int | 
 | 14277 | main () | 
 | 14278 | { | 
 | 14279 | void *x=resize_term | 
 | 14280 |   ; | 
 | 14281 |   return 0; | 
 | 14282 | } | 
 | 14283 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14284 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14285 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14286 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14287 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14288 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14289 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14290 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14291 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14292 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14293 |  | 
 | 14294 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14296 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 14298 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 14299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14300 | /* end confdefs.h.  */ | 
 | 14301 | #include <curses.h> | 
 | 14302 | int | 
 | 14303 | main () | 
 | 14304 | { | 
 | 14305 | void *x=resizeterm | 
 | 14306 |   ; | 
 | 14307 |   return 0; | 
 | 14308 | } | 
 | 14309 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14310 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14311 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14312 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14313 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14314 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14315 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14316 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14317 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14318 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14319 |  | 
 | 14320 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14322 | # last curses configure check | 
 | 14323 | CPPFLAGS=$ac_save_cppflags | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14324 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 14326 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 14327 |  | 
 | 14328 | if test "x$cross_compiling" = xyes; then | 
 | 14329 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 14330 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14331 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 14332 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14333 | $as_echo "not set" >&6; } | 
 | 14334 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14335 |   fi | 
 | 14336 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 14337 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14338 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 14339 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14340 | $as_echo "not set" >&6; } | 
 | 14341 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14342 |   fi | 
 | 14343 | fi | 
 | 14344 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14346 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14347 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 14348 |   $as_echo_n "(cached) " >&6 | 
 | 14349 | else | 
 | 14350 |   test "$cross_compiling" = yes && | 
 | 14351 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14352 | if test -r "/dev/ptmx"; then | 
 | 14353 |   ac_cv_file__dev_ptmx=yes | 
 | 14354 | else | 
 | 14355 |   ac_cv_file__dev_ptmx=no | 
 | 14356 | fi | 
 | 14357 | fi | 
 | 14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 14359 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 14360 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14361 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14362 | fi | 
 | 14363 |  | 
 | 14364 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14365 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14366 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14367 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14368 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14370 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14371 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 14372 |   $as_echo_n "(cached) " >&6 | 
 | 14373 | else | 
 | 14374 |   test "$cross_compiling" = yes && | 
 | 14375 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14376 | if test -r "/dev/ptc"; then | 
 | 14377 |   ac_cv_file__dev_ptc=yes | 
 | 14378 | else | 
 | 14379 |   ac_cv_file__dev_ptc=no | 
 | 14380 | fi | 
 | 14381 | fi | 
 | 14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 14383 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 14384 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14385 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14386 | fi | 
 | 14387 |  | 
 | 14388 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14389 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14390 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14391 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14392 | fi | 
 | 14393 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14394 | if test "$have_long_long" = yes | 
 | 14395 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14396 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 14397 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14398 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14399 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14400 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14401 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14402 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 14403 |    if test x$GCC = xyes; then | 
 | 14404 |     save_CFLAGS=$CFLAGS | 
 | 14405 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 14406 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14407 | /* end confdefs.h.  */ | 
 | 14408 |  | 
 | 14409 |         #include <stdio.h> | 
 | 14410 |         #include <stddef.h> | 
 | 14411 |  | 
 | 14412 | int | 
 | 14413 | main () | 
 | 14414 | { | 
 | 14415 |  | 
 | 14416 |       char *buffer; | 
 | 14417 |       sprintf(buffer, "%lld", (long long)123); | 
 | 14418 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 14419 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 14420 |  | 
 | 14421 |   ; | 
 | 14422 |   return 0; | 
 | 14423 | } | 
 | 14424 | _ACEOF | 
 | 14425 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14426 |   ac_cv_have_long_long_format=yes | 
 | 14427 |  | 
 | 14428 | fi | 
 | 14429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14430 |     CFLAGS=$save_CFLAGS | 
 | 14431 |    fi | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14432 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14433 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14434 | /* end confdefs.h.  */ | 
 | 14435 |  | 
 | 14436 |   #include <stdio.h> | 
 | 14437 |   #include <stddef.h> | 
 | 14438 |   #include <string.h> | 
 | 14439 |  | 
 | 14440 |   #ifdef HAVE_SYS_TYPES_H | 
 | 14441 |   #include <sys/types.h> | 
 | 14442 |   #endif | 
 | 14443 |  | 
 | 14444 |   int main() | 
 | 14445 |   { | 
 | 14446 |       char buffer[256]; | 
 | 14447 |  | 
 | 14448 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 14449 |           return 1; | 
 | 14450 |       if (strcmp(buffer, "123")) | 
 | 14451 |           return 1; | 
 | 14452 |  | 
 | 14453 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 14454 |           return 1; | 
 | 14455 |       if (strcmp(buffer, "-123")) | 
 | 14456 |           return 1; | 
 | 14457 |  | 
 | 14458 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 14459 |           return 1; | 
 | 14460 |       if (strcmp(buffer, "123")) | 
 | 14461 |           return 1; | 
 | 14462 |  | 
 | 14463 |       return 0; | 
 | 14464 |   } | 
 | 14465 |  | 
 | 14466 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14467 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14468 |   ac_cv_have_long_long_format=yes | 
 | 14469 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14470 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14471 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14472 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14473 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14474 | fi | 
 | 14475 |  | 
 | 14476 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14477 | fi | 
 | 14478 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14479 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 14480 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14481 | fi | 
 | 14482 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 14483 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14484 | then | 
 | 14485 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14486 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14487 |  | 
 | 14488 | fi | 
 | 14489 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 14490 | if test $ac_sys_system = Darwin | 
 | 14491 | then | 
 | 14492 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 14493 | fi | 
 | 14494 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14495 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 14497 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14498 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14499 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14500 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14501 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14502 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 14503 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14504 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14505 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14506 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14507 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14508 | #include <stdio.h> | 
 | 14509 | #include <stddef.h> | 
 | 14510 | #include <string.h> | 
 | 14511 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14512 | #ifdef HAVE_SYS_TYPES_H | 
 | 14513 | #include <sys/types.h> | 
 | 14514 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14515 |  | 
 | 14516 | #ifdef HAVE_SSIZE_T | 
 | 14517 | typedef ssize_t Py_ssize_t; | 
 | 14518 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 14519 | typedef long Py_ssize_t; | 
 | 14520 | #else | 
 | 14521 | typedef int Py_ssize_t; | 
 | 14522 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14523 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14524 | int main() | 
 | 14525 | { | 
 | 14526 |     char buffer[256]; | 
 | 14527 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14528 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 14529 |        	return 1; | 
 | 14530 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14531 |     if (strcmp(buffer, "123")) | 
 | 14532 | 	return 1; | 
 | 14533 |  | 
 | 14534 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 14535 |        	return 1; | 
 | 14536 |  | 
 | 14537 |     if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14538 | 	return 1; | 
 | 14539 |  | 
 | 14540 |     return 0; | 
 | 14541 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14542 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14543 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14544 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14545 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14546 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14547 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14548 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14550 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 14551 | fi | 
 | 14552 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14553 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 14555 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14556 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14557 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14558 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14559 |  | 
 | 14560 | fi | 
 | 14561 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14562 | 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] | 14563 | #ifdef HAVE_SYS_TYPES_H | 
 | 14564 | #include <sys/types.h> | 
 | 14565 | #endif | 
 | 14566 | #ifdef HAVE_SYS_SOCKET_H | 
 | 14567 | #include <sys/socket.h> | 
 | 14568 | #endif | 
 | 14569 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14570 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14571 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14574 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14575 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14576 |  | 
 | 14577 | fi | 
 | 14578 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14579 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14580 | case $ac_sys_system in | 
 | 14581 | AIX*) | 
 | 14582 |  | 
 | 14583 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 14584 |  ;; | 
 | 14585 | esac | 
 | 14586 |  | 
 | 14587 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14588 |  | 
 | 14589 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14590 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 14591 | do | 
 | 14592 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 14593 | done | 
 | 14594 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14595 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14596 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 14598 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14599 | for dir in $SRCDIRS; do | 
 | 14600 |     if test ! -d $dir; then | 
 | 14601 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14602 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14603 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 14605 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14606 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14607 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14608 | 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] | 14609 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14610 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 14611 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14613 | # This file is a shell script that caches the results of configure | 
 | 14614 | # 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] | 14615 | # scripts and configure runs, see configure's option --config-cache. | 
 | 14616 | # It is not useful on other systems.  If it contains results you don't | 
 | 14617 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14618 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | # config.status only pays attention to the cache file if you give it | 
 | 14620 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14621 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14622 | # `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] | 14623 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 14624 | # following values. | 
 | 14625 |  | 
 | 14626 | _ACEOF | 
 | 14627 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14628 | # The following way of writing the cache mishandles newlines in values, | 
 | 14629 | # but we know of no workaround that is simple, portable, and efficient. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14630 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14631 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 14632 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14633 | ( | 
 | 14634 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 14635 |     eval ac_val=\$$ac_var | 
 | 14636 |     case $ac_val in #( | 
 | 14637 |     *${as_nl}*) | 
 | 14638 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14639 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 14640 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14641 |       esac | 
 | 14642 |       case $ac_var in #( | 
 | 14643 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14644 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 14645 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14646 |       esac ;; | 
 | 14647 |     esac | 
 | 14648 |   done | 
 | 14649 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14651 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 14652 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14653 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 14654 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14656 | 	"s/'/'\\\\''/g; | 
 | 14657 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14658 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 |     *) | 
 | 14660 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14661 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14663 |     esac | | 
 | 14664 |     sort | 
 | 14665 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 |   sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14667 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 |      t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14669 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 14671 |      t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14672 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 14673 |      :end' >>confcache | 
 | 14674 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 14675 |   if test -w "$cache_file"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14676 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14677 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 14678 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14679 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14680 | 	cat confcache >"$cache_file" | 
 | 14681 |       else | 
 | 14682 |         case $cache_file in #( | 
 | 14683 |         */* | ?:*) | 
 | 14684 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14685 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14686 |         *) | 
 | 14687 | 	  mv -f confcache "$cache_file" ;; | 
 | 14688 | 	esac | 
 | 14689 |       fi | 
 | 14690 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14691 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14692 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14693 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14694 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14695 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14696 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14697 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14698 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14699 | # Let make expand exec_prefix. | 
 | 14700 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14701 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14702 | DEFS=-DHAVE_CONFIG_H | 
 | 14703 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14704 | ac_libobjs= | 
 | 14705 | ac_ltlibobjs= | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14706 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14707 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14708 |   # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14709 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14710 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14711 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14712 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14713 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14714 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14715 | done | 
 | 14716 | LIBOBJS=$ac_libobjs | 
 | 14717 |  | 
 | 14718 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14719 |  | 
 | 14720 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14721 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14722 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14723 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14724 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | ac_clean_files_save=$ac_clean_files | 
 | 14726 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 14728 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 14729 | as_write_fail=0 | 
 | 14730 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | #! $SHELL | 
 | 14732 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14733 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14734 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14736 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14738 | ac_cs_recheck=false | 
 | 14739 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14740 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14741 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 14742 | export SHELL | 
 | 14743 | _ASEOF | 
 | 14744 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 14745 | ## -------------------- ## | 
 | 14746 | ## M4sh Initialization. ## | 
 | 14747 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14748 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14749 | # Be more Bourne compatible | 
 | 14750 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14751 | 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] | 14752 |   emulate sh | 
 | 14753 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14754 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14755 |   # is contrary to our usage.  Disable this feature. | 
 | 14756 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14757 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14758 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14759 |   case `(set -o) 2>/dev/null` in #( | 
 | 14760 |   *posix*) : | 
 | 14761 |     set -o posix ;; #( | 
 | 14762 |   *) : | 
 | 14763 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14764 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14766 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14767 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14768 | as_nl=' | 
 | 14769 | ' | 
 | 14770 | export as_nl | 
 | 14771 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 14772 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 14773 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14774 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14775 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 14776 | # but without wasting forks for bash or zsh. | 
 | 14777 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 14778 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14779 |   as_echo='print -r --' | 
 | 14780 |   as_echo_n='print -rn --' | 
 | 14781 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14782 |   as_echo='printf %s\n' | 
 | 14783 |   as_echo_n='printf %s' | 
 | 14784 | else | 
 | 14785 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 14786 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 14787 |     as_echo_n='/usr/ucb/echo -n' | 
 | 14788 |   else | 
 | 14789 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 14790 |     as_echo_n_body='eval | 
 | 14791 |       arg=$1; | 
 | 14792 |       case $arg in #( | 
 | 14793 |       *"$as_nl"*) | 
 | 14794 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 14795 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 14796 |       esac; | 
 | 14797 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 14798 |     ' | 
 | 14799 |     export as_echo_n_body | 
 | 14800 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 14801 |   fi | 
 | 14802 |   export as_echo_body | 
 | 14803 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 14804 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 |  | 
 | 14806 | # The user is always right. | 
 | 14807 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14808 |   PATH_SEPARATOR=: | 
 | 14809 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 14810 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 14811 |       PATH_SEPARATOR=';' | 
 | 14812 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14813 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14814 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14815 |  | 
 | 14816 | # IFS | 
 | 14817 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 14818 | # there to prevent editors from complaining about space-tab. | 
 | 14819 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 14820 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14821 | IFS=" ""	$as_nl" | 
 | 14822 |  | 
 | 14823 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14824 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14825 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14826 |   *[\\/]* ) as_myself=$0 ;; | 
 | 14827 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | for as_dir in $PATH | 
 | 14829 | do | 
 | 14830 |   IFS=$as_save_IFS | 
 | 14831 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14832 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 14833 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14834 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14835 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14836 |      ;; | 
 | 14837 | esac | 
 | 14838 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 14839 | # in which case we are not to be found in the path. | 
 | 14840 | if test "x$as_myself" = x; then | 
 | 14841 |   as_myself=$0 | 
 | 14842 | fi | 
 | 14843 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14844 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 14845 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14846 | fi | 
 | 14847 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14848 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 14849 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 14850 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 14851 | # trigger a bug in pdksh 5.2.14. | 
 | 14852 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 14853 | do eval test x\${$as_var+set} = xset \ | 
 | 14854 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14855 | done | 
 | 14856 | PS1='$ ' | 
 | 14857 | PS2='> ' | 
 | 14858 | PS4='+ ' | 
 | 14859 |  | 
 | 14860 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14861 | LC_ALL=C | 
 | 14862 | export LC_ALL | 
 | 14863 | LANGUAGE=C | 
 | 14864 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14865 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14866 | # CDPATH. | 
 | 14867 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 14868 |  | 
 | 14869 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14870 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 14871 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14872 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 14873 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14874 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14875 | as_fn_error () | 
 | 14876 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14877 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 14878 |   if test "$4"; then | 
 | 14879 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 14880 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14881 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14882 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14883 |   as_fn_exit $as_status | 
 | 14884 | } # as_fn_error | 
 | 14885 |  | 
 | 14886 |  | 
 | 14887 | # as_fn_set_status STATUS | 
 | 14888 | # ----------------------- | 
 | 14889 | # Set $? to STATUS, without forking. | 
 | 14890 | as_fn_set_status () | 
 | 14891 | { | 
 | 14892 |   return $1 | 
 | 14893 | } # as_fn_set_status | 
 | 14894 |  | 
 | 14895 | # as_fn_exit STATUS | 
 | 14896 | # ----------------- | 
 | 14897 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 14898 | as_fn_exit () | 
 | 14899 | { | 
 | 14900 |   set +e | 
 | 14901 |   as_fn_set_status $1 | 
 | 14902 |   exit $1 | 
 | 14903 | } # as_fn_exit | 
 | 14904 |  | 
 | 14905 | # as_fn_unset VAR | 
 | 14906 | # --------------- | 
 | 14907 | # Portably unset VAR. | 
 | 14908 | as_fn_unset () | 
 | 14909 | { | 
 | 14910 |   { eval $1=; unset $1;} | 
 | 14911 | } | 
 | 14912 | as_unset=as_fn_unset | 
 | 14913 | # as_fn_append VAR VALUE | 
 | 14914 | # ---------------------- | 
 | 14915 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 14916 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 14917 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 14918 | # implementations. | 
 | 14919 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 14920 |   eval 'as_fn_append () | 
 | 14921 |   { | 
 | 14922 |     eval $1+=\$2 | 
 | 14923 |   }' | 
 | 14924 | else | 
 | 14925 |   as_fn_append () | 
 | 14926 |   { | 
 | 14927 |     eval $1=\$$1\$2 | 
 | 14928 |   } | 
 | 14929 | fi # as_fn_append | 
 | 14930 |  | 
 | 14931 | # as_fn_arith ARG... | 
 | 14932 | # ------------------ | 
 | 14933 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 14934 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 14935 | # must be portable across $(()) and expr. | 
 | 14936 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 14937 |   eval 'as_fn_arith () | 
 | 14938 |   { | 
 | 14939 |     as_val=$(( $* )) | 
 | 14940 |   }' | 
 | 14941 | else | 
 | 14942 |   as_fn_arith () | 
 | 14943 |   { | 
 | 14944 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 14945 |   } | 
 | 14946 | fi # as_fn_arith | 
 | 14947 |  | 
 | 14948 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14949 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 14950 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 14951 |   as_expr=expr | 
 | 14952 | else | 
 | 14953 |   as_expr=false | 
 | 14954 | fi | 
 | 14955 |  | 
 | 14956 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 14957 |   as_basename=basename | 
 | 14958 | else | 
 | 14959 |   as_basename=false | 
 | 14960 | fi | 
 | 14961 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14962 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 14963 |   as_dirname=dirname | 
 | 14964 | else | 
 | 14965 |   as_dirname=false | 
 | 14966 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14967 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14968 | as_me=`$as_basename -- "$0" || | 
 | 14969 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 14970 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 14971 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14972 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14973 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 14974 | 	    s//\1/ | 
 | 14975 | 	    q | 
 | 14976 | 	  } | 
 | 14977 | 	  /^X\/\(\/\/\)$/{ | 
 | 14978 | 	    s//\1/ | 
 | 14979 | 	    q | 
 | 14980 | 	  } | 
 | 14981 | 	  /^X\/\(\/\).*/{ | 
 | 14982 | 	    s//\1/ | 
 | 14983 | 	    q | 
 | 14984 | 	  } | 
 | 14985 | 	  s/.*/./; q'` | 
 | 14986 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14987 | # Avoid depending upon Character Ranges. | 
 | 14988 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 14989 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 14990 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 14991 | as_cr_digits='0123456789' | 
 | 14992 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14993 |  | 
 | 14994 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14995 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14996 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14997 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14998 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14999 |   xy)  ECHO_C='\c';; | 
 | 15000 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 15001 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15002 |   esac;; | 
 | 15003 | *) | 
 | 15004 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15005 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15006 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15008 | if test -d conf$$.dir; then | 
 | 15009 |   rm -f conf$$.dir/conf$$.file | 
 | 15010 | else | 
 | 15011 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15012 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15013 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15014 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 15015 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 15016 |     as_ln_s='ln -s' | 
 | 15017 |     # ... but there are two gotchas: | 
 | 15018 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 15019 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15020 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15021 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15022 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15023 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 15024 |     as_ln_s=ln | 
 | 15025 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15026 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15027 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15029 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15030 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15031 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 15032 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15034 |  | 
 | 15035 | # as_fn_mkdir_p | 
 | 15036 | # ------------- | 
 | 15037 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 15038 | as_fn_mkdir_p () | 
 | 15039 | { | 
 | 15040 |  | 
 | 15041 |   case $as_dir in #( | 
 | 15042 |   -*) as_dir=./$as_dir;; | 
 | 15043 |   esac | 
 | 15044 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 15045 |     as_dirs= | 
 | 15046 |     while :; do | 
 | 15047 |       case $as_dir in #( | 
 | 15048 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 15049 |       *) as_qdir=$as_dir;; | 
 | 15050 |       esac | 
 | 15051 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 15052 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 15053 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 15054 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 15055 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 15056 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 15057 | $as_echo X"$as_dir" | | 
 | 15058 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15059 | 	    s//\1/ | 
 | 15060 | 	    q | 
 | 15061 | 	  } | 
 | 15062 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15063 | 	    s//\1/ | 
 | 15064 | 	    q | 
 | 15065 | 	  } | 
 | 15066 | 	  /^X\(\/\/\)$/{ | 
 | 15067 | 	    s//\1/ | 
 | 15068 | 	    q | 
 | 15069 | 	  } | 
 | 15070 | 	  /^X\(\/\).*/{ | 
 | 15071 | 	    s//\1/ | 
 | 15072 | 	    q | 
 | 15073 | 	  } | 
 | 15074 | 	  s/.*/./; q'` | 
 | 15075 |       test -d "$as_dir" && break | 
 | 15076 |     done | 
 | 15077 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15078 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15079 |  | 
 | 15080 |  | 
 | 15081 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15082 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15083 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15084 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15085 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15086 |   as_mkdir_p=false | 
 | 15087 | fi | 
 | 15088 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15089 |  | 
 | 15090 | # as_fn_executable_p FILE | 
 | 15091 | # ----------------------- | 
 | 15092 | # Test if FILE is an executable regular file. | 
 | 15093 | as_fn_executable_p () | 
 | 15094 | { | 
 | 15095 |   test -f "$1" && test -x "$1" | 
 | 15096 | } # as_fn_executable_p | 
 | 15097 | as_test_x='test -x' | 
 | 15098 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 |  | 
 | 15100 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15101 | 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] | 15102 |  | 
 | 15103 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15104 | 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] | 15105 |  | 
 | 15106 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15107 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15108 | ## ----------------------------------- ## | 
 | 15109 | ## Main body of $CONFIG_STATUS script. ## | 
 | 15110 | ## ----------------------------------- ## | 
 | 15111 | _ASEOF | 
 | 15112 | 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] | 15113 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15115 | # 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] | 15116 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 | # values after options handling. | 
 | 15118 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15119 | This file was extended by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15120 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 |  | 
 | 15122 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 15123 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 15124 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 15125 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 15126 |   $ $0 $@ | 
 | 15127 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15128 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 15129 | " | 
 | 15130 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | _ACEOF | 
 | 15132 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15133 | case $ac_config_files in *" | 
 | 15134 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 15135 | esac | 
 | 15136 |  | 
 | 15137 | case $ac_config_headers in *" | 
 | 15138 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 15139 | esac | 
 | 15140 |  | 
 | 15141 |  | 
 | 15142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | # Files that config.status was made for. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15144 | config_files="$ac_config_files" | 
 | 15145 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15147 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15149 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15151 | \`$as_me' instantiates files and other configuration actions | 
 | 15152 | from templates according to the current configuration.  Unless the files | 
 | 15153 | 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] | 15154 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15155 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 |  | 
 | 15157 |   -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15158 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15159 |       --config     print configuration, then exit | 
 | 15160 |   -q, --quiet, --silent | 
 | 15161 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 |   -d, --debug      don't remove temporary files | 
 | 15163 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15164 |       --file=FILE[:TEMPLATE] | 
 | 15165 |                    instantiate the configuration file FILE | 
 | 15166 |       --header=FILE[:TEMPLATE] | 
 | 15167 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 |  | 
 | 15169 | Configuration files: | 
 | 15170 | $config_files | 
 | 15171 |  | 
 | 15172 | Configuration headers: | 
 | 15173 | $config_headers | 
 | 15174 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15175 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15176 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15177 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15179 | 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] | 15180 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15181 | python config.status 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15182 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15183 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15185 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | This config.status script is free software; the Free Software Foundation | 
 | 15187 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15188 |  | 
 | 15189 | ac_pwd='$ac_pwd' | 
 | 15190 | srcdir='$srcdir' | 
 | 15191 | INSTALL='$INSTALL' | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15192 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15193 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15194 | _ACEOF | 
 | 15195 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15197 | # 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] | 15198 | ac_need_defaults=: | 
 | 15199 | while test $# != 0 | 
 | 15200 | do | 
 | 15201 |   case $1 in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15202 |   --*=?*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15203 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15204 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15205 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 |     ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15207 |   --*=) | 
 | 15208 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15209 |     ac_optarg= | 
 | 15210 |     ac_shift=: | 
 | 15211 |     ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15212 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15213 |     ac_option=$1 | 
 | 15214 |     ac_optarg=$2 | 
 | 15215 |     ac_shift=shift | 
 | 15216 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15217 |   esac | 
 | 15218 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15219 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15221 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 15222 |     ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15223 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15224 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 15225 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 15226 |     $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15227 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15228 |     debug=: ;; | 
 | 15229 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15230 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15231 |     case $ac_optarg in | 
 | 15232 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15233 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15234 |     esac | 
 | 15235 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15236 |     ac_need_defaults=false;; | 
 | 15237 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15238 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15239 |     case $ac_optarg in | 
 | 15240 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 15241 |     esac | 
 | 15242 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 |     ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15244 |   --he | --h) | 
 | 15245 |     # Conflict between --help and --header | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15246 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15247 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15248 |   --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15249 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15250 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 15251 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 15252 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 |  | 
 | 15254 |   # This is an error. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15255 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15256 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15258 |   *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15259 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 |  | 
 | 15261 |   esac | 
 | 15262 |   shift | 
 | 15263 | done | 
 | 15264 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15265 | ac_configure_extra_args= | 
 | 15266 |  | 
 | 15267 | if $ac_cs_silent; then | 
 | 15268 |   exec 6>/dev/null | 
 | 15269 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 15270 | fi | 
 | 15271 |  | 
 | 15272 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15273 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15274 | if \$ac_cs_recheck; then | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15275 |   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15276 |   shift | 
 | 15277 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 15278 |   CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15279 |   export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15280 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15281 | fi | 
 | 15282 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15285 | exec 5>>config.log | 
 | 15286 | { | 
 | 15287 |   echo | 
 | 15288 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 15289 | ## Running $as_me. ## | 
 | 15290 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15291 |   $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15292 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15294 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15295 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15296 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15298 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15299 |  | 
 | 15300 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | for ac_config_target in $ac_config_targets | 
 | 15302 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15303 |   case $ac_config_target in | 
 | 15304 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 15305 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 15306 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
 | 15307 |     "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 15308 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 15309 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15310 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 15311 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 15312 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15313 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15314 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15315 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 |   esac | 
 | 15317 | done | 
 | 15318 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15319 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 15321 | # then the envvar interface is used.  Set only those that are not. | 
 | 15322 | # We use the long form for the default assignment because of an extremely | 
 | 15323 | # bizarre bug on SunOS 4.1.3. | 
 | 15324 | if $ac_need_defaults; then | 
 | 15325 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 15326 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 15327 | fi | 
 | 15328 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15329 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15330 | # 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] | 15331 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15332 | # Hook for its removal unless debugging. | 
 | 15333 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 15334 | # 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] | 15335 | $debug || | 
 | 15336 | { | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15337 |   tmp= ac_tmp= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15338 |   trap 'exit_status=$? | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15339 |   : "${ac_tmp:=$tmp}" | 
 | 15340 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15341 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15342 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15344 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15345 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15347 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15348 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | }  || | 
 | 15350 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15351 |   tmp=./conf$$-$RANDOM | 
 | 15352 |   (umask 077 && mkdir "$tmp") | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15353 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15354 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15355 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15356 | # Set up the scripts for CONFIG_FILES section. | 
 | 15357 | # No need to generate them if there are no CONFIG_FILES. | 
 | 15358 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15359 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15361 |  | 
 | 15362 | ac_cr=`echo X | tr X '\015'` | 
 | 15363 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 15364 | # But we know of no other shell where ac_cr would be empty at this | 
 | 15365 | # point, so we can use a bashism as a fallback. | 
 | 15366 | if test "x$ac_cr" = x; then | 
 | 15367 |   eval ac_cr=\$\'\\r\' | 
 | 15368 | fi | 
 | 15369 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 15370 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15371 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15372 | else | 
 | 15373 |   ac_cs_awk_cr=$ac_cr | 
 | 15374 | fi | 
 | 15375 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15376 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | _ACEOF | 
 | 15378 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15379 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15380 | { | 
 | 15381 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 15382 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 15383 |   echo "_ACEOF" | 
 | 15384 | } >conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15385 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 15386 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15387 | ac_delim='%!_!# ' | 
 | 15388 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15389 |   . ./conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15390 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15391 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15392 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 15393 |   if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15394 |     break | 
 | 15395 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15396 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15397 |   else | 
 | 15398 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15400 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15401 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15402 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15403 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15404 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15405 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15406 | sed -n ' | 
 | 15407 | h | 
 | 15408 | s/^/S["/; s/!.*/"]=/ | 
 | 15409 | p | 
 | 15410 | g | 
 | 15411 | s/^[^!]*!// | 
 | 15412 | :repl | 
 | 15413 | t repl | 
 | 15414 | s/'"$ac_delim"'$// | 
 | 15415 | t delim | 
 | 15416 | :nl | 
 | 15417 | h | 
 | 15418 | s/\(.\{148\}\)..*/\1/ | 
 | 15419 | t more1 | 
 | 15420 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 15421 | p | 
 | 15422 | n | 
 | 15423 | b repl | 
 | 15424 | :more1 | 
 | 15425 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15426 | p | 
 | 15427 | g | 
 | 15428 | s/.\{148\}// | 
 | 15429 | t nl | 
 | 15430 | :delim | 
 | 15431 | h | 
 | 15432 | s/\(.\{148\}\)..*/\1/ | 
 | 15433 | t more2 | 
 | 15434 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 15435 | p | 
 | 15436 | b | 
 | 15437 | :more2 | 
 | 15438 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15439 | p | 
 | 15440 | g | 
 | 15441 | s/.\{148\}// | 
 | 15442 | t delim | 
 | 15443 | ' <conf$$subs.awk | sed ' | 
 | 15444 | /^[^""]/{ | 
 | 15445 |   N | 
 | 15446 |   s/\n// | 
 | 15447 | } | 
 | 15448 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15449 | rm -f conf$$subs.awk | 
 | 15450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15451 | _ACAWK | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15452 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15453 |   for (key in S) S_is_set[key] = 1 | 
 | 15454 |   FS = "" | 
 | 15455 |  | 
 | 15456 | } | 
 | 15457 | { | 
 | 15458 |   line = $ 0 | 
 | 15459 |   nfields = split(line, field, "@") | 
 | 15460 |   substed = 0 | 
 | 15461 |   len = length(field[1]) | 
 | 15462 |   for (i = 2; i < nfields; i++) { | 
 | 15463 |     key = field[i] | 
 | 15464 |     keylen = length(key) | 
 | 15465 |     if (S_is_set[key]) { | 
 | 15466 |       value = S[key] | 
 | 15467 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 15468 |       len += length(value) + length(field[++i]) | 
 | 15469 |       substed = 1 | 
 | 15470 |     } else | 
 | 15471 |       len += 1 + keylen | 
 | 15472 |   } | 
 | 15473 |  | 
 | 15474 |   print line | 
 | 15475 | } | 
 | 15476 |  | 
 | 15477 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15478 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15480 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 15481 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 15482 | else | 
 | 15483 |   cat | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15484 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15485 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15486 | _ACEOF | 
 | 15487 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15488 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 15489 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15490 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 15491 | # (actually we leave an empty line to preserve line numbers). | 
 | 15492 | if test "x$srcdir" = x.; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15493 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 15494 | h | 
 | 15495 | s/// | 
 | 15496 | s/^/:/ | 
 | 15497 | s/[	 ]*$/:/ | 
 | 15498 | s/:\$(srcdir):/:/g | 
 | 15499 | s/:\${srcdir}:/:/g | 
 | 15500 | s/:@srcdir@:/:/g | 
 | 15501 | s/^:*// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15502 | s/:*$// | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15503 | x | 
 | 15504 | s/\(=[	 ]*\).*/\1/ | 
 | 15505 | G | 
 | 15506 | s/\n// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15507 | s/^[^=]*=[	 ]*$// | 
 | 15508 | }' | 
 | 15509 | fi | 
 | 15510 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15511 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15512 | fi # test -n "$CONFIG_FILES" | 
 | 15513 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15514 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 15515 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 15516 | # This happens for instance with `./config.status Makefile'. | 
 | 15517 | if test -n "$CONFIG_HEADERS"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15518 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15519 | BEGIN { | 
 | 15520 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15521 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15522 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 15523 | # here-document in config.status, that substitutes the proper values into | 
 | 15524 | # config.h.in to produce config.h. | 
 | 15525 |  | 
 | 15526 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 15527 | # handling of long lines. | 
 | 15528 | ac_delim='%!_!# ' | 
 | 15529 | for ac_last_try in false false :; do | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15530 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 15531 |   if test -z "$ac_tt"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15532 |     break | 
 | 15533 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15534 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15535 |   else | 
 | 15536 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 15537 |   fi | 
 | 15538 | done | 
 | 15539 |  | 
 | 15540 | # For the awk script, D is an array of macro values keyed by name, | 
 | 15541 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 15542 | # newline sequences. | 
 | 15543 |  | 
 | 15544 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 15545 | sed -n ' | 
 | 15546 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15547 | t rset | 
 | 15548 | :rset | 
 | 15549 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 15550 | t def | 
 | 15551 | d | 
 | 15552 | :def | 
 | 15553 | s/\\$// | 
 | 15554 | t bsnl | 
 | 15555 | s/["\\]/\\&/g | 
 | 15556 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15557 | D["\1"]=" \3"/p | 
 | 15558 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 15559 | d | 
 | 15560 | :bsnl | 
 | 15561 | s/["\\]/\\&/g | 
 | 15562 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15563 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 15564 | t cont | 
 | 15565 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 15566 | t cont | 
 | 15567 | d | 
 | 15568 | :cont | 
 | 15569 | n | 
 | 15570 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15571 | t clear | 
 | 15572 | :clear | 
 | 15573 | s/\\$// | 
 | 15574 | t bsnlc | 
 | 15575 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 15576 | d | 
 | 15577 | :bsnlc | 
 | 15578 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 15579 | b cont | 
 | 15580 | ' <confdefs.h | sed ' | 
 | 15581 | s/'"$ac_delim"'/"\\\ | 
 | 15582 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15583 |  | 
 | 15584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15585 |   for (key in D) D_is_set[key] = 1 | 
 | 15586 |   FS = "" | 
 | 15587 | } | 
 | 15588 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 15589 |   line = \$ 0 | 
 | 15590 |   split(line, arg, " ") | 
 | 15591 |   if (arg[1] == "#") { | 
 | 15592 |     defundef = arg[2] | 
 | 15593 |     mac1 = arg[3] | 
 | 15594 |   } else { | 
 | 15595 |     defundef = substr(arg[1], 2) | 
 | 15596 |     mac1 = arg[2] | 
 | 15597 |   } | 
 | 15598 |   split(mac1, mac2, "(") #) | 
 | 15599 |   macro = mac2[1] | 
 | 15600 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 15601 |   if (D_is_set[macro]) { | 
 | 15602 |     # Preserve the white space surrounding the "#". | 
 | 15603 |     print prefix "define", macro P[macro] D[macro] | 
 | 15604 |     next | 
 | 15605 |   } else { | 
 | 15606 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 15607 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 15608 |     # on some systems where configure will not decide to define it. | 
 | 15609 |     if (defundef == "undef") { | 
 | 15610 |       print "/*", prefix defundef, macro, "*/" | 
 | 15611 |       next | 
 | 15612 |     } | 
 | 15613 |   } | 
 | 15614 | } | 
 | 15615 | { print } | 
 | 15616 | _ACAWK | 
 | 15617 | _ACEOF | 
 | 15618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15619 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15620 | fi # test -n "$CONFIG_HEADERS" | 
 | 15621 |  | 
 | 15622 |  | 
 | 15623 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 15624 | shift | 
 | 15625 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15626 | do | 
 | 15627 |   case $ac_tag in | 
 | 15628 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 15629 |   esac | 
 | 15630 |   case $ac_mode$ac_tag in | 
 | 15631 |   :[FHL]*:*);; | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15632 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15633 |   :[FH]-) ac_tag=-:-;; | 
 | 15634 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 15635 |   esac | 
 | 15636 |   ac_save_IFS=$IFS | 
 | 15637 |   IFS=: | 
 | 15638 |   set x $ac_tag | 
 | 15639 |   IFS=$ac_save_IFS | 
 | 15640 |   shift | 
 | 15641 |   ac_file=$1 | 
 | 15642 |   shift | 
 | 15643 |  | 
 | 15644 |   case $ac_mode in | 
 | 15645 |   :L) ac_source=$1;; | 
 | 15646 |   :[FH]) | 
 | 15647 |     ac_file_inputs= | 
 | 15648 |     for ac_f | 
 | 15649 |     do | 
 | 15650 |       case $ac_f in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15651 |       -) ac_f="$ac_tmp/stdin";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15652 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 15653 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 15654 | 	 # because $ac_f cannot contain `:'. | 
 | 15655 | 	 test -f "$ac_f" || | 
 | 15656 | 	   case $ac_f in | 
 | 15657 | 	   [\\/$]*) false;; | 
 | 15658 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 15659 | 	   esac || | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15660 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15661 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15662 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 15663 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15664 |     done | 
 | 15665 |  | 
 | 15666 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 15667 |     # use $as_me), people would be surprised to read: | 
 | 15668 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15669 |     configure_input='Generated from '` | 
 | 15670 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15671 | 	`' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15672 |     if test x"$ac_file" != x-; then | 
 | 15673 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15674 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15675 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15676 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15677 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15678 |     case $configure_input in #( | 
 | 15679 |     *\&* | *\|* | *\\* ) | 
 | 15680 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15681 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15682 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15683 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15684 |  | 
 | 15685 |     case $ac_tag in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15686 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15687 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15688 |     esac | 
 | 15689 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 |   esac | 
 | 15691 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15692 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15694 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15695 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15696 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15697 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15698 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15699 | 	    s//\1/ | 
 | 15700 | 	    q | 
 | 15701 | 	  } | 
 | 15702 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15703 | 	    s//\1/ | 
 | 15704 | 	    q | 
 | 15705 | 	  } | 
 | 15706 | 	  /^X\(\/\/\)$/{ | 
 | 15707 | 	    s//\1/ | 
 | 15708 | 	    q | 
 | 15709 | 	  } | 
 | 15710 | 	  /^X\(\/\).*/{ | 
 | 15711 | 	    s//\1/ | 
 | 15712 | 	    q | 
 | 15713 | 	  } | 
 | 15714 | 	  s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15715 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15716 |   ac_builddir=. | 
 | 15717 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15718 | case "$ac_dir" in | 
 | 15719 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15720 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15721 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15722 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15723 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15724 |   case $ac_top_builddir_sub in | 
 | 15725 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15726 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 15727 |   esac ;; | 
 | 15728 | esac | 
 | 15729 | ac_abs_top_builddir=$ac_pwd | 
 | 15730 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 15731 | # for backward compatibility: | 
 | 15732 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15733 |  | 
 | 15734 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15735 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15736 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15737 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 15738 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 15739 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15740 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15741 |     ac_top_srcdir=$srcdir | 
 | 15742 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 15743 |   *) # Relative name. | 
 | 15744 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 15745 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 15746 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15747 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15748 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15749 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15751 |   case $ac_mode in | 
 | 15752 |   :F) | 
 | 15753 |   # | 
 | 15754 |   # CONFIG_FILE | 
 | 15755 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 |  | 
 | 15757 |   case $INSTALL in | 
 | 15758 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15759 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 |   esac | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15761 |   ac_MKDIR_P=$MKDIR_P | 
 | 15762 |   case $MKDIR_P in | 
 | 15763 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 15764 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 15765 |   esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15766 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15767 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15768 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15769 | # If the template does not know about datarootdir, expand it. | 
 | 15770 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 15771 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15772 | ac_sed_dataroot=' | 
 | 15773 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15774 |   p | 
 | 15775 |   q | 
 | 15776 | } | 
 | 15777 | /@datadir@/p | 
 | 15778 | /@docdir@/p | 
 | 15779 | /@infodir@/p | 
 | 15780 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15781 | /@mandir@/p' | 
 | 15782 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15783 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 15784 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15785 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 15786 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15787 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15788 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15789 |   ac_datarootdir_hack=' | 
 | 15790 |   s&@datadir@&$datadir&g | 
 | 15791 |   s&@docdir@&$docdir&g | 
 | 15792 |   s&@infodir@&$infodir&g | 
 | 15793 |   s&@localedir@&$localedir&g | 
 | 15794 |   s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15795 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15796 | esac | 
 | 15797 | _ACEOF | 
 | 15798 |  | 
 | 15799 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 15800 | # Shell code in configure.ac might set extrasub. | 
 | 15801 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15802 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15803 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | $extrasub | 
 | 15805 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15806 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | :t | 
 | 15808 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15809 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15810 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15811 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15812 | s&@srcdir@&$ac_srcdir&;t t | 
 | 15813 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 15814 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 15815 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 15816 | s&@builddir@&$ac_builddir&;t t | 
 | 15817 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 15818 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 15819 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15820 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15821 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15822 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15823 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 15824 |   >$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] | 15825 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15826 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15827 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 15828 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 15829 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15830 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15831 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15832 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15833 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15834 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15835 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 |   case $ac_file in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15837 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 15838 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15839 |   esac \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15840 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15841 |  ;; | 
 | 15842 |   :H) | 
 | 15843 |   # | 
 | 15844 |   # CONFIG_HEADER | 
 | 15845 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15847 |     { | 
 | 15848 |       $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15849 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 15850 |     } >"$ac_tmp/config.h" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15851 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15852 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15853 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 15854 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15856 |       rm -f "$ac_file" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15857 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15858 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15859 |     fi | 
 | 15860 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15861 |     $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15862 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15863 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15865 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15866 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15867 |  | 
 | 15868 |   esac | 
 | 15869 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15870 |  | 
 | 15871 |   case $ac_file$ac_mode in | 
 | 15872 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 15873 |  | 
 | 15874 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15875 | done # for ac_tag | 
 | 15876 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15877 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15878 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | ac_clean_files=$ac_clean_files_save | 
 | 15881 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15882 | test $ac_write_fail = 0 || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15883 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15884 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 |  | 
 | 15886 | # configure is writing to config.log, and then calls config.status. | 
 | 15887 | # config.status does its own redirection, appending to config.log. | 
 | 15888 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 15889 | # by configure, so config.status won't be able to write to it; its | 
 | 15890 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 15891 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 15892 | # appended to by config.status.  When coming back to configure, we | 
 | 15893 | # need to make the FD available again. | 
 | 15894 | if test "$no_create" != yes; then | 
 | 15895 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15896 |   ac_config_status_args= | 
 | 15897 |   test "$silent" = yes && | 
 | 15898 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15899 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15900 |   $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] | 15901 |   exec 5>>config.log | 
 | 15902 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 15903 |   # would make configure fail if this is the last instruction. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15904 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15905 | fi | 
 | 15906 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 15907 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 15908 | $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] | 15909 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15910 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15911 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15912 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15913 | if test ! -f Modules/Setup | 
 | 15914 | then | 
 | 15915 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 15916 | fi | 
 | 15917 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15918 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15919 | if test ! -f Modules/Setup.local | 
 | 15920 | then | 
 | 15921 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 15922 | fi | 
 | 15923 |  | 
 | 15924 | echo "creating Makefile" | 
 | 15925 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 15926 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15927 | 			Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15928 |  | 
 | 15929 | case $ac_sys_system in | 
 | 15930 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15931 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15932 |  | 
 | 15933 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15934 |   See PEP 11 for the gory details. | 
 | 15935 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15936 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15937 |  | 
 | 15938 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15939 |   See PEP 11 for the gory details. | 
 | 15940 |   " >&2;} | 
 | 15941 |   ;; | 
 | 15942 | *) ;; | 
 | 15943 | esac | 
 | 15944 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15945 | mv config.c Modules |