| 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 | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 627 | ENSUREPIP | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 628 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 629 | THREADHEADERS | 
|  | 630 | UNICODE_OBJS | 
|  | 631 | LIBC | 
|  | 632 | LIBM | 
|  | 633 | HAVE_GETHOSTBYNAME | 
|  | 634 | HAVE_GETHOSTBYNAME_R | 
|  | 635 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 636 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 637 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 638 | LIBOBJS | 
|  | 639 | TRUE | 
|  | 640 | MACHDEP_OBJS | 
|  | 641 | DYNLOADFILE | 
|  | 642 | DLINCLDIR | 
|  | 643 | THREADOBJ | 
|  | 644 | LDLAST | 
|  | 645 | USE_THREAD_MODULE | 
|  | 646 | SIGNAL_OBJS | 
|  | 647 | USE_SIGNAL_MODULE | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 648 | TCLTK_LIBS | 
|  | 649 | TCLTK_INCLUDES | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 650 | LIBFFI_INCLUDEDIR | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 651 | PKG_CONFIG_LIBDIR | 
|  | 652 | PKG_CONFIG_PATH | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 653 | PKG_CONFIG | 
|  | 654 | SHLIBS | 
|  | 655 | CFLAGSFORSHARED | 
|  | 656 | LINKFORSHARED | 
|  | 657 | CCSHARED | 
|  | 658 | BLDSHARED | 
|  | 659 | LDCXXSHARED | 
|  | 660 | LDSHARED | 
|  | 661 | SO | 
|  | 662 | LIBTOOL_CRUFT | 
|  | 663 | OTHER_LIBTOOL_OPT | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 664 | LLVM_PROF_FOUND | 
|  | 665 | LLVM_PROF_ERR | 
|  | 666 | LLVM_PROF_FILE | 
|  | 667 | LLVM_PROF_MERGER | 
|  | 668 | PGO_PROF_USE_FLAG | 
|  | 669 | PGO_PROF_GEN_FLAG | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 670 | UNIVERSAL_ARCH_FLAGS | 
|  | 671 | BASECFLAGS | 
|  | 672 | OPT | 
|  | 673 | LN | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 674 | MKDIR_P | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 675 | INSTALL_DATA | 
|  | 676 | INSTALL_SCRIPT | 
|  | 677 | INSTALL_PROGRAM | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 678 | HAS_HG | 
|  | 679 | HGBRANCH | 
|  | 680 | HGTAG | 
|  | 681 | HGVERSION | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 682 | BASECPPFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 683 | SVNVERSION | 
|  | 684 | ARFLAGS | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 685 | ac_ct_AR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 686 | AR | 
|  | 687 | RANLIB | 
|  | 688 | GNULD | 
|  | 689 | LINKCC | 
|  | 690 | RUNSHARED | 
|  | 691 | INSTSONAME | 
|  | 692 | LDLIBRARYDIR | 
|  | 693 | BLDLIBRARY | 
|  | 694 | DLLLIBRARY | 
|  | 695 | LDLIBRARY | 
|  | 696 | LIBRARY | 
|  | 697 | BUILDEXEEXT | 
|  | 698 | EGREP | 
|  | 699 | GREP | 
|  | 700 | CPP | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 701 | MULTIARCH | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 702 | ac_ct_CXX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 703 | MAINCC | 
|  | 704 | CXX | 
|  | 705 | OBJEXT | 
|  | 706 | EXEEXT | 
|  | 707 | ac_ct_CC | 
|  | 708 | CPPFLAGS | 
|  | 709 | LDFLAGS | 
|  | 710 | CFLAGS | 
|  | 711 | CC | 
|  | 712 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 713 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 714 | EXTRAMACHDEPPATH | 
|  | 715 | EXTRAPLATDIR | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 716 | PLATDIR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 717 | SGI_ABI | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 718 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 719 | MACHDEP | 
|  | 720 | FRAMEWORKINSTALLAPPSPREFIX | 
|  | 721 | FRAMEWORKUNIXTOOLSPREFIX | 
|  | 722 | FRAMEWORKALTINSTALLLAST | 
|  | 723 | FRAMEWORKALTINSTALLFIRST | 
|  | 724 | FRAMEWORKINSTALLLAST | 
|  | 725 | FRAMEWORKINSTALLFIRST | 
|  | 726 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 727 | PYTHONFRAMEWORKPREFIX | 
|  | 728 | PYTHONFRAMEWORKDIR | 
|  | 729 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 730 | PYTHONFRAMEWORK | 
|  | 731 | LIPO_32BIT_FLAGS | 
|  | 732 | ARCH_RUN_32BIT | 
|  | 733 | UNIVERSALSDK | 
|  | 734 | CONFIG_ARGS | 
|  | 735 | SOVERSION | 
|  | 736 | VERSION | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 737 | PYTHON_FOR_BUILD | 
|  | 738 | host_os | 
|  | 739 | host_vendor | 
|  | 740 | host_cpu | 
|  | 741 | host | 
|  | 742 | build_os | 
|  | 743 | build_vendor | 
|  | 744 | build_cpu | 
|  | 745 | build | 
| Martin Panter | e9ee317 | 2016-04-23 00:58:44 +0000 | [diff] [blame] | 746 | cross_compiling | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 747 | target_alias | 
|  | 748 | host_alias | 
|  | 749 | build_alias | 
|  | 750 | LIBS | 
|  | 751 | ECHO_T | 
|  | 752 | ECHO_N | 
|  | 753 | ECHO_C | 
|  | 754 | DEFS | 
|  | 755 | mandir | 
|  | 756 | localedir | 
|  | 757 | libdir | 
|  | 758 | psdir | 
|  | 759 | pdfdir | 
|  | 760 | dvidir | 
|  | 761 | htmldir | 
|  | 762 | infodir | 
|  | 763 | docdir | 
|  | 764 | oldincludedir | 
|  | 765 | includedir | 
|  | 766 | localstatedir | 
|  | 767 | sharedstatedir | 
|  | 768 | sysconfdir | 
|  | 769 | datadir | 
|  | 770 | datarootdir | 
|  | 771 | libexecdir | 
|  | 772 | sbindir | 
|  | 773 | bindir | 
|  | 774 | program_transform_name | 
|  | 775 | prefix | 
|  | 776 | exec_prefix | 
|  | 777 | PACKAGE_URL | 
|  | 778 | PACKAGE_BUGREPORT | 
|  | 779 | PACKAGE_STRING | 
|  | 780 | PACKAGE_VERSION | 
|  | 781 | PACKAGE_TARNAME | 
|  | 782 | PACKAGE_NAME | 
|  | 783 | PATH_SEPARATOR | 
|  | 784 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 785 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 786 | ac_user_opts=' | 
|  | 787 | enable_option_checking | 
|  | 788 | enable_universalsdk | 
|  | 789 | with_universal_archs | 
|  | 790 | with_framework_name | 
|  | 791 | enable_framework | 
|  | 792 | with_gcc | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 793 | with_icc | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 794 | with_cxx_main | 
|  | 795 | with_suffix | 
|  | 796 | enable_shared | 
|  | 797 | enable_profiling | 
|  | 798 | with_pydebug | 
|  | 799 | enable_toolbox_glue | 
|  | 800 | with_libs | 
|  | 801 | with_system_expat | 
|  | 802 | with_system_ffi | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 803 | with_tcltk_includes | 
|  | 804 | with_tcltk_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 805 | with_dbmliborder | 
|  | 806 | with_signal_module | 
|  | 807 | with_dec_threads | 
|  | 808 | with_threads | 
|  | 809 | with_thread | 
|  | 810 | with_pth | 
|  | 811 | enable_ipv6 | 
|  | 812 | with_doc_strings | 
|  | 813 | with_tsc | 
|  | 814 | with_pymalloc | 
|  | 815 | with_valgrind | 
|  | 816 | with_wctype_functions | 
|  | 817 | with_fpectl | 
|  | 818 | with_libm | 
|  | 819 | with_libc | 
|  | 820 | enable_big_digits | 
|  | 821 | enable_unicode | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 822 | with_computed_gotos | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 823 | with_ensurepip | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 824 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 825 | ac_precious_vars='build_alias | 
|  | 826 | host_alias | 
|  | 827 | target_alias | 
|  | 828 | CC | 
|  | 829 | CFLAGS | 
|  | 830 | LDFLAGS | 
|  | 831 | LIBS | 
|  | 832 | CPPFLAGS | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 833 | CPP | 
|  | 834 | PKG_CONFIG | 
|  | 835 | PKG_CONFIG_PATH | 
|  | 836 | PKG_CONFIG_LIBDIR' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 838 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 839 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | ac_init_help= | 
|  | 841 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 842 | ac_unrecognized_opts= | 
|  | 843 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 844 | # The variables have the same names as the options, with | 
|  | 845 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 846 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 847 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 848 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | no_recursion= | 
|  | 850 | prefix=NONE | 
|  | 851 | program_prefix=NONE | 
|  | 852 | program_suffix=NONE | 
|  | 853 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 854 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 855 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | x_includes=NONE | 
|  | 859 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 |  | 
|  | 861 | # Installation directory options. | 
|  | 862 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 863 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 864 | # by default will actually change. | 
|  | 865 | # 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] | 866 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 867 | bindir='${exec_prefix}/bin' | 
|  | 868 | sbindir='${exec_prefix}/sbin' | 
|  | 869 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 870 | datarootdir='${prefix}/share' | 
|  | 871 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 872 | sysconfdir='${prefix}/etc' | 
|  | 873 | sharedstatedir='${prefix}/com' | 
|  | 874 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 875 | includedir='${prefix}/include' | 
|  | 876 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 877 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 878 | infodir='${datarootdir}/info' | 
|  | 879 | htmldir='${docdir}' | 
|  | 880 | dvidir='${docdir}' | 
|  | 881 | pdfdir='${docdir}' | 
|  | 882 | psdir='${docdir}' | 
|  | 883 | libdir='${exec_prefix}/lib' | 
|  | 884 | localedir='${datarootdir}/locale' | 
|  | 885 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 886 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 888 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 889 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 890 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 | # If the previous option needs an argument, assign it. | 
|  | 892 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 893 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 894 | ac_prev= | 
|  | 895 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 896 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 898 | case $ac_option in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 899 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 900 | *=)   ac_optarg= ;; | 
|  | 901 | *)    ac_optarg=yes ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 902 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 904 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 905 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 906 | case $ac_dashdash$ac_option in | 
|  | 907 | --) | 
|  | 908 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 911 | ac_prev=bindir ;; | 
|  | 912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 913 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 |  | 
|  | 915 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 918 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 922 | ac_prev=cache_file ;; | 
|  | 923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 925 | cache_file=$ac_optarg ;; | 
|  | 926 |  | 
|  | 927 | --config-cache | -C) | 
|  | 928 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 929 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 930 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 931 | ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 936 | | --dataroo | --dataro | --datar) | 
|  | 937 | ac_prev=datarootdir ;; | 
|  | 938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 940 | datarootdir=$ac_optarg ;; | 
|  | 941 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 942 | -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 944 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 946 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 947 | ac_useropt_orig=$ac_useropt | 
|  | 948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 949 | case $ac_user_opts in | 
|  | 950 | *" | 
|  | 951 | "enable_$ac_useropt" | 
|  | 952 | "*) ;; | 
|  | 953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 954 | ac_unrecognized_sep=', ';; | 
|  | 955 | esac | 
|  | 956 | eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 957 |  | 
|  | 958 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 959 | ac_prev=docdir ;; | 
|  | 960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 961 | docdir=$ac_optarg ;; | 
|  | 962 |  | 
|  | 963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 964 | ac_prev=dvidir ;; | 
|  | 965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 966 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 |  | 
|  | 968 | -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 970 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 972 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 973 | ac_useropt_orig=$ac_useropt | 
|  | 974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 975 | case $ac_user_opts in | 
|  | 976 | *" | 
|  | 977 | "enable_$ac_useropt" | 
|  | 978 | "*) ;; | 
|  | 979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 980 | ac_unrecognized_sep=', ';; | 
|  | 981 | esac | 
|  | 982 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 983 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 986 | | --exec | --exe | --ex) | 
|  | 987 | ac_prev=exec_prefix ;; | 
|  | 988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 990 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 992 |  | 
|  | 993 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | # Obsolete; use --with-gas. | 
|  | 995 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 996 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 997 | -help | --help | --hel | --he | -h) | 
|  | 998 | ac_init_help=long ;; | 
|  | 999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1000 | ac_init_help=recursive ;; | 
|  | 1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1002 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 |  | 
|  | 1004 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1010 | ac_prev=htmldir ;; | 
|  | 1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1012 | | --ht=*) | 
|  | 1013 | htmldir=$ac_optarg ;; | 
|  | 1014 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1015 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1016 | | --includ | --inclu | --incl | --inc) | 
|  | 1017 | ac_prev=includedir ;; | 
|  | 1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 |  | 
|  | 1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1023 | ac_prev=infodir ;; | 
|  | 1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 |  | 
|  | 1027 | -libdir | --libdir | --libdi | --libd) | 
|  | 1028 | ac_prev=libdir ;; | 
|  | 1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 |  | 
|  | 1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1033 | | --libexe | --libex | --libe) | 
|  | 1034 | ac_prev=libexecdir ;; | 
|  | 1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1036 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1037 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1038 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1039 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1040 | ac_prev=localedir ;; | 
|  | 1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1042 | localedir=$ac_optarg ;; | 
|  | 1043 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1046 | ac_prev=localstatedir ;; | 
|  | 1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 |  | 
|  | 1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1052 | ac_prev=mandir ;; | 
|  | 1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1057 | # Obsolete; use --without-fp. | 
|  | 1058 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 |  | 
|  | 1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1061 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | no_create=yes ;; | 
|  | 1063 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1066 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1070 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1071 | ac_prev=oldincludedir ;; | 
|  | 1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1075 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1076 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1078 | ac_prev=prefix ;; | 
|  | 1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1080 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 |  | 
|  | 1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1083 | | --program-pre | --program-pr | --program-p) | 
|  | 1084 | ac_prev=program_prefix ;; | 
|  | 1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1087 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 |  | 
|  | 1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1090 | | --program-suf | --program-su | --program-s) | 
|  | 1091 | ac_prev=program_suffix ;; | 
|  | 1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 |  | 
|  | 1096 | -program-transform-name | --program-transform-name \ | 
|  | 1097 | | --program-transform-nam | --program-transform-na \ | 
|  | 1098 | | --program-transform-n | --program-transform- \ | 
|  | 1099 | | --program-transform | --program-transfor \ | 
|  | 1100 | | --program-transfo | --program-transf \ | 
|  | 1101 | | --program-trans | --program-tran \ | 
|  | 1102 | | --progr-tra | --program-tr | --program-t) | 
|  | 1103 | ac_prev=program_transform_name ;; | 
|  | 1104 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1105 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1106 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1107 | | --program-transform=* | --program-transfor=* \ | 
|  | 1108 | | --program-transfo=* | --program-transf=* \ | 
|  | 1109 | | --program-trans=* | --program-tran=* \ | 
|  | 1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1112 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1114 | ac_prev=pdfdir ;; | 
|  | 1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1116 | pdfdir=$ac_optarg ;; | 
|  | 1117 |  | 
|  | 1118 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1119 | ac_prev=psdir ;; | 
|  | 1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1121 | psdir=$ac_optarg ;; | 
|  | 1122 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1124 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1125 | silent=yes ;; | 
|  | 1126 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1128 | ac_prev=sbindir ;; | 
|  | 1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1130 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1131 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1132 |  | 
|  | 1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1135 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1136 | | --sha | --sh) | 
|  | 1137 | ac_prev=sharedstatedir ;; | 
|  | 1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1141 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1143 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1144 | -site | --site | --sit) | 
|  | 1145 | ac_prev=site ;; | 
|  | 1146 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1148 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1150 | ac_prev=srcdir ;; | 
|  | 1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1153 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1155 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1156 | ac_prev=sysconfdir ;; | 
|  | 1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1159 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1160 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1165 |  | 
|  | 1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1167 | verbose=yes ;; | 
|  | 1168 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1170 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1171 |  | 
|  | 1172 | -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1174 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1176 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1177 | ac_useropt_orig=$ac_useropt | 
|  | 1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1179 | case $ac_user_opts in | 
|  | 1180 | *" | 
|  | 1181 | "with_$ac_useropt" | 
|  | 1182 | "*) ;; | 
|  | 1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1184 | ac_unrecognized_sep=', ';; | 
|  | 1185 | esac | 
|  | 1186 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 |  | 
|  | 1188 | -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1190 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1192 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1193 | ac_useropt_orig=$ac_useropt | 
|  | 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1195 | case $ac_user_opts in | 
|  | 1196 | *" | 
|  | 1197 | "with_$ac_useropt" | 
|  | 1198 | "*) ;; | 
|  | 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1200 | ac_unrecognized_sep=', ';; | 
|  | 1201 | esac | 
|  | 1202 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1203 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | --x) | 
|  | 1205 | # Obsolete; use --with-x. | 
|  | 1206 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1207 |  | 
|  | 1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1209 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1210 | ac_prev=x_includes ;; | 
|  | 1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1213 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 |  | 
|  | 1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1217 | ac_prev=x_libraries ;; | 
|  | 1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1219 | | --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] | 1220 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1222 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1223 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1224 | ;; | 
|  | 1225 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1226 | *=*) | 
|  | 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1228 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1229 | case $ac_envvar in #( | 
|  | 1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1231 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1232 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1233 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1234 | export $ac_envvar ;; | 
|  | 1235 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1236 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1238 | $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] | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1241 | : "${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] | 1242 | ;; | 
|  | 1243 |  | 
|  | 1244 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1245 | done | 
|  | 1246 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1249 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1250 | fi | 
|  | 1251 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1252 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1253 | case $enable_option_checking in | 
|  | 1254 | no) ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1255 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1256 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1257 | esac | 
|  | 1258 | fi | 
|  | 1259 |  | 
|  | 1260 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1261 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1264 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1265 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1266 | eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1267 | # Remove trailing slashes. | 
|  | 1268 | case $ac_val in | 
|  | 1269 | */ ) | 
|  | 1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1271 | eval $ac_var=\$ac_val;; | 
|  | 1272 | esac | 
|  | 1273 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1274 | case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1275 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1277 | esac | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1278 | 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] | 1279 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1280 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1282 | # used to hold the argument of --host etc. | 
|  | 1283 | # FIXME: To remove some day. | 
|  | 1284 | build=$build_alias | 
|  | 1285 | host=$host_alias | 
|  | 1286 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1288 | # FIXME: To remove some day. | 
|  | 1289 | if test "x$host_alias" != x; then | 
|  | 1290 | if test "x$build_alias" = x; then | 
|  | 1291 | cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1292 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1293 | cross_compiling=yes | 
|  | 1294 | fi | 
|  | 1295 | fi | 
|  | 1296 |  | 
|  | 1297 | ac_tool_prefix= | 
|  | 1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1299 |  | 
|  | 1300 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1301 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1302 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1304 | ac_ls_di=`ls -di .` && | 
|  | 1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1306 | as_fn_error $? "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1308 | 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] | 1309 |  | 
|  | 1310 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 | # Find the source files, if location was not specified. | 
|  | 1312 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1313 | ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1314 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1315 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1318 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1320 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1322 | s//\1/ | 
|  | 1323 | q | 
|  | 1324 | } | 
|  | 1325 | /^X\(\/\/\)[^/].*/{ | 
|  | 1326 | s//\1/ | 
|  | 1327 | q | 
|  | 1328 | } | 
|  | 1329 | /^X\(\/\/\)$/{ | 
|  | 1330 | s//\1/ | 
|  | 1331 | q | 
|  | 1332 | } | 
|  | 1333 | /^X\(\/\).*/{ | 
|  | 1334 | s//\1/ | 
|  | 1335 | q | 
|  | 1336 | } | 
|  | 1337 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1338 | srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1340 | srcdir=.. | 
|  | 1341 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1342 | else | 
|  | 1343 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1344 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1347 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1348 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1350 | ac_abs_confdir=`( | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1351 | 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] | 1352 | pwd)` | 
|  | 1353 | # When building in place, set srcdir=. | 
|  | 1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1355 | srcdir=. | 
|  | 1356 | fi | 
|  | 1357 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1358 | # Double slashes in file names in object file debugging info | 
|  | 1359 | # mess up M-x gdb in Emacs. | 
|  | 1360 | case $srcdir in | 
|  | 1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1362 | esac | 
|  | 1363 | for ac_var in $ac_precious_vars; do | 
|  | 1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1365 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1368 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1369 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1370 | # | 
|  | 1371 | # Report the --help message. | 
|  | 1372 | # | 
|  | 1373 | if test "$ac_init_help" = "long"; then | 
|  | 1374 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1375 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1376 | cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1377 | \`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] | 1378 |  | 
|  | 1379 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1380 |  | 
|  | 1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1382 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1383 |  | 
|  | 1384 | Defaults for the options are specified in brackets. | 
|  | 1385 |  | 
|  | 1386 | Configuration: | 
|  | 1387 | -h, --help              display this help and exit | 
|  | 1388 | --help=short        display options specific to this package | 
|  | 1389 | --help=recursive    display the short help of all the included packages | 
|  | 1390 | -V, --version           display version information and exit | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1391 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1393 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1394 | -n, --no-create         do not create output files | 
|  | 1395 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1396 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 | Installation directories: | 
|  | 1398 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1399 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1401 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 |  | 
|  | 1403 | By default, \`make install' will install all the files in | 
|  | 1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1406 | for instance \`--prefix=\$HOME'. | 
|  | 1407 |  | 
|  | 1408 | For better control, use the options below. | 
|  | 1409 |  | 
|  | 1410 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1411 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1412 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1413 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1414 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1415 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1416 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1417 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1418 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1419 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1420 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1421 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1422 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1423 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1424 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1425 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1426 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1427 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1428 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1429 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | _ACEOF | 
|  | 1431 |  | 
|  | 1432 | cat <<\_ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 1433 |  | 
|  | 1434 | System types: | 
|  | 1435 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1436 | --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] | 1437 | _ACEOF | 
|  | 1438 | fi | 
|  | 1439 |  | 
|  | 1440 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1441 | case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1442 | short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1443 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | cat <<\_ACEOF | 
|  | 1445 |  | 
|  | 1446 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1447 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1449 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1450 | --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1451 | Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1452 | --enable-framework[=INSTALLDIR] | 
|  | 1453 | Build (MacOSX|Darwin) framework | 
|  | 1454 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1455 | --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1456 | --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
|  | 1457 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1458 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1459 | --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1460 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1461 | --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1462 | Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 |  | 
|  | 1464 | Optional Packages: | 
|  | 1465 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1466 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1467 | --with-universal-archs=ARCH | 
|  | 1468 | select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1469 | "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1470 | --with-framework-name=FRAMEWORK | 
|  | 1471 | specify an alternate name of the framework built | 
|  | 1472 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1473 | --without-gcc           never use gcc | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 1474 | --with-icc              build with icc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1475 | --with-cxx-main=<compiler> | 
|  | 1476 | compile main() and link python executable with C++ | 
|  | 1477 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1478 | --with-suffix=.exe      set executable suffix | 
|  | 1479 | --with-pydebug          build with Py_DEBUG defined | 
|  | 1480 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1481 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1482 | library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1483 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 1484 | --with-tcltk-includes='-I...' | 
|  | 1485 | override search for Tcl and Tk include files | 
|  | 1486 | --with-tcltk-libs='-L...' | 
|  | 1487 | override search for Tcl and Tk libs | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1488 | --with-dbmliborder=db1:db2:... | 
|  | 1489 | order to check db backends for dbm. Valid value is a | 
|  | 1490 | colon separated string with the backend names | 
|  | 1491 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1492 | --with-signal-module    disable/enable signal module | 
|  | 1493 | --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
|  | 1494 | --with(out)-threads[=DIRECTORY] | 
|  | 1495 | disable/enable thread support | 
|  | 1496 | --with(out)-thread[=DIRECTORY] | 
|  | 1497 | deprecated; use --with(out)-threads | 
|  | 1498 | --with-pth              use GNU pth threading libraries | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1499 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1500 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1501 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1502 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1503 | --with-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1504 | --with-fpectl           enable SIGFPE catching | 
|  | 1505 | --with-libm=STRING      math library | 
|  | 1506 | --with-libc=STRING      C library | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 1507 | --with(out)-computed-gotos | 
|  | 1508 | Use computed gotos in evaluation loop (enabled by | 
|  | 1509 | default on supported compilers) | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 1510 | --with(out)-ensurepip=[=OPTION] | 
|  | 1511 | "install" or "upgrade" using bundled pip, default is | 
|  | 1512 | "no" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1513 |  | 
|  | 1514 | Some influential environment variables: | 
|  | 1515 | CC          C compiler command | 
|  | 1516 | CFLAGS      C compiler flags | 
|  | 1517 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1518 | nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1519 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1520 | 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] | 1521 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | CPP         C preprocessor | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 1523 | PKG_CONFIG  path to pkg-config utility | 
|  | 1524 | PKG_CONFIG_PATH | 
|  | 1525 | directories to add to pkg-config's search path | 
|  | 1526 | PKG_CONFIG_LIBDIR | 
|  | 1527 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 |  | 
|  | 1529 | Use these variables to override the choices made by `configure' or to help | 
|  | 1530 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1531 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1532 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1534 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1535 | fi | 
|  | 1536 |  | 
|  | 1537 | if test "$ac_init_help" = "recursive"; then | 
|  | 1538 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | 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] | 1540 | test -d "$ac_dir" || | 
|  | 1541 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1542 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1543 | ac_builddir=. | 
|  | 1544 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1545 | case "$ac_dir" in | 
|  | 1546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1547 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1549 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1550 | 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] | 1551 | case $ac_top_builddir_sub in | 
|  | 1552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1553 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1554 | esac ;; | 
|  | 1555 | esac | 
|  | 1556 | ac_abs_top_builddir=$ac_pwd | 
|  | 1557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1558 | # for backward compatibility: | 
|  | 1559 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |  | 
|  | 1561 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1562 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1564 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1565 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1566 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1568 | ac_top_srcdir=$srcdir | 
|  | 1569 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1570 | *) # Relative name. | 
|  | 1571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1572 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1576 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1577 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1578 | # Check for guested configure. | 
|  | 1579 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1580 | echo && | 
|  | 1581 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1582 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1583 | echo && | 
|  | 1584 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1586 | $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] | 1587 | fi || ac_status=$? | 
|  | 1588 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 | done | 
|  | 1590 | fi | 
|  | 1591 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1592 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1593 | if $ac_init_version; then | 
|  | 1594 | cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1595 | python configure 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1596 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1598 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | This configure script is free software; the Free Software Foundation | 
|  | 1600 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1601 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1602 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1604 |  | 
|  | 1605 | ## ------------------------ ## | 
|  | 1606 | ## Autoconf initialization. ## | 
|  | 1607 | ## ------------------------ ## | 
|  | 1608 |  | 
|  | 1609 | # ac_fn_c_try_compile LINENO | 
|  | 1610 | # -------------------------- | 
|  | 1611 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1612 | ac_fn_c_try_compile () | 
|  | 1613 | { | 
|  | 1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1615 | rm -f conftest.$ac_objext | 
|  | 1616 | if { { ac_try="$ac_compile" | 
|  | 1617 | case "(($ac_try" in | 
|  | 1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1619 | *) ac_try_echo=$ac_try;; | 
|  | 1620 | esac | 
|  | 1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1622 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1623 | (eval "$ac_compile") 2>conftest.err | 
|  | 1624 | ac_status=$? | 
|  | 1625 | if test -s conftest.err; then | 
|  | 1626 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1627 | cat conftest.er1 >&5 | 
|  | 1628 | mv -f conftest.er1 conftest.err | 
|  | 1629 | fi | 
|  | 1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1631 | test $ac_status = 0; } && { | 
|  | 1632 | test -z "$ac_c_werror_flag" || | 
|  | 1633 | test ! -s conftest.err | 
|  | 1634 | } && test -s conftest.$ac_objext; then : | 
|  | 1635 | ac_retval=0 | 
|  | 1636 | else | 
|  | 1637 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1638 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1639 |  | 
|  | 1640 | ac_retval=1 | 
|  | 1641 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1643 | as_fn_set_status $ac_retval | 
|  | 1644 |  | 
|  | 1645 | } # ac_fn_c_try_compile | 
|  | 1646 |  | 
|  | 1647 | # ac_fn_c_try_cpp LINENO | 
|  | 1648 | # ---------------------- | 
|  | 1649 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1650 | ac_fn_c_try_cpp () | 
|  | 1651 | { | 
|  | 1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1653 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1654 | case "(($ac_try" in | 
|  | 1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1656 | *) ac_try_echo=$ac_try;; | 
|  | 1657 | esac | 
|  | 1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1659 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1661 | ac_status=$? | 
|  | 1662 | if test -s conftest.err; then | 
|  | 1663 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1664 | cat conftest.er1 >&5 | 
|  | 1665 | mv -f conftest.er1 conftest.err | 
|  | 1666 | fi | 
|  | 1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1668 | test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1670 | test ! -s conftest.err | 
|  | 1671 | }; then : | 
|  | 1672 | ac_retval=0 | 
|  | 1673 | else | 
|  | 1674 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1675 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1676 |  | 
|  | 1677 | ac_retval=1 | 
|  | 1678 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1680 | as_fn_set_status $ac_retval | 
|  | 1681 |  | 
|  | 1682 | } # ac_fn_c_try_cpp | 
|  | 1683 |  | 
|  | 1684 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1685 | # ------------------------------------------------------- | 
|  | 1686 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1687 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1688 | # accordingly. | 
|  | 1689 | ac_fn_c_check_header_mongrel () | 
|  | 1690 | { | 
|  | 1691 | 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] | 1692 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1694 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1695 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1696 | $as_echo_n "(cached) " >&6 | 
|  | 1697 | fi | 
|  | 1698 | eval ac_res=\$$3 | 
|  | 1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1700 | $as_echo "$ac_res" >&6; } | 
|  | 1701 | else | 
|  | 1702 | # Is the header compilable? | 
|  | 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1704 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1706 | /* end confdefs.h.  */ | 
|  | 1707 | $4 | 
|  | 1708 | #include <$2> | 
|  | 1709 | _ACEOF | 
|  | 1710 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1711 | ac_header_compiler=yes | 
|  | 1712 | else | 
|  | 1713 | ac_header_compiler=no | 
|  | 1714 | fi | 
|  | 1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1717 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1718 |  | 
|  | 1719 | # Is the header present? | 
|  | 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1721 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1723 | /* end confdefs.h.  */ | 
|  | 1724 | #include <$2> | 
|  | 1725 | _ACEOF | 
|  | 1726 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1727 | ac_header_preproc=yes | 
|  | 1728 | else | 
|  | 1729 | ac_header_preproc=no | 
|  | 1730 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1731 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1733 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1734 |  | 
|  | 1735 | # So?  What about this header? | 
|  | 1736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1737 | yes:no: ) | 
|  | 1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1739 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1741 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1742 | ;; | 
|  | 1743 | no:yes:* ) | 
|  | 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1745 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1747 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1749 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1751 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1753 | $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] | 1754 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1755 | ## Report this to http://bugs.python.org/ ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1756 | ## -------------------------------------- ##" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1757 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1758 | ;; | 
|  | 1759 | esac | 
|  | 1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1761 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1762 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1763 | $as_echo_n "(cached) " >&6 | 
|  | 1764 | else | 
|  | 1765 | eval "$3=\$ac_header_compiler" | 
|  | 1766 | fi | 
|  | 1767 | eval ac_res=\$$3 | 
|  | 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1769 | $as_echo "$ac_res" >&6; } | 
|  | 1770 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1771 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1772 |  | 
|  | 1773 | } # ac_fn_c_check_header_mongrel | 
|  | 1774 |  | 
|  | 1775 | # ac_fn_c_try_run LINENO | 
|  | 1776 | # ---------------------- | 
|  | 1777 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1778 | # that executables *can* be run. | 
|  | 1779 | ac_fn_c_try_run () | 
|  | 1780 | { | 
|  | 1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1782 | if { { ac_try="$ac_link" | 
|  | 1783 | case "(($ac_try" in | 
|  | 1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1785 | *) ac_try_echo=$ac_try;; | 
|  | 1786 | esac | 
|  | 1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1788 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1789 | (eval "$ac_link") 2>&5 | 
|  | 1790 | ac_status=$? | 
|  | 1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1792 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1793 | { { case "(($ac_try" in | 
|  | 1794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1795 | *) ac_try_echo=$ac_try;; | 
|  | 1796 | esac | 
|  | 1797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1798 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1799 | (eval "$ac_try") 2>&5 | 
|  | 1800 | ac_status=$? | 
|  | 1801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1802 | test $ac_status = 0; }; }; then : | 
|  | 1803 | ac_retval=0 | 
|  | 1804 | else | 
|  | 1805 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1806 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1807 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1808 |  | 
|  | 1809 | ac_retval=$ac_status | 
|  | 1810 | fi | 
|  | 1811 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1813 | as_fn_set_status $ac_retval | 
|  | 1814 |  | 
|  | 1815 | } # ac_fn_c_try_run | 
|  | 1816 |  | 
|  | 1817 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1818 | # ------------------------------------------------------- | 
|  | 1819 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1820 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1821 | ac_fn_c_check_header_compile () | 
|  | 1822 | { | 
|  | 1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1825 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1826 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1827 | $as_echo_n "(cached) " >&6 | 
|  | 1828 | else | 
|  | 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1830 | /* end confdefs.h.  */ | 
|  | 1831 | $4 | 
|  | 1832 | #include <$2> | 
|  | 1833 | _ACEOF | 
|  | 1834 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1835 | eval "$3=yes" | 
|  | 1836 | else | 
|  | 1837 | eval "$3=no" | 
|  | 1838 | fi | 
|  | 1839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1840 | fi | 
|  | 1841 | eval ac_res=\$$3 | 
|  | 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1843 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1844 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1845 |  | 
|  | 1846 | } # ac_fn_c_check_header_compile | 
|  | 1847 |  | 
|  | 1848 | # ac_fn_c_try_link LINENO | 
|  | 1849 | # ----------------------- | 
|  | 1850 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1851 | ac_fn_c_try_link () | 
|  | 1852 | { | 
|  | 1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1854 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1855 | if { { ac_try="$ac_link" | 
|  | 1856 | case "(($ac_try" in | 
|  | 1857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1858 | *) ac_try_echo=$ac_try;; | 
|  | 1859 | esac | 
|  | 1860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1861 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1862 | (eval "$ac_link") 2>conftest.err | 
|  | 1863 | ac_status=$? | 
|  | 1864 | if test -s conftest.err; then | 
|  | 1865 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1866 | cat conftest.er1 >&5 | 
|  | 1867 | mv -f conftest.er1 conftest.err | 
|  | 1868 | fi | 
|  | 1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1870 | test $ac_status = 0; } && { | 
|  | 1871 | test -z "$ac_c_werror_flag" || | 
|  | 1872 | test ! -s conftest.err | 
|  | 1873 | } && test -s conftest$ac_exeext && { | 
|  | 1874 | test "$cross_compiling" = yes || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1875 | test -x conftest$ac_exeext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1876 | }; then : | 
|  | 1877 | ac_retval=0 | 
|  | 1878 | else | 
|  | 1879 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1880 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1881 |  | 
|  | 1882 | ac_retval=1 | 
|  | 1883 | fi | 
|  | 1884 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1885 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1886 | # interfere with the next link command; also delete a directory that is | 
|  | 1887 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1888 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1890 | as_fn_set_status $ac_retval | 
|  | 1891 |  | 
|  | 1892 | } # ac_fn_c_try_link | 
|  | 1893 |  | 
|  | 1894 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1895 | # ------------------------------------------- | 
|  | 1896 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1897 | # variable VAR accordingly. | 
|  | 1898 | ac_fn_c_check_type () | 
|  | 1899 | { | 
|  | 1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1902 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1903 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1904 | $as_echo_n "(cached) " >&6 | 
|  | 1905 | else | 
|  | 1906 | eval "$3=no" | 
|  | 1907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1908 | /* end confdefs.h.  */ | 
|  | 1909 | $4 | 
|  | 1910 | int | 
|  | 1911 | main () | 
|  | 1912 | { | 
|  | 1913 | if (sizeof ($2)) | 
|  | 1914 | return 0; | 
|  | 1915 | ; | 
|  | 1916 | return 0; | 
|  | 1917 | } | 
|  | 1918 | _ACEOF | 
|  | 1919 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1921 | /* end confdefs.h.  */ | 
|  | 1922 | $4 | 
|  | 1923 | int | 
|  | 1924 | main () | 
|  | 1925 | { | 
|  | 1926 | if (sizeof (($2))) | 
|  | 1927 | return 0; | 
|  | 1928 | ; | 
|  | 1929 | return 0; | 
|  | 1930 | } | 
|  | 1931 | _ACEOF | 
|  | 1932 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1933 |  | 
|  | 1934 | else | 
|  | 1935 | eval "$3=yes" | 
|  | 1936 | fi | 
|  | 1937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1938 | fi | 
|  | 1939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1940 | fi | 
|  | 1941 | eval ac_res=\$$3 | 
|  | 1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1943 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1944 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1945 |  | 
|  | 1946 | } # ac_fn_c_check_type | 
|  | 1947 |  | 
|  | 1948 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
|  | 1949 | # ------------------------------------ | 
|  | 1950 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
|  | 1951 | # accordingly. | 
|  | 1952 | ac_fn_c_find_uintX_t () | 
|  | 1953 | { | 
|  | 1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
|  | 1956 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1957 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1958 | $as_echo_n "(cached) " >&6 | 
|  | 1959 | else | 
|  | 1960 | eval "$3=no" | 
|  | 1961 | # Order is important - never check a type that is potentially smaller | 
|  | 1962 | # than half of the expected target width. | 
|  | 1963 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
|  | 1964 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
|  | 1965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1966 | /* end confdefs.h.  */ | 
|  | 1967 | $ac_includes_default | 
|  | 1968 | int | 
|  | 1969 | main () | 
|  | 1970 | { | 
|  | 1971 | 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] | 1972 | test_array [0] = 0; | 
|  | 1973 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1974 |  | 
|  | 1975 | ; | 
|  | 1976 | return 0; | 
|  | 1977 | } | 
|  | 1978 | _ACEOF | 
|  | 1979 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1980 | case $ac_type in #( | 
|  | 1981 | uint$2_t) : | 
|  | 1982 | eval "$3=yes" ;; #( | 
|  | 1983 | *) : | 
|  | 1984 | eval "$3=\$ac_type" ;; | 
|  | 1985 | esac | 
|  | 1986 | fi | 
|  | 1987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1988 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1989 |  | 
|  | 1990 | else | 
|  | 1991 | break | 
|  | 1992 | fi | 
|  | 1993 | done | 
|  | 1994 | fi | 
|  | 1995 | eval ac_res=\$$3 | 
|  | 1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1997 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1998 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1999 |  | 
|  | 2000 | } # ac_fn_c_find_uintX_t | 
|  | 2001 |  | 
|  | 2002 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
|  | 2003 | # ----------------------------------- | 
|  | 2004 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
|  | 2005 | # accordingly. | 
|  | 2006 | ac_fn_c_find_intX_t () | 
|  | 2007 | { | 
|  | 2008 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
|  | 2010 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2011 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2012 | $as_echo_n "(cached) " >&6 | 
|  | 2013 | else | 
|  | 2014 | eval "$3=no" | 
|  | 2015 | # Order is important - never check a type that is potentially smaller | 
|  | 2016 | # than half of the expected target width. | 
|  | 2017 | for ac_type in int$2_t 'int' 'long int' \ | 
|  | 2018 | 'long long int' 'short int' 'signed char'; do | 
|  | 2019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2020 | /* end confdefs.h.  */ | 
|  | 2021 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2022 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2023 | int | 
|  | 2024 | main () | 
|  | 2025 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2026 | 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] | 2027 | test_array [0] = 0; | 
|  | 2028 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2029 |  | 
|  | 2030 | ; | 
|  | 2031 | return 0; | 
|  | 2032 | } | 
|  | 2033 | _ACEOF | 
|  | 2034 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2036 | /* end confdefs.h.  */ | 
|  | 2037 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2038 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2039 | int | 
|  | 2040 | main () | 
|  | 2041 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2042 | 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] | 2043 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2044 | test_array [0] = 0; | 
|  | 2045 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2046 |  | 
|  | 2047 | ; | 
|  | 2048 | return 0; | 
|  | 2049 | } | 
|  | 2050 | _ACEOF | 
|  | 2051 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2052 |  | 
|  | 2053 | else | 
|  | 2054 | case $ac_type in #( | 
|  | 2055 | int$2_t) : | 
|  | 2056 | eval "$3=yes" ;; #( | 
|  | 2057 | *) : | 
|  | 2058 | eval "$3=\$ac_type" ;; | 
|  | 2059 | esac | 
|  | 2060 | fi | 
|  | 2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2062 | fi | 
|  | 2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2064 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2065 |  | 
|  | 2066 | else | 
|  | 2067 | break | 
|  | 2068 | fi | 
|  | 2069 | done | 
|  | 2070 | fi | 
|  | 2071 | eval ac_res=\$$3 | 
|  | 2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2073 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2074 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2075 |  | 
|  | 2076 | } # ac_fn_c_find_intX_t | 
|  | 2077 |  | 
|  | 2078 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 2079 | # -------------------------------------------- | 
|  | 2080 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2081 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2082 | # computed | 
|  | 2083 | ac_fn_c_compute_int () | 
|  | 2084 | { | 
|  | 2085 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2086 | if test "$cross_compiling" = yes; then | 
|  | 2087 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2089 | /* end confdefs.h.  */ | 
|  | 2090 | $4 | 
|  | 2091 | int | 
|  | 2092 | main () | 
|  | 2093 | { | 
|  | 2094 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2095 | test_array [0] = 0; | 
|  | 2096 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2097 |  | 
|  | 2098 | ; | 
|  | 2099 | return 0; | 
|  | 2100 | } | 
|  | 2101 | _ACEOF | 
|  | 2102 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2103 | ac_lo=0 ac_mid=0 | 
|  | 2104 | while :; do | 
|  | 2105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2106 | /* end confdefs.h.  */ | 
|  | 2107 | $4 | 
|  | 2108 | int | 
|  | 2109 | main () | 
|  | 2110 | { | 
|  | 2111 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2112 | test_array [0] = 0; | 
|  | 2113 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2114 |  | 
|  | 2115 | ; | 
|  | 2116 | return 0; | 
|  | 2117 | } | 
|  | 2118 | _ACEOF | 
|  | 2119 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2120 | ac_hi=$ac_mid; break | 
|  | 2121 | else | 
|  | 2122 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2123 | if test $ac_lo -le $ac_mid; then | 
|  | 2124 | ac_lo= ac_hi= | 
|  | 2125 | break | 
|  | 2126 | fi | 
|  | 2127 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2128 | fi | 
|  | 2129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2130 | done | 
|  | 2131 | else | 
|  | 2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2133 | /* end confdefs.h.  */ | 
|  | 2134 | $4 | 
|  | 2135 | int | 
|  | 2136 | main () | 
|  | 2137 | { | 
|  | 2138 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2139 | test_array [0] = 0; | 
|  | 2140 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2141 |  | 
|  | 2142 | ; | 
|  | 2143 | return 0; | 
|  | 2144 | } | 
|  | 2145 | _ACEOF | 
|  | 2146 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2147 | ac_hi=-1 ac_mid=-1 | 
|  | 2148 | while :; do | 
|  | 2149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2150 | /* end confdefs.h.  */ | 
|  | 2151 | $4 | 
|  | 2152 | int | 
|  | 2153 | main () | 
|  | 2154 | { | 
|  | 2155 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2156 | test_array [0] = 0; | 
|  | 2157 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2158 |  | 
|  | 2159 | ; | 
|  | 2160 | return 0; | 
|  | 2161 | } | 
|  | 2162 | _ACEOF | 
|  | 2163 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2164 | ac_lo=$ac_mid; break | 
|  | 2165 | else | 
|  | 2166 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2167 | if test $ac_mid -le $ac_hi; then | 
|  | 2168 | ac_lo= ac_hi= | 
|  | 2169 | break | 
|  | 2170 | fi | 
|  | 2171 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2172 | fi | 
|  | 2173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2174 | done | 
|  | 2175 | else | 
|  | 2176 | ac_lo= ac_hi= | 
|  | 2177 | fi | 
|  | 2178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2179 | fi | 
|  | 2180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2181 | # Binary search between lo and hi bounds. | 
|  | 2182 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2183 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2185 | /* end confdefs.h.  */ | 
|  | 2186 | $4 | 
|  | 2187 | int | 
|  | 2188 | main () | 
|  | 2189 | { | 
|  | 2190 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2191 | test_array [0] = 0; | 
|  | 2192 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2193 |  | 
|  | 2194 | ; | 
|  | 2195 | return 0; | 
|  | 2196 | } | 
|  | 2197 | _ACEOF | 
|  | 2198 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2199 | ac_hi=$ac_mid | 
|  | 2200 | else | 
|  | 2201 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2202 | fi | 
|  | 2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2204 | done | 
|  | 2205 | case $ac_lo in #(( | 
|  | 2206 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2207 | '') ac_retval=1 ;; | 
|  | 2208 | esac | 
|  | 2209 | else | 
|  | 2210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2211 | /* end confdefs.h.  */ | 
|  | 2212 | $4 | 
|  | 2213 | static long int longval () { return $2; } | 
|  | 2214 | static unsigned long int ulongval () { return $2; } | 
|  | 2215 | #include <stdio.h> | 
|  | 2216 | #include <stdlib.h> | 
|  | 2217 | int | 
|  | 2218 | main () | 
|  | 2219 | { | 
|  | 2220 |  | 
|  | 2221 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2222 | if (! f) | 
|  | 2223 | return 1; | 
|  | 2224 | if (($2) < 0) | 
|  | 2225 | { | 
|  | 2226 | long int i = longval (); | 
|  | 2227 | if (i != ($2)) | 
|  | 2228 | return 1; | 
|  | 2229 | fprintf (f, "%ld", i); | 
|  | 2230 | } | 
|  | 2231 | else | 
|  | 2232 | { | 
|  | 2233 | unsigned long int i = ulongval (); | 
|  | 2234 | if (i != ($2)) | 
|  | 2235 | return 1; | 
|  | 2236 | fprintf (f, "%lu", i); | 
|  | 2237 | } | 
|  | 2238 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2239 | on some platforms.  */ | 
|  | 2240 | return ferror (f) || fclose (f) != 0; | 
|  | 2241 |  | 
|  | 2242 | ; | 
|  | 2243 | return 0; | 
|  | 2244 | } | 
|  | 2245 | _ACEOF | 
|  | 2246 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2247 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2248 | else | 
|  | 2249 | ac_retval=1 | 
|  | 2250 | fi | 
|  | 2251 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2252 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2253 | rm -f conftest.val | 
|  | 2254 |  | 
|  | 2255 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2256 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2257 | as_fn_set_status $ac_retval | 
|  | 2258 |  | 
|  | 2259 | } # ac_fn_c_compute_int | 
|  | 2260 |  | 
|  | 2261 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2262 | # ---------------------------------- | 
|  | 2263 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2264 | ac_fn_c_check_func () | 
|  | 2265 | { | 
|  | 2266 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2268 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2269 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2270 | $as_echo_n "(cached) " >&6 | 
|  | 2271 | else | 
|  | 2272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2273 | /* end confdefs.h.  */ | 
|  | 2274 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2275 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2276 | #define $2 innocuous_$2 | 
|  | 2277 |  | 
|  | 2278 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2279 | which can conflict with char $2 (); below. | 
|  | 2280 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2281 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2282 |  | 
|  | 2283 | #ifdef __STDC__ | 
|  | 2284 | # include <limits.h> | 
|  | 2285 | #else | 
|  | 2286 | # include <assert.h> | 
|  | 2287 | #endif | 
|  | 2288 |  | 
|  | 2289 | #undef $2 | 
|  | 2290 |  | 
|  | 2291 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2292 | Use char because int might match the return type of a GCC | 
|  | 2293 | builtin and then its argument prototype would still apply.  */ | 
|  | 2294 | #ifdef __cplusplus | 
|  | 2295 | extern "C" | 
|  | 2296 | #endif | 
|  | 2297 | char $2 (); | 
|  | 2298 | /* The GNU C library defines this for functions which it implements | 
|  | 2299 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2300 | something starting with __ and the normal name is an alias.  */ | 
|  | 2301 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2302 | choke me | 
|  | 2303 | #endif | 
|  | 2304 |  | 
|  | 2305 | int | 
|  | 2306 | main () | 
|  | 2307 | { | 
|  | 2308 | return $2 (); | 
|  | 2309 | ; | 
|  | 2310 | return 0; | 
|  | 2311 | } | 
|  | 2312 | _ACEOF | 
|  | 2313 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2314 | eval "$3=yes" | 
|  | 2315 | else | 
|  | 2316 | eval "$3=no" | 
|  | 2317 | fi | 
|  | 2318 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2319 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2320 | fi | 
|  | 2321 | eval ac_res=\$$3 | 
|  | 2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2323 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2324 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2325 |  | 
|  | 2326 | } # ac_fn_c_check_func | 
|  | 2327 |  | 
|  | 2328 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2329 | # ---------------------------------------------------- | 
|  | 2330 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2331 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2332 | ac_fn_c_check_member () | 
|  | 2333 | { | 
|  | 2334 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2336 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2337 | if eval \${$4+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2338 | $as_echo_n "(cached) " >&6 | 
|  | 2339 | else | 
|  | 2340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2341 | /* end confdefs.h.  */ | 
|  | 2342 | $5 | 
|  | 2343 | int | 
|  | 2344 | main () | 
|  | 2345 | { | 
|  | 2346 | static $2 ac_aggr; | 
|  | 2347 | if (ac_aggr.$3) | 
|  | 2348 | return 0; | 
|  | 2349 | ; | 
|  | 2350 | return 0; | 
|  | 2351 | } | 
|  | 2352 | _ACEOF | 
|  | 2353 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2354 | eval "$4=yes" | 
|  | 2355 | else | 
|  | 2356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2357 | /* end confdefs.h.  */ | 
|  | 2358 | $5 | 
|  | 2359 | int | 
|  | 2360 | main () | 
|  | 2361 | { | 
|  | 2362 | static $2 ac_aggr; | 
|  | 2363 | if (sizeof ac_aggr.$3) | 
|  | 2364 | return 0; | 
|  | 2365 | ; | 
|  | 2366 | return 0; | 
|  | 2367 | } | 
|  | 2368 | _ACEOF | 
|  | 2369 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2370 | eval "$4=yes" | 
|  | 2371 | else | 
|  | 2372 | eval "$4=no" | 
|  | 2373 | fi | 
|  | 2374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2375 | fi | 
|  | 2376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2377 | fi | 
|  | 2378 | eval ac_res=\$$4 | 
|  | 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2380 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2381 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2382 |  | 
|  | 2383 | } # ac_fn_c_check_member | 
|  | 2384 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2385 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2386 | # --------------------------------------------- | 
|  | 2387 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2388 | # accordingly. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2389 | ac_fn_c_check_decl () | 
|  | 2390 | { | 
|  | 2391 | 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] | 2392 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2393 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2395 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2396 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2397 | $as_echo_n "(cached) " >&6 | 
|  | 2398 | else | 
|  | 2399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2400 | /* end confdefs.h.  */ | 
|  | 2401 | $4 | 
|  | 2402 | int | 
|  | 2403 | main () | 
|  | 2404 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2405 | #ifndef $as_decl_name | 
|  | 2406 | #ifdef __cplusplus | 
|  | 2407 | (void) $as_decl_use; | 
|  | 2408 | #else | 
|  | 2409 | (void) $as_decl_name; | 
|  | 2410 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2411 | #endif | 
|  | 2412 |  | 
|  | 2413 | ; | 
|  | 2414 | return 0; | 
|  | 2415 | } | 
|  | 2416 | _ACEOF | 
|  | 2417 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2418 | eval "$3=yes" | 
|  | 2419 | else | 
|  | 2420 | eval "$3=no" | 
|  | 2421 | fi | 
|  | 2422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2423 | fi | 
|  | 2424 | eval ac_res=\$$3 | 
|  | 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2426 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2427 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2428 |  | 
|  | 2429 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2430 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2431 | This file contains any messages produced by compilers while | 
|  | 2432 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2433 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2434 | 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] | 2435 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 |  | 
|  | 2437 | $ $0 $@ | 
|  | 2438 |  | 
|  | 2439 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2440 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | { | 
|  | 2442 | cat <<_ASUNAME | 
|  | 2443 | ## --------- ## | 
|  | 2444 | ## Platform. ## | 
|  | 2445 | ## --------- ## | 
|  | 2446 |  | 
|  | 2447 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2448 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2449 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2450 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2451 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2452 |  | 
|  | 2453 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2454 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2455 |  | 
|  | 2456 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2457 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2458 | /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] | 2459 | /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] | 2460 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2461 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2462 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2463 |  | 
|  | 2464 | _ASUNAME | 
|  | 2465 |  | 
|  | 2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2467 | for as_dir in $PATH | 
|  | 2468 | do | 
|  | 2469 | IFS=$as_save_IFS | 
|  | 2470 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2471 | $as_echo "PATH: $as_dir" | 
|  | 2472 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2473 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 |  | 
|  | 2475 | } >&5 | 
|  | 2476 |  | 
|  | 2477 | cat >&5 <<_ACEOF | 
|  | 2478 |  | 
|  | 2479 |  | 
|  | 2480 | ## ----------- ## | 
|  | 2481 | ## Core tests. ## | 
|  | 2482 | ## ----------- ## | 
|  | 2483 |  | 
|  | 2484 | _ACEOF | 
|  | 2485 |  | 
|  | 2486 |  | 
|  | 2487 | # Keep a trace of the command line. | 
|  | 2488 | # 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] | 2489 | # 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] | 2490 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2491 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2493 | ac_configure_args0= | 
|  | 2494 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 | ac_must_keep_next=false | 
|  | 2496 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2497 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | for ac_arg | 
|  | 2499 | do | 
|  | 2500 | case $ac_arg in | 
|  | 2501 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2502 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2503 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2504 | continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2505 | *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2506 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 | esac | 
|  | 2508 | case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2509 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2510 | 2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2511 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2512 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2513 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2514 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2515 | case $ac_arg in | 
|  | 2516 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2517 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2518 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2519 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2520 | case "$ac_configure_args0 " in | 
|  | 2521 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2522 | esac | 
|  | 2523 | ;; | 
|  | 2524 | -* ) ac_must_keep_next=true ;; | 
|  | 2525 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2526 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2527 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2528 | ;; | 
|  | 2529 | esac | 
|  | 2530 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2532 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2533 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 |  | 
|  | 2535 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2536 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2537 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2538 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2539 | # 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] | 2540 | trap 'exit_status=$? | 
|  | 2541 | # Save into config.log some information that might help in debugging. | 
|  | 2542 | { | 
|  | 2543 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2544 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2545 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | ## Cache variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2547 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | echo | 
|  | 2549 | # 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] | 2550 | ( | 
|  | 2551 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2552 | eval ac_val=\$$ac_var | 
|  | 2553 | case $ac_val in #( | 
|  | 2554 | *${as_nl}*) | 
|  | 2555 | case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2556 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2557 | $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] | 2558 | esac | 
|  | 2559 | case $ac_var in #( | 
|  | 2560 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2561 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2562 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2563 | esac ;; | 
|  | 2564 | esac | 
|  | 2565 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2567 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2568 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2570 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2571 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2572 | ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2573 | *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2574 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2575 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2576 | esac | | 
|  | 2577 | sort | 
|  | 2578 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2580 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2581 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2582 | ## Output variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2583 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2584 | echo | 
|  | 2585 | for ac_var in $ac_subst_vars | 
|  | 2586 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2587 | eval ac_val=\$$ac_var | 
|  | 2588 | case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2589 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2590 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2591 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2592 | done | sort | 
|  | 2593 | echo | 
|  | 2594 |  | 
|  | 2595 | if test -n "$ac_subst_files"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2596 | $as_echo "## ------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2597 | ## File substitutions. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2598 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2599 | echo | 
|  | 2600 | for ac_var in $ac_subst_files | 
|  | 2601 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2602 | eval ac_val=\$$ac_var | 
|  | 2603 | case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2604 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2605 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2606 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2607 | done | sort | 
|  | 2608 | echo | 
|  | 2609 | fi | 
|  | 2610 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | if test -s confdefs.h; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2612 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | ## confdefs.h. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2614 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2616 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | echo | 
|  | 2618 | fi | 
|  | 2619 | test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2620 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2621 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2623 | rm -f core *.core core.conftest.* && | 
|  | 2624 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2626 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2627 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2628 | 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] | 2629 | done | 
|  | 2630 | ac_signal=0 | 
|  | 2631 |  | 
|  | 2632 | # 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] | 2633 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2635 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2636 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | # Predefined preprocessor variables. | 
|  | 2638 |  | 
|  | 2639 | cat >>confdefs.h <<_ACEOF | 
|  | 2640 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2641 | _ACEOF | 
|  | 2642 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | cat >>confdefs.h <<_ACEOF | 
|  | 2644 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2645 | _ACEOF | 
|  | 2646 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2647 | cat >>confdefs.h <<_ACEOF | 
|  | 2648 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2649 | _ACEOF | 
|  | 2650 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | cat >>confdefs.h <<_ACEOF | 
|  | 2652 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2653 | _ACEOF | 
|  | 2654 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | cat >>confdefs.h <<_ACEOF | 
|  | 2656 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2657 | _ACEOF | 
|  | 2658 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2659 | cat >>confdefs.h <<_ACEOF | 
|  | 2660 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2661 | _ACEOF | 
|  | 2662 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 |  | 
|  | 2664 | # 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] | 2665 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2666 | ac_site_file1=NONE | 
|  | 2667 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2668 | if test -n "$CONFIG_SITE"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2669 | # We do not want a PATH search for config.site. | 
|  | 2670 | case $CONFIG_SITE in #(( | 
|  | 2671 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2672 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2673 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2674 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2676 | ac_site_file1=$prefix/share/config.site | 
|  | 2677 | ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2678 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2679 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2680 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2681 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2682 | 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] | 2683 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2684 | test "x$ac_site_file" = xNONE && continue | 
|  | 2685 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2687 | $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] | 2688 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2689 | . "$ac_site_file" \ | 
|  | 2690 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2692 | as_fn_error $? "failed to load site script $ac_site_file | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2693 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2694 | fi | 
|  | 2695 | done | 
|  | 2696 |  | 
|  | 2697 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2698 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2699 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2700 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2702 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2704 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2705 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 | esac | 
|  | 2707 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2708 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2710 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2711 | >$cache_file | 
|  | 2712 | fi | 
|  | 2713 |  | 
|  | 2714 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2715 | # value. | 
|  | 2716 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2717 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2719 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2720 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2721 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | case $ac_old_set,$ac_new_set in | 
|  | 2723 | set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2725 | $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] | 2726 | ac_cache_corrupted=: ;; | 
|  | 2727 | ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2729 | $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] | 2730 | ac_cache_corrupted=: ;; | 
|  | 2731 | ,);; | 
|  | 2732 | *) | 
|  | 2733 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2734 | # differences in whitespace do not lead to failure. | 
|  | 2735 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2736 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2737 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2739 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2740 | ac_cache_corrupted=: | 
|  | 2741 | else | 
|  | 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2743 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2744 | eval $ac_var=\$ac_old_val | 
|  | 2745 | fi | 
|  | 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2747 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2748 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2749 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 | fi;; | 
|  | 2751 | esac | 
|  | 2752 | # Pass precious variables to config.status. | 
|  | 2753 | if test "$ac_new_set" = set; then | 
|  | 2754 | case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2755 | *\'*) 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] | 2756 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2757 | esac | 
|  | 2758 | case " $ac_configure_args " in | 
|  | 2759 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2760 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 | esac | 
|  | 2762 | fi | 
|  | 2763 | done | 
|  | 2764 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2768 | $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] | 2769 | 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] | 2770 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2771 | ## -------------------- ## | 
|  | 2772 | ## Main body of script. ## | 
|  | 2773 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2774 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2775 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2776 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2780 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2781 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2782 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2783 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 |  | 
|  | 2785 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2786 | ac_aux_dir= | 
|  | 2787 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2788 | if test -f "$ac_dir/install-sh"; then | 
|  | 2789 | ac_aux_dir=$ac_dir | 
|  | 2790 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2791 | break | 
|  | 2792 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2793 | ac_aux_dir=$ac_dir | 
|  | 2794 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2795 | break | 
|  | 2796 | elif test -f "$ac_dir/shtool"; then | 
|  | 2797 | ac_aux_dir=$ac_dir | 
|  | 2798 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2799 | break | 
|  | 2800 | fi | 
|  | 2801 | done | 
|  | 2802 | if test -z "$ac_aux_dir"; then | 
|  | 2803 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2804 | fi | 
|  | 2805 |  | 
|  | 2806 | # These three variables are undocumented and unsupported, | 
|  | 2807 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2808 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2809 | # whose full name contains unusual characters. | 
|  | 2810 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2811 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2812 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2813 |  | 
|  | 2814 |  | 
|  | 2815 | # Make sure we can run config.sub. | 
|  | 2816 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2817 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2818 |  | 
|  | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2820 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2821 | if ${ac_cv_build+:} false; then : | 
|  | 2822 | $as_echo_n "(cached) " >&6 | 
|  | 2823 | else | 
|  | 2824 | ac_build_alias=$build_alias | 
|  | 2825 | test "x$ac_build_alias" = x && | 
|  | 2826 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2827 | test "x$ac_build_alias" = x && | 
|  | 2828 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2829 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2830 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2831 |  | 
|  | 2832 | fi | 
|  | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2834 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2835 | case $ac_cv_build in | 
|  | 2836 | *-*-*) ;; | 
|  | 2837 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2838 | esac | 
|  | 2839 | build=$ac_cv_build | 
|  | 2840 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2841 | set x $ac_cv_build | 
|  | 2842 | shift | 
|  | 2843 | build_cpu=$1 | 
|  | 2844 | build_vendor=$2 | 
|  | 2845 | shift; shift | 
|  | 2846 | # Remember, the first character of IFS is used to create $*, | 
|  | 2847 | # except with old shells: | 
|  | 2848 | build_os=$* | 
|  | 2849 | IFS=$ac_save_IFS | 
|  | 2850 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2851 |  | 
|  | 2852 |  | 
|  | 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2854 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2855 | if ${ac_cv_host+:} false; then : | 
|  | 2856 | $as_echo_n "(cached) " >&6 | 
|  | 2857 | else | 
|  | 2858 | if test "x$host_alias" = x; then | 
|  | 2859 | ac_cv_host=$ac_cv_build | 
|  | 2860 | else | 
|  | 2861 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2862 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2863 | fi | 
|  | 2864 |  | 
|  | 2865 | fi | 
|  | 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2867 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2868 | case $ac_cv_host in | 
|  | 2869 | *-*-*) ;; | 
|  | 2870 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2871 | esac | 
|  | 2872 | host=$ac_cv_host | 
|  | 2873 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2874 | set x $ac_cv_host | 
|  | 2875 | shift | 
|  | 2876 | host_cpu=$1 | 
|  | 2877 | host_vendor=$2 | 
|  | 2878 | shift; shift | 
|  | 2879 | # Remember, the first character of IFS is used to create $*, | 
|  | 2880 | # except with old shells: | 
|  | 2881 | host_os=$* | 
|  | 2882 | IFS=$ac_save_IFS | 
|  | 2883 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2884 |  | 
|  | 2885 |  | 
|  | 2886 |  | 
|  | 2887 |  | 
|  | 2888 |  | 
| Ned Deily | 983df86 | 2014-08-22 13:30:59 -0700 | [diff] [blame] | 2889 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2890 | rm -f pybuilddir.txt | 
|  | 2891 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2892 | if test "$cross_compiling" = yes; then | 
|  | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 2894 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 2895 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 2896 | for interp in python$PACKAGE_VERSION python2 python; do | 
|  | 2897 | which $interp >/dev/null 2>&1 || continue | 
|  | 2898 | if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then | 
|  | 2899 | break | 
|  | 2900 | fi | 
|  | 2901 | interp= | 
|  | 2902 | done | 
|  | 2903 | if test x$interp = x; then | 
|  | 2904 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 2905 | fi | 
|  | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 2907 | $as_echo "$interp" >&6; } | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 2908 | 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/$(PLATDIR) '$interp | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2909 | fi | 
|  | 2910 | elif test "$cross_compiling" = maybe; then | 
|  | 2911 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
|  | 2912 | else | 
|  | 2913 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
|  | 2914 | fi | 
|  | 2915 |  | 
|  | 2916 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2918 | if test "$prefix" != "/"; then | 
|  | 2919 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2920 | fi | 
|  | 2921 |  | 
|  | 2922 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 |  | 
|  | 2924 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2925 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2926 | # with other autoconf-based packages that include Python.h | 
|  | 2927 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2928 | rm confdefs.h | 
|  | 2929 | mv confdefs.h.new confdefs.h | 
|  | 2930 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2931 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2932 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2933 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2934 |  | 
|  | 2935 | SOVERSION=1.0 | 
|  | 2936 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2937 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2938 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2939 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2940 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2941 |  | 
|  | 2942 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2943 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2944 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2945 | # them. | 
|  | 2946 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2947 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2948 |  | 
|  | 2949 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2950 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2951 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2952 | # them. | 
|  | 2953 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2954 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2955 |  | 
|  | 2956 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2957 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2958 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2959 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2960 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2961 |  | 
|  | 2962 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2963 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2964 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2965 | # them. | 
|  | 2966 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2967 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2968 |  | 
|  | 2969 |  | 
|  | 2970 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2971 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2972 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2973 | # Arguments passed to configure. | 
|  | 2974 |  | 
|  | 2975 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2976 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 2978 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2979 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2980 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2981 | enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2982 | case $enableval in | 
|  | 2983 | yes) | 
|  | 2984 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2985 | if test ! -d "${enableval}" | 
|  | 2986 | then | 
|  | 2987 | enableval=/ | 
|  | 2988 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2989 | ;; | 
|  | 2990 | esac | 
|  | 2991 | case $enableval in | 
|  | 2992 | no) | 
|  | 2993 | UNIVERSALSDK= | 
|  | 2994 | enable_universalsdk= | 
|  | 2995 | ;; | 
|  | 2996 | *) | 
|  | 2997 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2998 | if test ! -d "${UNIVERSALSDK}" | 
|  | 2999 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3000 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3001 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3002 | ;; | 
|  | 3003 | esac | 
|  | 3004 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3005 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3006 | else | 
|  | 3007 |  | 
|  | 3008 | UNIVERSALSDK= | 
|  | 3009 | enable_universalsdk= | 
|  | 3010 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3011 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3012 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3013 | if test -n "${UNIVERSALSDK}" | 
|  | 3014 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3016 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3017 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3019 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3020 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3021 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3022 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 3023 |  | 
| Ned Deily | 8e60f6e | 2013-05-30 00:14:29 -0700 | [diff] [blame] | 3024 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 3025 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3026 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3027 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3029 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3030 |  | 
|  | 3031 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3032 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3033 | withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 3035 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3036 | UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3037 | if test "${enable_universalsdk}" ; then | 
|  | 3038 | : | 
|  | 3039 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3040 | 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] | 3041 | fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3042 |  | 
|  | 3043 | else | 
|  | 3044 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
|  | 3046 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3047 |  | 
|  | 3048 | fi | 
|  | 3049 |  | 
|  | 3050 |  | 
|  | 3051 |  | 
|  | 3052 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3053 |  | 
|  | 3054 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3055 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3056 | withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3057 | if test "${enable_framework}"; then | 
|  | 3058 | : | 
|  | 3059 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3060 | 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] | 3061 | fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3062 | PYTHONFRAMEWORK=${withval} | 
|  | 3063 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3064 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3065 |  | 
|  | 3066 | else | 
|  | 3067 |  | 
|  | 3068 | PYTHONFRAMEWORK=Python | 
|  | 3069 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3070 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3071 |  | 
|  | 3072 | fi | 
|  | 3073 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3074 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3075 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3076 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3077 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3078 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3079 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3080 | esac | 
|  | 3081 | case $enableval in | 
|  | 3082 | no) | 
|  | 3083 | PYTHONFRAMEWORK= | 
|  | 3084 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3085 | PYTHONFRAMEWORKPREFIX= | 
|  | 3086 | PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3087 | FRAMEWORKINSTALLFIRST= | 
|  | 3088 | FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3089 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3090 | FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3091 | if test "x${prefix}" = "xNONE"; then | 
|  | 3092 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3093 | else | 
|  | 3094 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3095 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3096 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3097 | ;; | 
|  | 3098 | *) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3099 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3100 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3101 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3102 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3103 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3104 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3105 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3106 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3107 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3108 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3109 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3110 | else | 
|  | 3111 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3112 | fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3113 |  | 
|  | 3114 | case "${enableval}" in | 
|  | 3115 | /System*) | 
|  | 3116 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3117 | if test "${prefix}" = "NONE" ; then | 
|  | 3118 | # See below | 
|  | 3119 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3120 | fi | 
|  | 3121 | ;; | 
|  | 3122 |  | 
|  | 3123 | /Library*) | 
|  | 3124 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3125 | ;; | 
|  | 3126 |  | 
|  | 3127 | */Library/Frameworks) | 
|  | 3128 | MDIR="`dirname "${enableval}"`" | 
|  | 3129 | MDIR="`dirname "${MDIR}"`" | 
|  | 3130 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3131 |  | 
|  | 3132 | if test "${prefix}" = "NONE"; then | 
|  | 3133 | # User hasn't specified the | 
|  | 3134 | # --prefix option, but wants to install | 
|  | 3135 | # the framework in a non-default location, | 
|  | 3136 | # ensure that the compatibility links get | 
|  | 3137 | # installed relative to that prefix as well | 
|  | 3138 | # instead of in /usr/local. | 
|  | 3139 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3140 | fi | 
|  | 3141 | ;; | 
|  | 3142 |  | 
|  | 3143 | *) | 
|  | 3144 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3145 | ;; | 
|  | 3146 | esac | 
|  | 3147 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3148 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3149 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3150 | # Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3151 | # files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3152 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3153 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3154 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3155 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3156 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3157 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3158 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3159 |  | 
|  | 3160 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3161 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3162 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3164 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3165 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3166 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3167 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3168 | PYTHONFRAMEWORKPREFIX= | 
|  | 3169 | PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3170 | FRAMEWORKINSTALLFIRST= | 
|  | 3171 | FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3172 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3173 | FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3174 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3175 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3176 | else | 
|  | 3177 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3178 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3179 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3180 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3181 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3182 | fi | 
|  | 3183 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3184 |  | 
|  | 3185 |  | 
|  | 3186 |  | 
|  | 3187 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3188 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3189 |  | 
|  | 3190 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3191 |  | 
|  | 3192 |  | 
|  | 3193 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3194 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3195 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3196 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 3197 | ##            AS_HELP_STRING([--with-dyld], | 
|  | 3198 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3199 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3200 | # Set name for machine-dependent library files | 
|  | 3201 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3203 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3204 | if test -z "$MACHDEP" | 
|  | 3205 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3206 | # avoid using uname for cross builds | 
|  | 3207 | if test "$cross_compiling" = yes; then | 
|  | 3208 | # ac_sys_system and ac_sys_release are only used for setting | 
|  | 3209 | # `define_xopen_source' in the case statement below. For the | 
|  | 3210 | # current supported cross builds, this macro is not adjusted. | 
|  | 3211 | case "$host" in | 
|  | 3212 | *-*-linux*) | 
|  | 3213 | ac_sys_system=Linux | 
|  | 3214 | ;; | 
|  | 3215 | *-*-cygwin*) | 
|  | 3216 | ac_sys_system=Cygwin | 
|  | 3217 | ;; | 
|  | 3218 | *) | 
|  | 3219 | # for now, limit cross builds to known configurations | 
|  | 3220 | MACHDEP="unknown" | 
|  | 3221 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3222 | esac | 
|  | 3223 | ac_sys_release= | 
|  | 3224 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3225 | ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 3226 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3227 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3228 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3229 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3230 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3231 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3232 | fi | 
|  | 3233 | ac_md_system=`echo $ac_sys_system | | 
|  | 3234 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3235 | ac_md_release=`echo $ac_sys_release | | 
|  | 3236 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3237 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3238 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3239 | case $MACHDEP in | 
| Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3240 | linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3241 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3242 | darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3243 | atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3244 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3245 | '')	MACHDEP="unknown";; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3246 | esac | 
|  | 3247 | fi | 
|  | 3248 |  | 
|  | 3249 |  | 
|  | 3250 | if test "$cross_compiling" = yes; then | 
|  | 3251 | case "$host" in | 
|  | 3252 | *-*-linux*) | 
|  | 3253 | case "$host_cpu" in | 
|  | 3254 | arm*) | 
|  | 3255 | _host_cpu=arm | 
|  | 3256 | ;; | 
|  | 3257 | *) | 
|  | 3258 | _host_cpu=$host_cpu | 
|  | 3259 | esac | 
|  | 3260 | ;; | 
|  | 3261 | *-*-cygwin*) | 
|  | 3262 | _host_cpu= | 
|  | 3263 | ;; | 
|  | 3264 | *) | 
|  | 3265 | # for now, limit cross builds to known configurations | 
|  | 3266 | MACHDEP="unknown" | 
|  | 3267 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3268 | esac | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3269 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3270 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3271 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3272 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3273 | # disable features if it is defined, without any means to access these | 
|  | 3274 | # features as extensions. For these systems, we skip the definition of | 
|  | 3275 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3276 | # some feature, make sure there is no alternative way to access this | 
|  | 3277 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3278 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3279 | # wildcard, and that the wildcard does not include future systems | 
|  | 3280 | # (which may remove their limitations). | 
|  | 3281 | case $ac_sys_system/$ac_sys_release in | 
|  | 3282 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3283 | # 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] | 3284 | # 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] | 3285 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3286 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3287 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3288 | define_xopen_source=no | 
|  | 3289 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3290 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3291 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3292 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3293 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3294 |  | 
|  | 3295 | ;; | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3296 | OpenBSD/*) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3297 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3298 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3299 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3300 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3301 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3302 |  | 
|  | 3303 | ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3304 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3305 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3306 | # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3307 | 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] | 3308 | define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3309 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3310 | # request to enable features supported by the standard as a request | 
|  | 3311 | # to disable features not supported by the standard.  The best way | 
|  | 3312 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3313 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3314 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3315 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3316 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3317 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3318 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3319 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3320 | define_xopen_source=no;; | 
|  | 3321 | # 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] | 3322 | # 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] | 3323 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3324 | define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3325 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3326 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3327 | FreeBSD/4.*) | 
|  | 3328 | define_xopen_source=no;; | 
|  | 3329 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3330 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3331 | # identifies itself as Darwin/7.* | 
|  | 3332 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3333 | # disables platform specific features beyond repair. | 
|  | 3334 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3335 | # has no effect, don't bother defining them | 
|  | 3336 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3337 | define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3338 | Darwin/1[0-9].*) | 
|  | 3339 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3340 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3341 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3342 | # 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] | 3343 | AIX/4) | 
|  | 3344 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3345 | AIX/5) | 
|  | 3346 | if test `uname -r` -eq 1; then | 
|  | 3347 | define_xopen_source=no | 
|  | 3348 | fi | 
|  | 3349 | ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3350 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3351 | # defining NI_NUMERICHOST. | 
|  | 3352 | QNX/6.3.2) | 
|  | 3353 | define_xopen_source=no | 
|  | 3354 | ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3355 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3356 | esac | 
|  | 3357 |  | 
|  | 3358 | if test $define_xopen_source = yes | 
|  | 3359 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3360 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3361 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3362 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3363 |  | 
|  | 3364 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3365 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3366 | # several APIs are not declared. Since this is also needed in some | 
|  | 3367 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3368 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3369 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3370 |  | 
|  | 3371 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3372 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3373 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3374 |  | 
|  | 3375 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3376 | fi | 
|  | 3377 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3378 | # | 
|  | 3379 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3380 | # ISA on the command line.  Depending on the values of these switches, | 
|  | 3381 | # different and often incompatable code will be generated. | 
|  | 3382 | # | 
|  | 3383 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3384 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3385 | # variable is also adjusted. | 
|  | 3386 | # | 
|  | 3387 |  | 
|  | 3388 | if test ! -z "$SGI_ABI" | 
|  | 3389 | then | 
|  | 3390 | CC="cc $SGI_ABI" | 
|  | 3391 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3392 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3393 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3395 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3396 |  | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 3397 |  | 
|  | 3398 | PLATDIR=plat-$MACHDEP | 
|  | 3399 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3400 | # And add extra plat-mac for darwin | 
|  | 3401 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3402 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
|  | 3404 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3405 | if test -z "$EXTRAPLATDIR" | 
|  | 3406 | then | 
|  | 3407 | case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3408 | darwin) | 
|  | 3409 | EXTRAPLATDIR="\$(PLATMACDIRS)" | 
|  | 3410 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
|  | 3411 | ;; | 
|  | 3412 | *) | 
|  | 3413 | EXTRAPLATDIR="" | 
|  | 3414 | EXTRAMACHDEPPATH="" | 
|  | 3415 | ;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3416 | esac | 
|  | 3417 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
|  | 3419 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3420 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3421 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3422 | # it may influence the way we can build extensions, so distutils | 
|  | 3423 | # needs to check it | 
|  | 3424 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3425 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3426 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3427 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3428 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3429 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3430 |  | 
|  | 3431 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3432 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3433 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3434 | # when running configure or make.  The build should not break if they do. | 
|  | 3435 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3436 |  | 
|  | 3437 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3438 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3440 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3442 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3443 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3444 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3445 | case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3446 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3447 | without_gcc=yes;; | 
|  | 3448 | yes)	CC=gcc | 
|  | 3449 | without_gcc=no;; | 
|  | 3450 | *)	CC=$withval | 
|  | 3451 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3452 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3453 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3455 | case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3456 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3457 | without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3458 | BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3459 | case $BE_HOST_CPU in | 
|  | 3460 | ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3461 | CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3462 | without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3463 | BASECFLAGS="$BASECFLAGS -export pragma" | 
|  | 3464 | OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3465 | LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3466 | ;; | 
|  | 3467 | x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3468 | CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3469 | without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3470 | OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3471 | ;; | 
|  | 3472 | *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3473 | as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3474 | ;; | 
|  | 3475 | esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3476 | AR="\$(srcdir)/Modules/ar_beos" | 
|  | 3477 | RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3478 | ;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3479 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3480 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3481 | fi | 
|  | 3482 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3484 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3485 |  | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3487 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3488 |  | 
|  | 3489 | # Check whether --with-icc was given. | 
|  | 3490 | if test "${with_icc+set}" = set; then : | 
|  | 3491 | withval=$with_icc; | 
|  | 3492 | case $withval in | 
|  | 3493 | no)	CC=${CC:-cc} | 
|  | 3494 | with_icc=no;; | 
|  | 3495 | yes)	CC=icc | 
|  | 3496 | CXX=icpc | 
|  | 3497 | with_icc=yes;; | 
|  | 3498 | *)	CC=$withval | 
|  | 3499 | with_icc=$withval;; | 
|  | 3500 | esac | 
|  | 3501 | else | 
|  | 3502 |  | 
|  | 3503 | with_icc=no | 
|  | 3504 | fi | 
|  | 3505 |  | 
|  | 3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3507 | $as_echo "$with_icc" >&6; } | 
|  | 3508 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3509 | # If the user switches compilers, we can't believe the cache | 
|  | 3510 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3511 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3512 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3513 | (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] | 3514 | fi | 
|  | 3515 |  | 
| Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame] | 3516 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then | 
|  | 3517 | # Normally, MIPSpro CC treats #error directives as warnings, which means | 
|  | 3518 | # a successful exit code is returned (0).  This is a problem because IRIX | 
|  | 3519 | # has a bunch of system headers with this guard at the top: | 
|  | 3520 | # | 
|  | 3521 | #  #ifndef __c99 | 
|  | 3522 | #  #error This header file is to be used only for c99 mode compilations | 
|  | 3523 | #  #else | 
|  | 3524 | # | 
|  | 3525 | # When autoconf tests for such a header, like stdint.h, this happens: | 
|  | 3526 | # | 
|  | 3527 | #  configure:4619: cc -c   conftest.c >&5 | 
|  | 3528 | #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 | 
|  | 3529 | #    #error directive:  This header file is to be used only for c99 mode | 
|  | 3530 | #            compilations | 
|  | 3531 | # | 
|  | 3532 | #    #error This header file is to be used only for c99 mode compilations | 
|  | 3533 | #     ^ | 
|  | 3534 | # | 
|  | 3535 | #  configure:4619: $? = 0 | 
|  | 3536 | #  configure:4619: result: yes | 
|  | 3537 | # | 
|  | 3538 | # Therefore, we use `-diag_error 1035` to have the compiler treat the | 
|  | 3539 | # warning as an error, which causes cc to return a non-zero result, | 
|  | 3540 | # which autoconf can interpret correctly. | 
|  | 3541 | CFLAGS="$CFLAGS -diag_error 1035" | 
|  | 3542 | # Whilst we're here, we might as well make sure CXX defaults to something | 
|  | 3543 | # sensible if we're not using gcc. | 
|  | 3544 | if test -z "$CXX"; then | 
|  | 3545 | CXX="CC" | 
|  | 3546 | fi | 
|  | 3547 | fi | 
|  | 3548 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3549 | # If the user set CFLAGS, use this instead of the automatically | 
|  | 3550 | # determined setting | 
|  | 3551 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | ac_ext=c | 
|  | 3553 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3557 | if test -n "$ac_tool_prefix"; then | 
|  | 3558 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3559 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3561 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3562 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3563 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3564 | else | 
|  | 3565 | if test -n "$CC"; then | 
|  | 3566 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3567 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3569 | for as_dir in $PATH | 
|  | 3570 | do | 
|  | 3571 | IFS=$as_save_IFS | 
|  | 3572 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3573 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3574 | 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] | 3575 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3576 | $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] | 3577 | break 2 | 
|  | 3578 | fi | 
|  | 3579 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3580 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3581 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3583 | fi | 
|  | 3584 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3585 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3586 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3588 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3589 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3591 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | fi | 
|  | 3593 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3594 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | fi | 
|  | 3596 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3597 | ac_ct_CC=$CC | 
|  | 3598 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3599 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3601 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3602 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3603 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | else | 
|  | 3605 | if test -n "$ac_ct_CC"; then | 
|  | 3606 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3607 | else | 
|  | 3608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3609 | for as_dir in $PATH | 
|  | 3610 | do | 
|  | 3611 | IFS=$as_save_IFS | 
|  | 3612 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3613 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3614 | 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] | 3615 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3616 | $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] | 3617 | break 2 | 
|  | 3618 | fi | 
|  | 3619 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3620 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3621 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 |  | 
|  | 3623 | fi | 
|  | 3624 | fi | 
|  | 3625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3626 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3628 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3631 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | fi | 
|  | 3633 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3634 | if test "x$ac_ct_CC" = x; then | 
|  | 3635 | CC="" | 
|  | 3636 | else | 
|  | 3637 | case $cross_compiling:$ac_tool_warned in | 
|  | 3638 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3640 | $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] | 3641 | ac_tool_warned=yes ;; | 
|  | 3642 | esac | 
|  | 3643 | CC=$ac_ct_CC | 
|  | 3644 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | else | 
|  | 3646 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3647 | fi | 
|  | 3648 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3649 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3650 | if test -n "$ac_tool_prefix"; then | 
|  | 3651 | # 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] | 3652 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3654 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3655 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3656 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3657 | else | 
|  | 3658 | if test -n "$CC"; then | 
|  | 3659 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3660 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3662 | for as_dir in $PATH | 
|  | 3663 | do | 
|  | 3664 | IFS=$as_save_IFS | 
|  | 3665 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3666 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3667 | 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] | 3668 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3669 | $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] | 3670 | break 2 | 
|  | 3671 | fi | 
|  | 3672 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3673 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3674 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 |  | 
|  | 3676 | fi | 
|  | 3677 | fi | 
|  | 3678 | CC=$ac_cv_prog_CC | 
|  | 3679 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3681 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3684 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | fi | 
|  | 3686 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3687 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | fi | 
|  | 3690 | if test -z "$CC"; then | 
|  | 3691 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3692 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3694 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3695 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3696 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3697 | else | 
|  | 3698 | if test -n "$CC"; then | 
|  | 3699 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3700 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3701 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3703 | for as_dir in $PATH | 
|  | 3704 | do | 
|  | 3705 | IFS=$as_save_IFS | 
|  | 3706 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3707 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3708 | 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] | 3709 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3710 | ac_prog_rejected=yes | 
|  | 3711 | continue | 
|  | 3712 | fi | 
|  | 3713 | ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3714 | $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] | 3715 | break 2 | 
|  | 3716 | fi | 
|  | 3717 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3718 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3719 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3721 | if test $ac_prog_rejected = yes; then | 
|  | 3722 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3723 | set dummy $ac_cv_prog_CC | 
|  | 3724 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3726 | # We chose a different compiler from the bogus one. | 
|  | 3727 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3728 | # first if we set CC to just the basename; use the full file name. | 
|  | 3729 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3730 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3731 | fi | 
|  | 3732 | fi | 
|  | 3733 | fi | 
|  | 3734 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3736 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3738 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3739 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3741 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3742 | fi | 
|  | 3743 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3744 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | fi | 
|  | 3746 | if test -z "$CC"; then | 
|  | 3747 | if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3748 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | do | 
|  | 3750 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3751 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3753 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3754 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3755 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3756 | else | 
|  | 3757 | if test -n "$CC"; then | 
|  | 3758 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3759 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3761 | for as_dir in $PATH | 
|  | 3762 | do | 
|  | 3763 | IFS=$as_save_IFS | 
|  | 3764 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3765 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3766 | 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] | 3767 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3768 | $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] | 3769 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3770 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3771 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3772 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3773 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 |  | 
|  | 3775 | fi | 
|  | 3776 | fi | 
|  | 3777 | CC=$ac_cv_prog_CC | 
|  | 3778 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3780 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3783 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3784 | fi | 
|  | 3785 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3786 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | test -n "$CC" && break | 
|  | 3788 | done | 
|  | 3789 | fi | 
|  | 3790 | if test -z "$CC"; then | 
|  | 3791 | ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | do | 
|  | 3794 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3795 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3797 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3798 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3799 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | else | 
|  | 3801 | if test -n "$ac_ct_CC"; then | 
|  | 3802 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3803 | else | 
|  | 3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3805 | for as_dir in $PATH | 
|  | 3806 | do | 
|  | 3807 | IFS=$as_save_IFS | 
|  | 3808 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3809 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3810 | 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] | 3811 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3812 | $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] | 3813 | break 2 | 
|  | 3814 | fi | 
|  | 3815 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3816 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3817 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3818 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3819 | fi | 
|  | 3820 | fi | 
|  | 3821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3822 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3824 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3827 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3829 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3830 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3831 | test -n "$ac_ct_CC" && break | 
|  | 3832 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3833 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3834 | if test "x$ac_ct_CC" = x; then | 
|  | 3835 | CC="" | 
|  | 3836 | else | 
|  | 3837 | case $cross_compiling:$ac_tool_warned in | 
|  | 3838 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3841 | ac_tool_warned=yes ;; | 
|  | 3842 | esac | 
|  | 3843 | CC=$ac_ct_CC | 
|  | 3844 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | fi | 
|  | 3846 |  | 
|  | 3847 | fi | 
|  | 3848 |  | 
|  | 3849 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3850 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3852 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3853 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 |  | 
|  | 3855 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3856 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3857 | set X $ac_compile | 
|  | 3858 | ac_compiler=$2 | 
|  | 3859 | for ac_option in --version -v -V -qversion; do | 
|  | 3860 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3861 | case "(($ac_try" in | 
|  | 3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3863 | *) ac_try_echo=$ac_try;; | 
|  | 3864 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3866 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3867 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3869 | if test -s conftest.err; then | 
|  | 3870 | sed '10a\ | 
|  | 3871 | ... rest of stderr output deleted ... | 
|  | 3872 | 10q' conftest.err >conftest.er1 | 
|  | 3873 | cat conftest.er1 >&5 | 
|  | 3874 | fi | 
|  | 3875 | rm -f conftest.er1 conftest.err | 
|  | 3876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3877 | test $ac_status = 0; } | 
|  | 3878 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3881 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3882 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3883 | int | 
|  | 3884 | main () | 
|  | 3885 | { | 
|  | 3886 |  | 
|  | 3887 | ; | 
|  | 3888 | return 0; | 
|  | 3889 | } | 
|  | 3890 | _ACEOF | 
|  | 3891 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3892 | 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] | 3893 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3894 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3895 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3897 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3898 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3899 |  | 
|  | 3900 | # The possible output files: | 
|  | 3901 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3902 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3903 | ac_rmfiles= | 
|  | 3904 | for ac_file in $ac_files | 
|  | 3905 | do | 
|  | 3906 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3907 | *.$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] | 3908 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3909 | esac | 
|  | 3910 | done | 
|  | 3911 | rm -f $ac_rmfiles | 
|  | 3912 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3913 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3914 | case "(($ac_try" in | 
|  | 3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3916 | *) ac_try_echo=$ac_try;; | 
|  | 3917 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3919 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3920 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3921 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3923 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3924 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3925 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3926 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3927 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3928 | # Autoconf. | 
|  | 3929 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3930 | do | 
|  | 3931 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3932 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3933 | *.$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] | 3934 | ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3935 | [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3936 | # We found the default executable, but exeext='' is most | 
|  | 3937 | # certainly right. | 
|  | 3938 | break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3939 | *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3940 | 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] | 3941 | then :; else | 
|  | 3942 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3943 | fi | 
|  | 3944 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3945 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3946 | # argument, so we may need to know it at that point already. | 
|  | 3947 | # Even if this section looks crufty: it has the advantage of | 
|  | 3948 | # actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3949 | break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3950 | * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3951 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | esac | 
|  | 3953 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3954 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3955 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3956 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3957 | ac_file='' | 
|  | 3958 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3959 | if test -z "$ac_file"; then : | 
|  | 3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3961 | $as_echo "no" >&6; } | 
|  | 3962 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3963 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3964 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3965 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3967 | as_fn_error 77 "C compiler cannot create executables | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3968 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3969 | else | 
|  | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3971 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3972 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 3974 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 3976 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3978 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3979 | 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] | 3980 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 3982 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 3983 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3984 | case "(($ac_try" in | 
|  | 3985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3986 | *) ac_try_echo=$ac_try;; | 
|  | 3987 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3989 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3990 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3991 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3993 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 3995 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 3996 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 3997 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3998 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 3999 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4000 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4001 | *.$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] | 4002 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4003 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4004 | * ) break;; | 
|  | 4005 | esac | 
|  | 4006 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4007 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4008 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4009 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4010 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4011 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4012 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4013 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4015 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4016 |  | 
|  | 4017 | rm -f conftest.$ac_ext | 
|  | 4018 | EXEEXT=$ac_cv_exeext | 
|  | 4019 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4021 | /* end confdefs.h.  */ | 
|  | 4022 | #include <stdio.h> | 
|  | 4023 | int | 
|  | 4024 | main () | 
|  | 4025 | { | 
|  | 4026 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4027 | return ferror (f) || fclose (f) != 0; | 
|  | 4028 |  | 
|  | 4029 | ; | 
|  | 4030 | return 0; | 
|  | 4031 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4032 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4033 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4034 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4035 | # the compiler is broken, or we cross compile. | 
|  | 4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4037 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4038 | if test "$cross_compiling" != yes; then | 
|  | 4039 | { { ac_try="$ac_link" | 
|  | 4040 | case "(($ac_try" in | 
|  | 4041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4042 | *) ac_try_echo=$ac_try;; | 
|  | 4043 | esac | 
|  | 4044 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4045 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4046 | (eval "$ac_link") 2>&5 | 
|  | 4047 | ac_status=$? | 
|  | 4048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4049 | test $ac_status = 0; } | 
|  | 4050 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4051 | { { case "(($ac_try" in | 
|  | 4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4053 | *) ac_try_echo=$ac_try;; | 
|  | 4054 | esac | 
|  | 4055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4056 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4057 | (eval "$ac_try") 2>&5 | 
|  | 4058 | ac_status=$? | 
|  | 4059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4060 | test $ac_status = 0; }; }; then | 
|  | 4061 | cross_compiling=no | 
|  | 4062 | else | 
|  | 4063 | if test "$cross_compiling" = maybe; then | 
|  | 4064 | cross_compiling=yes | 
|  | 4065 | else | 
|  | 4066 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4067 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4068 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4069 | If you meant to cross compile, use \`--host'. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4070 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4071 | fi | 
|  | 4072 | fi | 
|  | 4073 | fi | 
|  | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4075 | $as_echo "$cross_compiling" >&6; } | 
|  | 4076 |  | 
|  | 4077 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4078 | ac_clean_files=$ac_clean_files_save | 
|  | 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4080 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4081 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4082 | $as_echo_n "(cached) " >&6 | 
|  | 4083 | else | 
|  | 4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4085 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4086 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | int | 
|  | 4088 | main () | 
|  | 4089 | { | 
|  | 4090 |  | 
|  | 4091 | ; | 
|  | 4092 | return 0; | 
|  | 4093 | } | 
|  | 4094 | _ACEOF | 
|  | 4095 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4096 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4097 | case "(($ac_try" in | 
|  | 4098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4099 | *) ac_try_echo=$ac_try;; | 
|  | 4100 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4101 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4102 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4103 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4104 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4106 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4107 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4108 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4109 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4110 | *.$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] | 4111 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4112 | break;; | 
|  | 4113 | esac | 
|  | 4114 | done | 
|  | 4115 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4116 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4117 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4118 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4119 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4120 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4121 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4122 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 4125 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 4127 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4128 | OBJEXT=$ac_cv_objext | 
|  | 4129 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4131 | $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] | 4132 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4133 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4136 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | int | 
|  | 4139 | main () | 
|  | 4140 | { | 
|  | 4141 | #ifndef __GNUC__ | 
|  | 4142 | choke me | 
|  | 4143 | #endif | 
|  | 4144 |  | 
|  | 4145 | ; | 
|  | 4146 | return 0; | 
|  | 4147 | } | 
|  | 4148 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4149 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | ac_compiler_gnu=yes | 
|  | 4151 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4152 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4154 | 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] | 4155 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4156 |  | 
|  | 4157 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4159 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4160 | if test $ac_compiler_gnu = yes; then | 
|  | 4161 | GCC=yes | 
|  | 4162 | else | 
|  | 4163 | GCC= | 
|  | 4164 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4166 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4168 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4169 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4170 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4172 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4173 | ac_c_werror_flag=yes | 
|  | 4174 | ac_cv_prog_cc_g=no | 
|  | 4175 | CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4177 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4178 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 | int | 
|  | 4180 | main () | 
|  | 4181 | { | 
|  | 4182 |  | 
|  | 4183 | ; | 
|  | 4184 | return 0; | 
|  | 4185 | } | 
|  | 4186 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4187 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4188 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4189 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4190 | CFLAGS="" | 
|  | 4191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4192 | /* end confdefs.h.  */ | 
|  | 4193 |  | 
|  | 4194 | int | 
|  | 4195 | main () | 
|  | 4196 | { | 
|  | 4197 |  | 
|  | 4198 | ; | 
|  | 4199 | return 0; | 
|  | 4200 | } | 
|  | 4201 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4202 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4203 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4204 | else | 
|  | 4205 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4206 | CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4208 | /* end confdefs.h.  */ | 
|  | 4209 |  | 
|  | 4210 | int | 
|  | 4211 | main () | 
|  | 4212 | { | 
|  | 4213 |  | 
|  | 4214 | ; | 
|  | 4215 | return 0; | 
|  | 4216 | } | 
|  | 4217 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4218 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4219 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4220 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4222 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4224 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4226 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4227 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4229 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4230 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4231 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4232 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4233 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4234 | CFLAGS="-g -O2" | 
|  | 4235 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4236 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4237 | fi | 
|  | 4238 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4239 | if test "$GCC" = yes; then | 
|  | 4240 | CFLAGS="-O2" | 
|  | 4241 | else | 
|  | 4242 | CFLAGS= | 
|  | 4243 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4244 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4246 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4247 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4248 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4249 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4250 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4251 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4253 | /* end confdefs.h.  */ | 
|  | 4254 | #include <stdarg.h> | 
|  | 4255 | #include <stdio.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4256 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4257 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4258 | struct buf { int x; }; | 
|  | 4259 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4260 | static char *e (p, i) | 
|  | 4261 | char **p; | 
|  | 4262 | int i; | 
|  | 4263 | { | 
|  | 4264 | return p[i]; | 
|  | 4265 | } | 
|  | 4266 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4267 | { | 
|  | 4268 | char *s; | 
|  | 4269 | va_list v; | 
|  | 4270 | va_start (v,p); | 
|  | 4271 | s = g (p, va_arg (v,int)); | 
|  | 4272 | va_end (v); | 
|  | 4273 | return s; | 
|  | 4274 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4275 |  | 
|  | 4276 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4277 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4278 | 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] | 4279 | 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] | 4280 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4281 | 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] | 4282 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4283 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4284 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4285 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4286 | inside strings and character constants.  */ | 
|  | 4287 | #define FOO(x) 'x' | 
|  | 4288 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4289 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 | int test (int i, double x); | 
|  | 4291 | struct s1 {int (*f) (int a);}; | 
|  | 4292 | struct s2 {int (*f) (double a);}; | 
|  | 4293 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4294 | int argc; | 
|  | 4295 | char **argv; | 
|  | 4296 | int | 
|  | 4297 | main () | 
|  | 4298 | { | 
|  | 4299 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4300 | ; | 
|  | 4301 | return 0; | 
|  | 4302 | } | 
|  | 4303 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4304 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4305 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4306 | do | 
|  | 4307 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4308 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4309 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4310 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4311 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4312 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4313 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4314 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4315 | CC=$ac_save_CC | 
|  | 4316 |  | 
|  | 4317 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4318 | # AC_CACHE_VAL | 
|  | 4319 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4320 | x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4322 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4323 | xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4325 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4326 | *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4327 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4329 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4330 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4331 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4332 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4333 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4334 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4335 | ac_ext=c | 
|  | 4336 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4340 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4341 | if test ! -z "$preset_cflags" | 
|  | 4342 | then | 
|  | 4343 | CFLAGS=$preset_cflags | 
|  | 4344 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4345 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4346 |  | 
|  | 4347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4349 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4350 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4351 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4352 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4353 | withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4354 |  | 
|  | 4355 | case $withval in | 
|  | 4356 | no)	with_cxx_main=no | 
|  | 4357 | MAINCC='$(CC)';; | 
|  | 4358 | yes)	with_cxx_main=yes | 
|  | 4359 | MAINCC='$(CXX)';; | 
|  | 4360 | *)	with_cxx_main=yes | 
|  | 4361 | MAINCC=$withval | 
|  | 4362 | if test -z "$CXX" | 
|  | 4363 | then | 
|  | 4364 | CXX=$withval | 
|  | 4365 | fi;; | 
|  | 4366 | esac | 
|  | 4367 | else | 
|  | 4368 |  | 
|  | 4369 | with_cxx_main=no | 
|  | 4370 | MAINCC='$(CC)' | 
|  | 4371 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4372 | fi | 
|  | 4373 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4375 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4376 |  | 
|  | 4377 | preset_cxx="$CXX" | 
|  | 4378 | if test -z "$CXX" | 
|  | 4379 | then | 
|  | 4380 | case "$CC" in | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4381 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4382 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4383 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4385 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4386 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4387 | $as_echo_n "(cached) " >&6 | 
|  | 4388 | else | 
|  | 4389 | case $CXX in | 
|  | 4390 | [\\/]* | ?:[\\/]*) | 
|  | 4391 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4392 | ;; | 
|  | 4393 | *) | 
|  | 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4395 | for as_dir in notfound | 
|  | 4396 | do | 
|  | 4397 | IFS=$as_save_IFS | 
|  | 4398 | test -z "$as_dir" && as_dir=. | 
|  | 4399 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4401 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4403 | break 2 | 
|  | 4404 | fi | 
|  | 4405 | done | 
|  | 4406 | done | 
|  | 4407 | IFS=$as_save_IFS | 
|  | 4408 |  | 
|  | 4409 | ;; | 
|  | 4410 | esac | 
|  | 4411 | fi | 
|  | 4412 | CXX=$ac_cv_path_CXX | 
|  | 4413 | if test -n "$CXX"; then | 
|  | 4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4415 | $as_echo "$CXX" >&6; } | 
|  | 4416 | else | 
|  | 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4418 | $as_echo "no" >&6; } | 
|  | 4419 | fi | 
|  | 4420 |  | 
|  | 4421 |  | 
|  | 4422 | fi | 
|  | 4423 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4424 | ac_pt_CXX=$CXX | 
|  | 4425 | # 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] | 4426 | set dummy g++; 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; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4429 | if ${ac_cv_path_ac_pt_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 | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4432 | case $ac_pt_CXX in | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4433 | [\\/]* | ?:[\\/]*) | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4434 | 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] | 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 | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4444 | 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] | 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 | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4455 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4456 | if test -n "$ac_pt_CXX"; then | 
|  | 4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4458 | $as_echo "$ac_pt_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 | if test "x$ac_pt_CXX" = x; then | 
|  | 4465 | CXX="g++" | 
|  | 4466 | else | 
|  | 4467 | case $cross_compiling:$ac_tool_warned in | 
|  | 4468 | yes:) | 
|  | 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4470 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4471 | ac_tool_warned=yes ;; | 
|  | 4472 | esac | 
|  | 4473 | CXX=$ac_pt_CXX | 
|  | 4474 | fi | 
|  | 4475 | else | 
|  | 4476 | CXX="$ac_cv_path_CXX" | 
|  | 4477 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4478 | ;; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4479 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4480 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4481 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4483 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4484 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4485 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4486 | else | 
|  | 4487 | case $CXX in | 
|  | 4488 | [\\/]* | ?:[\\/]*) | 
|  | 4489 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4490 | ;; | 
|  | 4491 | *) | 
|  | 4492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4493 | for as_dir in notfound | 
|  | 4494 | do | 
|  | 4495 | IFS=$as_save_IFS | 
|  | 4496 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4497 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4498 | 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] | 4499 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4500 | $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] | 4501 | break 2 | 
|  | 4502 | fi | 
|  | 4503 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4504 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4505 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4506 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4507 | ;; | 
|  | 4508 | esac | 
|  | 4509 | fi | 
|  | 4510 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4511 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4513 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4514 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4516 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4517 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4518 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4519 |  | 
|  | 4520 | fi | 
|  | 4521 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4522 | ac_pt_CXX=$CXX | 
|  | 4523 | # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4524 | set dummy c++; ac_word=$2 | 
|  | 4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4526 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4527 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4528 | $as_echo_n "(cached) " >&6 | 
|  | 4529 | else | 
|  | 4530 | case $ac_pt_CXX in | 
|  | 4531 | [\\/]* | ?:[\\/]*) | 
|  | 4532 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4533 | ;; | 
|  | 4534 | *) | 
|  | 4535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4536 | for as_dir in notfound | 
|  | 4537 | do | 
|  | 4538 | IFS=$as_save_IFS | 
|  | 4539 | test -z "$as_dir" && as_dir=. | 
|  | 4540 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4542 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4544 | break 2 | 
|  | 4545 | fi | 
|  | 4546 | done | 
|  | 4547 | done | 
|  | 4548 | IFS=$as_save_IFS | 
|  | 4549 |  | 
|  | 4550 | ;; | 
|  | 4551 | esac | 
|  | 4552 | fi | 
|  | 4553 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4554 | if test -n "$ac_pt_CXX"; then | 
|  | 4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4556 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4557 | else | 
|  | 4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4559 | $as_echo "no" >&6; } | 
|  | 4560 | fi | 
|  | 4561 |  | 
|  | 4562 | if test "x$ac_pt_CXX" = x; then | 
|  | 4563 | CXX="c++" | 
|  | 4564 | else | 
|  | 4565 | case $cross_compiling:$ac_tool_warned in | 
|  | 4566 | yes:) | 
|  | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4568 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4569 | ac_tool_warned=yes ;; | 
|  | 4570 | esac | 
|  | 4571 | CXX=$ac_pt_CXX | 
|  | 4572 | fi | 
|  | 4573 | else | 
|  | 4574 | CXX="$ac_cv_path_CXX" | 
|  | 4575 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4576 | ;; | 
|  | 4577 | esac | 
|  | 4578 | if test "$CXX" = "notfound" | 
|  | 4579 | then | 
|  | 4580 | CXX="" | 
|  | 4581 | fi | 
|  | 4582 | fi | 
|  | 4583 | if test -z "$CXX" | 
|  | 4584 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4585 | if test -n "$ac_tool_prefix"; then | 
|  | 4586 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 4587 | do | 
|  | 4588 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 4589 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4591 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4592 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4593 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4594 | else | 
|  | 4595 | if test -n "$CXX"; then | 
|  | 4596 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 4597 | else | 
|  | 4598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4599 | for as_dir in $PATH | 
|  | 4600 | do | 
|  | 4601 | IFS=$as_save_IFS | 
|  | 4602 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4603 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4604 | 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] | 4605 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4606 | $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] | 4607 | break 2 | 
|  | 4608 | fi | 
|  | 4609 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4610 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4611 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4612 |  | 
|  | 4613 | fi | 
|  | 4614 | fi | 
|  | 4615 | CXX=$ac_cv_prog_CXX | 
|  | 4616 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4618 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4619 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4621 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4622 | fi | 
|  | 4623 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4624 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4625 | test -n "$CXX" && break | 
|  | 4626 | done | 
|  | 4627 | fi | 
|  | 4628 | if test -z "$CXX"; then | 
|  | 4629 | ac_ct_CXX=$CXX | 
|  | 4630 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 4631 | do | 
|  | 4632 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4633 | set dummy $ac_prog; ac_word=$2 | 
|  | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4635 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4636 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 4637 | $as_echo_n "(cached) " >&6 | 
|  | 4638 | else | 
|  | 4639 | if test -n "$ac_ct_CXX"; then | 
|  | 4640 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 4641 | else | 
|  | 4642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4643 | for as_dir in $PATH | 
|  | 4644 | do | 
|  | 4645 | IFS=$as_save_IFS | 
|  | 4646 | test -z "$as_dir" && as_dir=. | 
|  | 4647 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4648 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4649 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 4650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4651 | break 2 | 
|  | 4652 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4653 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4654 | done | 
|  | 4655 | IFS=$as_save_IFS | 
|  | 4656 |  | 
|  | 4657 | fi | 
|  | 4658 | fi | 
|  | 4659 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 4660 | if test -n "$ac_ct_CXX"; then | 
|  | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 4662 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 4663 | else | 
|  | 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4665 | $as_echo "no" >&6; } | 
|  | 4666 | fi | 
|  | 4667 |  | 
|  | 4668 |  | 
|  | 4669 | test -n "$ac_ct_CXX" && break | 
|  | 4670 | done | 
|  | 4671 |  | 
|  | 4672 | if test "x$ac_ct_CXX" = x; then | 
|  | 4673 | CXX="notfound" | 
|  | 4674 | else | 
|  | 4675 | case $cross_compiling:$ac_tool_warned in | 
|  | 4676 | yes:) | 
|  | 4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4678 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4679 | ac_tool_warned=yes ;; | 
|  | 4680 | esac | 
|  | 4681 | CXX=$ac_ct_CXX | 
|  | 4682 | fi | 
|  | 4683 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4684 |  | 
|  | 4685 | if test "$CXX" = "notfound" | 
|  | 4686 | then | 
|  | 4687 | CXX="" | 
|  | 4688 | fi | 
|  | 4689 | fi | 
|  | 4690 | if test "$preset_cxx" != "$CXX" | 
|  | 4691 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4693 |  | 
|  | 4694 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4695 | If this is not intended, then set CXX on the configure command line. | 
|  | 4696 | " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4697 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4698 |  | 
|  | 4699 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4700 | If this is not intended, then set CXX on the configure command line. | 
|  | 4701 | " >&2;} | 
|  | 4702 | fi | 
|  | 4703 |  | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 4704 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 4705 |  | 
|  | 4706 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4707 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4708 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4709 |  | 
|  | 4710 | ac_ext=c | 
|  | 4711 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4716 | $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] | 4717 | # On Suns, sometimes $CPP names a directory. | 
|  | 4718 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4719 | CPP= | 
|  | 4720 | fi | 
|  | 4721 | if test -z "$CPP"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4722 | if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4723 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4724 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4725 | # Double quotes because CPP needs to be expanded | 
|  | 4726 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4727 | do | 
|  | 4728 | ac_preproc_ok=false | 
|  | 4729 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4730 | do | 
|  | 4731 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4732 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4733 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4734 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4735 | # 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] | 4736 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4738 | /* end confdefs.h.  */ | 
|  | 4739 | #ifdef __STDC__ | 
|  | 4740 | # include <limits.h> | 
|  | 4741 | #else | 
|  | 4742 | # include <assert.h> | 
|  | 4743 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4744 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4745 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4746 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4747 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4748 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4749 | # Broken: fails on valid input. | 
|  | 4750 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4751 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4752 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4753 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4754 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4755 | # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4757 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4758 | #include <ac_nonexistent.h> | 
|  | 4759 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4760 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4761 | # Broken: success on invalid input. | 
|  | 4762 | continue | 
|  | 4763 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4764 | # Passes both tests. | 
|  | 4765 | ac_preproc_ok=: | 
|  | 4766 | break | 
|  | 4767 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4768 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4769 |  | 
|  | 4770 | done | 
|  | 4771 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4772 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4773 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4774 | break | 
|  | 4775 | fi | 
|  | 4776 |  | 
|  | 4777 | done | 
|  | 4778 | ac_cv_prog_CPP=$CPP | 
|  | 4779 |  | 
|  | 4780 | fi | 
|  | 4781 | CPP=$ac_cv_prog_CPP | 
|  | 4782 | else | 
|  | 4783 | ac_cv_prog_CPP=$CPP | 
|  | 4784 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4786 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | ac_preproc_ok=false | 
|  | 4788 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4789 | do | 
|  | 4790 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4791 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4792 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4793 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4795 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4797 | /* end confdefs.h.  */ | 
|  | 4798 | #ifdef __STDC__ | 
|  | 4799 | # include <limits.h> | 
|  | 4800 | #else | 
|  | 4801 | # include <assert.h> | 
|  | 4802 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4803 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4804 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4805 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4806 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4807 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4808 | # Broken: fails on valid input. | 
|  | 4809 | continue | 
|  | 4810 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4811 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4812 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4813 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4814 | # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4816 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4817 | #include <ac_nonexistent.h> | 
|  | 4818 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4819 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4820 | # Broken: success on invalid input. | 
|  | 4821 | continue | 
|  | 4822 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4823 | # Passes both tests. | 
|  | 4824 | ac_preproc_ok=: | 
|  | 4825 | break | 
|  | 4826 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4827 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4828 |  | 
|  | 4829 | done | 
|  | 4830 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4831 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4832 | if $ac_preproc_ok; then : | 
|  | 4833 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4834 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4835 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4837 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4838 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4839 | fi | 
|  | 4840 |  | 
|  | 4841 | ac_ext=c | 
|  | 4842 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4846 |  | 
|  | 4847 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4849 | $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] | 4850 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4851 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4852 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4853 | if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4854 | ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4855 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4857 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4858 | do | 
|  | 4859 | IFS=$as_save_IFS | 
|  | 4860 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4861 | for ac_prog in grep ggrep; do | 
|  | 4862 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4863 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4864 | as_fn_executable_p "$ac_path_GREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4865 | # 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] | 4866 | # Check for GNU $ac_path_GREP | 
|  | 4867 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4868 | *GNU*) | 
|  | 4869 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4870 | *) | 
|  | 4871 | ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4872 | $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4873 | while : | 
|  | 4874 | do | 
|  | 4875 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4876 | mv "conftest.tmp" "conftest.in" | 
|  | 4877 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4878 | $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4879 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4880 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4881 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4882 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4883 | # Best one so far, save it but keep looking for a better one | 
|  | 4884 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4885 | ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4886 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4887 | # 10*(2^10) chars as input seems more than enough | 
|  | 4888 | test $ac_count -gt 10 && break | 
|  | 4889 | done | 
|  | 4890 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4891 | esac | 
|  | 4892 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4893 | $ac_path_GREP_found && break 3 | 
|  | 4894 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4895 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4896 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4897 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4898 | if test -z "$ac_cv_path_GREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4899 | 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] | 4900 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4901 | else | 
|  | 4902 | ac_cv_path_GREP=$GREP | 
|  | 4903 | fi | 
|  | 4904 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4905 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4907 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4908 | GREP="$ac_cv_path_GREP" | 
|  | 4909 |  | 
|  | 4910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 4912 | $as_echo_n "checking for egrep... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4913 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4914 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4915 | else | 
|  | 4916 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4917 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4918 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4919 | if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4920 | ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4921 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4923 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4924 | do | 
|  | 4925 | IFS=$as_save_IFS | 
|  | 4926 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4927 | for ac_prog in egrep; do | 
|  | 4928 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4929 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4930 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4931 | # 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] | 4932 | # Check for GNU $ac_path_EGREP | 
|  | 4933 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4934 | *GNU*) | 
|  | 4935 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4936 | *) | 
|  | 4937 | ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4938 | $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4939 | while : | 
|  | 4940 | do | 
|  | 4941 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4942 | mv "conftest.tmp" "conftest.in" | 
|  | 4943 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4944 | $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4945 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4946 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4947 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4948 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4949 | # Best one so far, save it but keep looking for a better one | 
|  | 4950 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4951 | ac_path_EGREP_max=$ac_count | 
|  | 4952 | fi | 
|  | 4953 | # 10*(2^10) chars as input seems more than enough | 
|  | 4954 | test $ac_count -gt 10 && break | 
|  | 4955 | done | 
|  | 4956 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4957 | esac | 
|  | 4958 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4959 | $ac_path_EGREP_found && break 3 | 
|  | 4960 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4961 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4962 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4963 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4964 | if test -z "$ac_cv_path_EGREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4965 | 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] | 4966 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4967 | else | 
|  | 4968 | ac_cv_path_EGREP=$EGREP | 
|  | 4969 | fi | 
|  | 4970 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4971 | fi | 
|  | 4972 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 4974 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4975 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4976 |  | 
|  | 4977 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 4979 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4980 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4981 | $as_echo_n "(cached) " >&6 | 
|  | 4982 | else | 
|  | 4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4984 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4985 | #include <stdlib.h> | 
|  | 4986 | #include <stdarg.h> | 
|  | 4987 | #include <string.h> | 
|  | 4988 | #include <float.h> | 
|  | 4989 |  | 
|  | 4990 | int | 
|  | 4991 | main () | 
|  | 4992 | { | 
|  | 4993 |  | 
|  | 4994 | ; | 
|  | 4995 | return 0; | 
|  | 4996 | } | 
|  | 4997 | _ACEOF | 
|  | 4998 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4999 | ac_cv_header_stdc=yes | 
|  | 5000 | else | 
|  | 5001 | ac_cv_header_stdc=no | 
|  | 5002 | fi | 
|  | 5003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5004 |  | 
|  | 5005 | if test $ac_cv_header_stdc = yes; then | 
|  | 5006 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5008 | /* end confdefs.h.  */ | 
|  | 5009 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 5010 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 5011 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5013 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5014 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5015 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5016 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5017 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 5018 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5019 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5020 | fi | 
|  | 5021 |  | 
|  | 5022 | if test $ac_cv_header_stdc = yes; then | 
|  | 5023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5025 | /* end confdefs.h.  */ | 
|  | 5026 | #include <stdlib.h> | 
|  | 5027 |  | 
|  | 5028 | _ACEOF | 
|  | 5029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5030 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5031 |  | 
|  | 5032 | else | 
|  | 5033 | ac_cv_header_stdc=no | 
|  | 5034 | fi | 
|  | 5035 | rm -f conftest* | 
|  | 5036 |  | 
|  | 5037 | fi | 
|  | 5038 |  | 
|  | 5039 | if test $ac_cv_header_stdc = yes; then | 
|  | 5040 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5041 | if test "$cross_compiling" = yes; then : | 
|  | 5042 | : | 
|  | 5043 | else | 
|  | 5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5045 | /* end confdefs.h.  */ | 
|  | 5046 | #include <ctype.h> | 
|  | 5047 | #include <stdlib.h> | 
|  | 5048 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5049 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5050 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5051 | #else | 
|  | 5052 | # define ISLOWER(c) \ | 
|  | 5053 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5054 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5055 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5056 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5057 | #endif | 
|  | 5058 |  | 
|  | 5059 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5060 | int | 
|  | 5061 | main () | 
|  | 5062 | { | 
|  | 5063 | int i; | 
|  | 5064 | for (i = 0; i < 256; i++) | 
|  | 5065 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5066 | || toupper (i) != TOUPPER (i)) | 
|  | 5067 | return 2; | 
|  | 5068 | return 0; | 
|  | 5069 | } | 
|  | 5070 | _ACEOF | 
|  | 5071 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5072 |  | 
|  | 5073 | else | 
|  | 5074 | ac_cv_header_stdc=no | 
|  | 5075 | fi | 
|  | 5076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5077 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5078 | fi | 
|  | 5079 |  | 
|  | 5080 | fi | 
|  | 5081 | fi | 
|  | 5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5083 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5084 | if test $ac_cv_header_stdc = yes; then | 
|  | 5085 |  | 
|  | 5086 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5087 |  | 
|  | 5088 | fi | 
|  | 5089 |  | 
|  | 5090 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5091 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5092 | inttypes.h stdint.h unistd.h | 
|  | 5093 | do : | 
|  | 5094 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5095 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5096 | " | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5097 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5098 | cat >>confdefs.h <<_ACEOF | 
|  | 5099 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5100 | _ACEOF | 
|  | 5101 |  | 
|  | 5102 | fi | 
|  | 5103 |  | 
|  | 5104 | done | 
|  | 5105 |  | 
|  | 5106 |  | 
|  | 5107 |  | 
|  | 5108 | 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] | 5109 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5110 | MINIX=yes | 
|  | 5111 | else | 
|  | 5112 | MINIX= | 
|  | 5113 | fi | 
|  | 5114 |  | 
|  | 5115 |  | 
|  | 5116 | if test "$MINIX" = yes; then | 
|  | 5117 |  | 
|  | 5118 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5119 |  | 
|  | 5120 |  | 
|  | 5121 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5122 |  | 
|  | 5123 |  | 
|  | 5124 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5125 |  | 
|  | 5126 | fi | 
|  | 5127 |  | 
|  | 5128 |  | 
|  | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5130 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5131 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5132 | $as_echo_n "(cached) " >&6 | 
|  | 5133 | else | 
|  | 5134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5135 | /* end confdefs.h.  */ | 
|  | 5136 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5137 | #         define __EXTENSIONS__ 1 | 
|  | 5138 | $ac_includes_default | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5139 | int | 
|  | 5140 | main () | 
|  | 5141 | { | 
|  | 5142 |  | 
|  | 5143 | ; | 
|  | 5144 | return 0; | 
|  | 5145 | } | 
|  | 5146 | _ACEOF | 
|  | 5147 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5148 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5149 | else | 
|  | 5150 | ac_cv_safe_to_define___extensions__=no | 
|  | 5151 | fi | 
|  | 5152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5153 | fi | 
|  | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5155 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5156 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5157 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5158 |  | 
|  | 5159 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5160 |  | 
|  | 5161 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5162 |  | 
|  | 5163 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5164 |  | 
|  | 5165 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5166 |  | 
|  | 5167 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5168 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5169 | # Check for unsupported systems | 
|  | 5170 | case $ac_sys_system/$ac_sys_release in | 
|  | 5171 | atheos*|Linux*/1*) | 
|  | 5172 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5173 | echo See README for details. | 
|  | 5174 | exit 1;; | 
|  | 5175 | esac | 
|  | 5176 |  | 
|  | 5177 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5179 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5180 |  | 
|  | 5181 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5182 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5183 | withval=$with_suffix; | 
|  | 5184 | case $withval in | 
|  | 5185 | no)	EXEEXT=;; | 
|  | 5186 | yes)	EXEEXT=.exe;; | 
|  | 5187 | *)	EXEEXT=$withval;; | 
|  | 5188 | esac | 
|  | 5189 | fi | 
|  | 5190 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5192 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5193 |  | 
|  | 5194 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5195 | # case we give a warning if no ext is given | 
|  | 5196 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5198 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5199 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5200 | mkdir CaseSensitiveTestDir | 
|  | 5201 | fi | 
|  | 5202 |  | 
|  | 5203 | if test -d casesensitivetestdir | 
|  | 5204 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5206 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | BUILDEXEEXT=.exe | 
|  | 5208 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5210 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5211 | BUILDEXEEXT=$EXEEXT | 
|  | 5212 | fi | 
|  | 5213 | rmdir CaseSensitiveTestDir | 
|  | 5214 |  | 
|  | 5215 | case $MACHDEP in | 
|  | 5216 | bsdos*) | 
|  | 5217 | case $CC in | 
|  | 5218 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5219 | esac;; | 
|  | 5220 | esac | 
|  | 5221 |  | 
|  | 5222 | case $ac_sys_system in | 
|  | 5223 | hp*|HP*) | 
|  | 5224 | case $CC in | 
|  | 5225 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5226 | esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5227 | SunOS*) | 
|  | 5228 | # Some functions have a prototype only with that define, e.g. confstr | 
|  | 5229 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5230 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5231 |  | 
|  | 5232 | ;; | 
|  | 5233 | esac | 
|  | 5234 |  | 
|  | 5235 |  | 
|  | 5236 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5238 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5239 | if test -z "$LIBRARY" | 
|  | 5240 | then | 
|  | 5241 | LIBRARY='libpython$(VERSION).a' | 
|  | 5242 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5244 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5245 |  | 
|  | 5246 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5247 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5248 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5249 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5250 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5251 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5252 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5253 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5254 | # | 
|  | 5255 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5256 | # | 
|  | 5257 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5258 | # on the system - some systems like version suffix, others don't | 
|  | 5259 |  | 
|  | 5260 |  | 
|  | 5261 |  | 
|  | 5262 |  | 
|  | 5263 |  | 
|  | 5264 |  | 
|  | 5265 | LDLIBRARY="$LIBRARY" | 
|  | 5266 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5267 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5268 | DLLLIBRARY='' | 
|  | 5269 | LDLIBRARYDIR='' | 
|  | 5270 | RUNSHARED='' | 
|  | 5271 |  | 
|  | 5272 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5273 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5274 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5275 | # python might then depend on the C++ runtime | 
|  | 5276 | # This is altered for AIX in order to build the export list before | 
|  | 5277 | # linking. | 
|  | 5278 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5280 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5281 | if test -z "$LINKCC" | 
|  | 5282 | then | 
|  | 5283 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5284 | case $ac_sys_system in | 
|  | 5285 | AIX*) | 
|  | 5286 | exp_extra="\"\"" | 
|  | 5287 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5288 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5289 | exp_extra="." | 
|  | 5290 | fi | 
|  | 5291 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5292 | QNX*) | 
|  | 5293 | # qcc must be used because the other compilers do not | 
|  | 5294 | # support -N. | 
|  | 5295 | LINKCC=qcc;; | 
|  | 5296 | esac | 
|  | 5297 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5299 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5300 |  | 
|  | 5301 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5302 | # make sure we default having it set to "no": this is used by | 
|  | 5303 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5304 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5305 | # in the same bahaviour as before. | 
|  | 5306 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5308 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5309 | ac_prog=ld | 
|  | 5310 | if test "$GCC" = yes; then | 
|  | 5311 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5312 | fi | 
|  | 5313 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5314 | *GNU*) | 
|  | 5315 | GNULD=yes;; | 
|  | 5316 | *) | 
|  | 5317 | GNULD=no;; | 
|  | 5318 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5320 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5321 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5323 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5324 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5325 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5326 | enableval=$enable_shared; | 
|  | 5327 | fi | 
|  | 5328 |  | 
|  | 5329 |  | 
|  | 5330 | if test -z "$enable_shared" | 
|  | 5331 | then | 
|  | 5332 | case $ac_sys_system in | 
|  | 5333 | CYGWIN* | atheos*) | 
|  | 5334 | enable_shared="yes";; | 
|  | 5335 | *) | 
|  | 5336 | enable_shared="no";; | 
|  | 5337 | esac | 
|  | 5338 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5340 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5341 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5343 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5344 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5345 | if test "${enable_profiling+set}" = set; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5346 | enableval=$enable_profiling; | 
|  | 5347 | fi | 
|  | 5348 |  | 
|  | 5349 | if test "x$enable_profiling" = xyes; then | 
|  | 5350 | ac_save_cc="$CC" | 
| Benjamin Peterson | b9be7bb | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5351 | CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5353 | /* end confdefs.h.  */ | 
|  | 5354 | int main() { return 0; } | 
|  | 5355 | _ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5356 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5357 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5358 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5359 | enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5360 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5361 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5362 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5363 | CC="$ac_save_cc" | 
|  | 5364 | else | 
|  | 5365 | enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5366 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 5368 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5369 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5370 | if test "x$enable_profiling" = xyes; then | 
|  | 5371 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 5372 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5373 | fi | 
|  | 5374 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 5376 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5377 |  | 
|  | 5378 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 5379 | # library that we build, but we do not want to link against it (we | 
|  | 5380 | # will find it with a -framework option). For this reason there is an | 
|  | 5381 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 5382 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 5383 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 5384 | if test "$enable_framework" | 
|  | 5385 | then | 
|  | 5386 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5387 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5388 | BLDLIBRARY='' | 
|  | 5389 | else | 
|  | 5390 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5391 | fi | 
|  | 5392 |  | 
|  | 5393 | # Other platforms follow | 
|  | 5394 | if test $enable_shared = "yes"; then | 
|  | 5395 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5396 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5397 |  | 
|  | 5398 | case $ac_sys_system in | 
|  | 5399 | BeOS*) | 
|  | 5400 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5401 | ;; | 
|  | 5402 | CYGWIN*) | 
|  | 5403 | LDLIBRARY='libpython$(VERSION).dll.a' | 
|  | 5404 | DLLLIBRARY='libpython$(VERSION).dll' | 
|  | 5405 | ;; | 
|  | 5406 | SunOS*) | 
|  | 5407 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5408 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5409 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5410 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
|  | 5411 | ;; | 
| Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 5412 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5413 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5414 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5415 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5416 | case $ac_sys_system in | 
|  | 5417 | FreeBSD*) | 
|  | 5418 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
|  | 5419 | ;; | 
|  | 5420 | esac | 
|  | 5421 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
|  | 5422 | ;; | 
|  | 5423 | hp*|HP*) | 
|  | 5424 | case `uname -m` in | 
|  | 5425 | ia64) | 
|  | 5426 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5427 | ;; | 
|  | 5428 | *) | 
|  | 5429 | LDLIBRARY='libpython$(VERSION).sl' | 
|  | 5430 | ;; | 
|  | 5431 | esac | 
|  | 5432 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5433 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5434 | ;; | 
|  | 5435 | OSF*) | 
|  | 5436 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5437 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5438 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5439 | ;; | 
|  | 5440 | atheos*) | 
|  | 5441 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 5442 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
|  | 5443 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
|  | 5444 | ;; | 
|  | 5445 | Darwin*) | 
|  | 5446 | LDLIBRARY='libpython$(VERSION).dylib' | 
|  | 5447 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5448 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5449 | ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5450 | AIX*) | 
|  | 5451 | LDLIBRARY='libpython$(VERSION).so' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5452 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5453 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5454 |  | 
|  | 5455 | esac | 
|  | 5456 | else # shared is disabled | 
|  | 5457 | case $ac_sys_system in | 
|  | 5458 | CYGWIN*) | 
|  | 5459 | BLDLIBRARY='$(LIBRARY)' | 
|  | 5460 | LDLIBRARY='libpython$(VERSION).dll.a' | 
|  | 5461 | ;; | 
|  | 5462 | esac | 
|  | 5463 | fi | 
|  | 5464 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5465 | if test "$cross_compiling" = yes; then | 
|  | 5466 | RUNSHARED= | 
|  | 5467 | fi | 
|  | 5468 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 5470 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5471 |  | 
|  | 5472 | if test -n "$ac_tool_prefix"; then | 
|  | 5473 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5474 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5476 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5477 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5478 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5479 | else | 
|  | 5480 | if test -n "$RANLIB"; then | 
|  | 5481 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5482 | else | 
|  | 5483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5484 | for as_dir in $PATH | 
|  | 5485 | do | 
|  | 5486 | IFS=$as_save_IFS | 
|  | 5487 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5488 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5489 | 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] | 5490 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5491 | $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] | 5492 | break 2 | 
|  | 5493 | fi | 
|  | 5494 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5495 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5496 | IFS=$as_save_IFS | 
|  | 5497 |  | 
|  | 5498 | fi | 
|  | 5499 | fi | 
|  | 5500 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5501 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5503 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5504 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5506 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5507 | fi | 
|  | 5508 |  | 
|  | 5509 |  | 
|  | 5510 | fi | 
|  | 5511 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 5512 | ac_ct_RANLIB=$RANLIB | 
|  | 5513 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 5514 | set dummy ranlib; 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_ac_ct_RANLIB+:} 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 "$ac_ct_RANLIB"; then | 
|  | 5521 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5530 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| 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 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 5541 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 5543 | $as_echo "$ac_ct_RANLIB" >&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 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 5550 | RANLIB=":" | 
|  | 5551 | else | 
|  | 5552 | case $cross_compiling:$ac_tool_warned in | 
|  | 5553 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5555 | $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] | 5556 | ac_tool_warned=yes ;; | 
|  | 5557 | esac | 
|  | 5558 | RANLIB=$ac_ct_RANLIB | 
|  | 5559 | fi | 
|  | 5560 | else | 
|  | 5561 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 5562 | fi | 
|  | 5563 |  | 
|  | 5564 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5565 | if test -n "$ac_tool_prefix"; then | 
|  | 5566 | for ac_prog in ar aal | 
|  | 5567 | do | 
|  | 5568 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5569 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5571 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5572 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5573 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5574 | else | 
|  | 5575 | if test -n "$AR"; then | 
|  | 5576 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 5577 | else | 
|  | 5578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5579 | for as_dir in $PATH | 
|  | 5580 | do | 
|  | 5581 | IFS=$as_save_IFS | 
|  | 5582 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5583 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5584 | 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] | 5585 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5586 | $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] | 5587 | break 2 | 
|  | 5588 | fi | 
|  | 5589 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5590 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5591 | IFS=$as_save_IFS | 
|  | 5592 |  | 
|  | 5593 | fi | 
|  | 5594 | fi | 
|  | 5595 | AR=$ac_cv_prog_AR | 
|  | 5596 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 5598 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5599 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5601 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5602 | fi | 
|  | 5603 |  | 
|  | 5604 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5605 | test -n "$AR" && break | 
|  | 5606 | done | 
|  | 5607 | fi | 
|  | 5608 | if test -z "$AR"; then | 
|  | 5609 | ac_ct_AR=$AR | 
|  | 5610 | for ac_prog in ar aal | 
|  | 5611 | do | 
|  | 5612 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5613 | set dummy $ac_prog; ac_word=$2 | 
|  | 5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5615 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5616 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 5617 | $as_echo_n "(cached) " >&6 | 
|  | 5618 | else | 
|  | 5619 | if test -n "$ac_ct_AR"; then | 
|  | 5620 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 5621 | else | 
|  | 5622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5623 | for as_dir in $PATH | 
|  | 5624 | do | 
|  | 5625 | IFS=$as_save_IFS | 
|  | 5626 | test -z "$as_dir" && as_dir=. | 
|  | 5627 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5629 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 5630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5631 | break 2 | 
|  | 5632 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5633 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5634 | done | 
|  | 5635 | IFS=$as_save_IFS | 
|  | 5636 |  | 
|  | 5637 | fi | 
|  | 5638 | fi | 
|  | 5639 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 5640 | if test -n "$ac_ct_AR"; then | 
|  | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 5642 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 5643 | else | 
|  | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5645 | $as_echo "no" >&6; } | 
|  | 5646 | fi | 
|  | 5647 |  | 
|  | 5648 |  | 
|  | 5649 | test -n "$ac_ct_AR" && break | 
|  | 5650 | done | 
|  | 5651 |  | 
|  | 5652 | if test "x$ac_ct_AR" = x; then | 
|  | 5653 | AR="ar" | 
|  | 5654 | else | 
|  | 5655 | case $cross_compiling:$ac_tool_warned in | 
|  | 5656 | yes:) | 
|  | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5659 | ac_tool_warned=yes ;; | 
|  | 5660 | esac | 
|  | 5661 | AR=$ac_ct_AR | 
|  | 5662 | fi | 
|  | 5663 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5664 |  | 
|  | 5665 |  | 
|  | 5666 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 5667 |  | 
|  | 5668 | if test -z "$ARFLAGS" | 
|  | 5669 | then | 
|  | 5670 | ARFLAGS="rc" | 
|  | 5671 | fi | 
|  | 5672 |  | 
|  | 5673 |  | 
|  | 5674 | # Extract the first word of "svnversion", so it can be a program name with args. | 
|  | 5675 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5677 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5678 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5679 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5680 | else | 
|  | 5681 | if test -n "$SVNVERSION"; then | 
|  | 5682 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
|  | 5683 | else | 
|  | 5684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5685 | for as_dir in $PATH | 
|  | 5686 | do | 
|  | 5687 | IFS=$as_save_IFS | 
|  | 5688 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5689 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5690 | 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] | 5691 | ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5692 | $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] | 5693 | break 2 | 
|  | 5694 | fi | 
|  | 5695 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5696 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5697 | IFS=$as_save_IFS | 
|  | 5698 |  | 
|  | 5699 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
|  | 5700 | fi | 
|  | 5701 | fi | 
|  | 5702 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
|  | 5703 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
|  | 5705 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5706 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5708 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5709 | fi | 
|  | 5710 |  | 
|  | 5711 |  | 
|  | 5712 | if test $SVNVERSION = found | 
|  | 5713 | then | 
|  | 5714 | SVNVERSION="svnversion \$(srcdir)" | 
|  | 5715 | else | 
|  | 5716 | SVNVERSION="echo Unversioned directory" | 
|  | 5717 | fi | 
|  | 5718 |  | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5719 |  | 
| Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5720 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5721 | # If we're building out-of-tree make sure Include (in the current dir) | 
|  | 5722 | # gets picked up before its $srcdir counterpart in order for Python-ast.h | 
|  | 5723 | # and graminit.h to get picked up from the correct directory. | 
|  | 5724 | # (A side effect of this is that these resources will automatically be | 
|  | 5725 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 5726 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 5727 | #  off.) | 
|  | 5728 | BASECPPFLAGS="-IInclude" | 
|  | 5729 | else | 
|  | 5730 | BASECPPFLAGS="" | 
|  | 5731 | fi | 
|  | 5732 |  | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5733 |  | 
|  | 5734 |  | 
|  | 5735 |  | 
|  | 5736 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 5737 | set dummy hg; ac_word=$2 | 
|  | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5739 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5740 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5741 | $as_echo_n "(cached) " >&6 | 
|  | 5742 | else | 
|  | 5743 | if test -n "$HAS_HG"; then | 
|  | 5744 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 5745 | else | 
|  | 5746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5747 | for as_dir in $PATH | 
|  | 5748 | do | 
|  | 5749 | IFS=$as_save_IFS | 
|  | 5750 | test -z "$as_dir" && as_dir=. | 
|  | 5751 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5752 | 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] | 5753 | ac_cv_prog_HAS_HG="found" | 
|  | 5754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5755 | break 2 | 
|  | 5756 | fi | 
|  | 5757 | done | 
|  | 5758 | done | 
|  | 5759 | IFS=$as_save_IFS | 
|  | 5760 |  | 
|  | 5761 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 5762 | fi | 
|  | 5763 | fi | 
|  | 5764 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 5765 | if test -n "$HAS_HG"; then | 
|  | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 5767 | $as_echo "$HAS_HG" >&6; } | 
|  | 5768 | else | 
|  | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5770 | $as_echo "no" >&6; } | 
|  | 5771 | fi | 
|  | 5772 |  | 
|  | 5773 |  | 
|  | 5774 | if test $HAS_HG = found | 
|  | 5775 | then | 
|  | 5776 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 5777 | HGTAG="hg id -t \$(srcdir)" | 
|  | 5778 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 5779 | else | 
|  | 5780 | HGVERSION="" | 
|  | 5781 | HGTAG="" | 
|  | 5782 | HGBRANCH="" | 
|  | 5783 | fi | 
|  | 5784 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5785 | case $MACHDEP in | 
|  | 5786 | bsdos*|hp*|HP*) | 
|  | 5787 | # install -d does not work on BSDI or HP-UX | 
|  | 5788 | if test -z "$INSTALL" | 
|  | 5789 | then | 
|  | 5790 | INSTALL="${srcdir}/install-sh -c" | 
|  | 5791 | fi | 
|  | 5792 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5793 | # Find a good install program.  We prefer a C program (faster), | 
|  | 5794 | # so one script is as good as another.  But avoid the broken or | 
|  | 5795 | # incompatible versions: | 
|  | 5796 | # SysV /etc/install, /usr/sbin/install | 
|  | 5797 | # SunOS /usr/etc/install | 
|  | 5798 | # IRIX /sbin/install | 
|  | 5799 | # AIX /bin/install | 
|  | 5800 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 5801 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 5802 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 5803 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 5804 | # OS/2's system install, which has a completely different semantic | 
|  | 5805 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5806 | # Reject install programs that cannot install multiple files. | 
|  | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 5808 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5809 | if test -z "$INSTALL"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5810 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5811 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5812 | else | 
|  | 5813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5814 | for as_dir in $PATH | 
|  | 5815 | do | 
|  | 5816 | IFS=$as_save_IFS | 
|  | 5817 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5818 | # Account for people who put trailing slashes in PATH elements. | 
|  | 5819 | case $as_dir/ in #(( | 
|  | 5820 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5821 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5822 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5823 | /usr/ucb/* ) ;; | 
|  | 5824 | *) | 
|  | 5825 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 5826 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 5827 | # by default. | 
|  | 5828 | for ac_prog in ginstall scoinst install; do | 
|  | 5829 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5830 | 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] | 5831 | if test $ac_prog = install && | 
|  | 5832 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5833 | # AIX install.  It has an incompatible calling convention. | 
|  | 5834 | : | 
|  | 5835 | elif test $ac_prog = install && | 
|  | 5836 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5837 | # program-specific install script used by HP pwplus--don't use. | 
|  | 5838 | : | 
|  | 5839 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5840 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 5841 | echo one > conftest.one | 
|  | 5842 | echo two > conftest.two | 
|  | 5843 | mkdir conftest.dir | 
|  | 5844 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 5845 | test -s conftest.one && test -s conftest.two && | 
|  | 5846 | test -s conftest.dir/conftest.one && | 
|  | 5847 | test -s conftest.dir/conftest.two | 
|  | 5848 | then | 
|  | 5849 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 5850 | break 3 | 
|  | 5851 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5852 | fi | 
|  | 5853 | fi | 
|  | 5854 | done | 
|  | 5855 | done | 
|  | 5856 | ;; | 
|  | 5857 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5858 |  | 
|  | 5859 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5860 | IFS=$as_save_IFS | 
|  | 5861 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5862 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5863 |  | 
|  | 5864 | fi | 
|  | 5865 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5866 | INSTALL=$ac_cv_path_install | 
|  | 5867 | else | 
|  | 5868 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 5869 | # value for INSTALL within a source directory, because that will | 
|  | 5870 | # break other packages using the cache if that directory is | 
|  | 5871 | # removed, or if the value is a relative name. | 
|  | 5872 | INSTALL=$ac_install_sh | 
|  | 5873 | fi | 
|  | 5874 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 5876 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5877 |  | 
|  | 5878 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 5879 | # It thinks the first close brace ends the variable substitution. | 
|  | 5880 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 5881 |  | 
|  | 5882 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 5883 |  | 
|  | 5884 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 5885 |  | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 5887 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 5888 | if test -z "$MKDIR_P"; then | 
|  | 5889 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 5890 | $as_echo_n "(cached) " >&6 | 
|  | 5891 | else | 
|  | 5892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5893 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 5894 | do | 
|  | 5895 | IFS=$as_save_IFS | 
|  | 5896 | test -z "$as_dir" && as_dir=. | 
|  | 5897 | for ac_prog in mkdir gmkdir; do | 
|  | 5898 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5899 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5900 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 5901 | 'mkdir (GNU coreutils) '* | \ | 
|  | 5902 | 'mkdir (coreutils) '* | \ | 
|  | 5903 | 'mkdir (fileutils) '4.1*) | 
|  | 5904 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 5905 | break 3;; | 
|  | 5906 | esac | 
|  | 5907 | done | 
|  | 5908 | done | 
|  | 5909 | done | 
|  | 5910 | IFS=$as_save_IFS | 
|  | 5911 |  | 
|  | 5912 | fi | 
|  | 5913 |  | 
|  | 5914 | test -d ./--version && rmdir ./--version | 
|  | 5915 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 5916 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 5917 | else | 
|  | 5918 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 5919 | # value for MKDIR_P within a source directory, because that will | 
|  | 5920 | # break other packages using the cache if that directory is | 
|  | 5921 | # removed, or if the value is a relative name. | 
|  | 5922 | MKDIR_P="$ac_install_sh -d" | 
|  | 5923 | fi | 
|  | 5924 | fi | 
|  | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 5926 | $as_echo "$MKDIR_P" >&6; } | 
|  | 5927 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5928 |  | 
|  | 5929 | # Not every filesystem supports hard links | 
|  | 5930 |  | 
|  | 5931 | if test -z "$LN" ; then | 
|  | 5932 | case $ac_sys_system in | 
|  | 5933 | BeOS*) LN="ln -s";; | 
|  | 5934 | CYGWIN*) LN="ln -s";; | 
|  | 5935 | atheos*) LN="ln -s";; | 
|  | 5936 | *) LN=ln;; | 
|  | 5937 | esac | 
|  | 5938 | fi | 
|  | 5939 |  | 
|  | 5940 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 5942 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5943 |  | 
|  | 5944 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5945 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5946 | withval=$with_pydebug; | 
|  | 5947 | if test "$withval" != no | 
|  | 5948 | then | 
|  | 5949 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5950 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5951 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5953 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5954 | Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5955 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5956 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5957 | fi | 
|  | 5958 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5960 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5961 | fi | 
|  | 5962 |  | 
|  | 5963 |  | 
|  | 5964 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 5965 | # merged with this chunk of code? | 
|  | 5966 |  | 
|  | 5967 | # Optimizer/debugger flags | 
|  | 5968 | # ------------------------ | 
|  | 5969 | # (The following bit of code is complicated enough - please keep things | 
|  | 5970 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 5971 |  | 
|  | 5972 | # There are two parallel sets of case statements below, one that checks to | 
|  | 5973 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 5974 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 5975 | # user set OPT. | 
|  | 5976 |  | 
|  | 5977 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 5978 | # it on the command line | 
|  | 5979 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5980 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5981 | then | 
|  | 5982 | case $GCC in | 
|  | 5983 | yes) | 
|  | 5984 | if test "$CC" != 'g++' ; then | 
|  | 5985 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 5986 | fi | 
|  | 5987 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 5988 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 5989 | WRAP="-fwrapv" | 
|  | 5990 | fi | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5991 |  | 
|  | 5992 | # Clang also needs -fwrapv | 
| Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5993 | case $CC in | 
|  | 5994 | *clang*) WRAP="-fwrapv" | 
|  | 5995 | ;; | 
|  | 5996 | esac | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5997 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5998 | case $ac_cv_prog_cc_g in | 
|  | 5999 | yes) | 
|  | 6000 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 6001 | # Optimization messes up debuggers, so turn it off for | 
|  | 6002 | # debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 6003 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6004 | else | 
|  | 6005 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 6006 | fi | 
|  | 6007 | ;; | 
|  | 6008 | *) | 
|  | 6009 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 6010 | ;; | 
|  | 6011 | esac | 
|  | 6012 | case $ac_sys_system in | 
|  | 6013 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6014 | ;; | 
|  | 6015 | esac | 
|  | 6016 | ;; | 
|  | 6017 |  | 
|  | 6018 | *) | 
|  | 6019 | OPT="-O" | 
|  | 6020 | ;; | 
|  | 6021 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6022 | fi | 
|  | 6023 |  | 
|  | 6024 |  | 
|  | 6025 |  | 
|  | 6026 | # The -arch flags for universal builds on OSX | 
|  | 6027 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6028 |  | 
|  | 6029 |  | 
|  | 6030 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6031 | case $GCC in | 
|  | 6032 | yes) | 
|  | 6033 | # Python violates C99 rules, by casting between incompatible | 
|  | 6034 | # pointer types. GCC may generate bad code as a result of that, | 
|  | 6035 | # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
|  | 6037 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6038 | ac_save_cc="$CC" | 
|  | 6039 | CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6040 | if ${ac_cv_no_strict_aliasing_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6041 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6042 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6044 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6045 |  | 
|  | 6046 | int | 
|  | 6047 | main () | 
|  | 6048 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6049 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6050 | ; | 
|  | 6051 | return 0; | 
|  | 6052 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6053 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6054 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6055 | ac_cv_no_strict_aliasing_ok=yes | 
|  | 6056 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6057 | ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6058 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6060 | fi | 
|  | 6061 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6062 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
|  | 6064 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6065 | if test $ac_cv_no_strict_aliasing_ok = yes | 
|  | 6066 | then | 
|  | 6067 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 6068 | fi | 
|  | 6069 |  | 
|  | 6070 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 6071 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 6072 | # the standard. | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 6073 | case $host in | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6074 | alpha*) | 
|  | 6075 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 6076 | ;; | 
|  | 6077 | esac | 
|  | 6078 |  | 
|  | 6079 | case $ac_sys_system in | 
|  | 6080 | SCO_SV*) | 
|  | 6081 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 6082 | ;; | 
|  | 6083 | # is there any other compiler on Darwin besides gcc? | 
|  | 6084 | Darwin*) | 
|  | 6085 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 6086 | # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6087 | if test "${CC}" = gcc | 
|  | 6088 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
|  | 6090 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6091 | case "${UNIVERSALSDK}" in | 
|  | 6092 | */MacOSX10.4u.sdk) | 
|  | 6093 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 6094 | # compiler is gcc, otherwise the user will get very | 
|  | 6095 | # confusing error messages when building on OSX 10.6 | 
|  | 6096 | CC=gcc-4.0 | 
|  | 6097 | CPP=cpp-4.0 | 
|  | 6098 | ;; | 
|  | 6099 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 6101 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6102 | fi | 
|  | 6103 |  | 
|  | 6104 | # Calculate the right deployment target for this build. | 
|  | 6105 | # | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 6106 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 6107 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 6108 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 6109 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 6110 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 6111 | if test ${cur_target_major} -eq 10 && \ | 
|  | 6112 | test ${cur_target_minor} -ge 3 | 
|  | 6113 | then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6114 | cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6115 | if test ${enable_universalsdk}; then | 
|  | 6116 | if test "${UNIVERSAL_ARCHS}" = "all"; then | 
|  | 6117 | # Ensure that the default platform for a | 
|  | 6118 | # 4-way universal build is OSX 10.5, | 
|  | 6119 | # that's the first OS release where | 
|  | 6120 | # 4-way builds make sense. | 
|  | 6121 | cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 6122 |  | 
|  | 6123 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
|  | 6124 | cur_target='10.5' | 
|  | 6125 |  | 
|  | 6126 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
|  | 6127 | cur_target='10.5' | 
|  | 6128 |  | 
|  | 6129 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
|  | 6130 | cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6131 | fi | 
|  | 6132 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 6133 | if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6134 | # On Intel macs default to a deployment | 
|  | 6135 | # target of 10.4, that's the first OSX | 
|  | 6136 | # release with Intel support. | 
|  | 6137 | cur_target="10.4" | 
|  | 6138 | fi | 
|  | 6139 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6140 | fi | 
|  | 6141 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
|  | 6142 |  | 
|  | 6143 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 6144 | # environment with a value that is the same as what we'll use | 
|  | 6145 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 6146 | # environment during configure and build time. | 
|  | 6147 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 6148 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 6149 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 6150 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6151 | if test "${enable_universalsdk}"; then | 
|  | 6152 | UNIVERSAL_ARCH_FLAGS="" | 
|  | 6153 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
|  | 6154 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 6155 | ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6156 | LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6157 |  | 
|  | 6158 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
|  | 6159 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 6160 | LIPO_32BIT_FLAGS="" | 
|  | 6161 | ARCH_RUN_32BIT="true" | 
|  | 6162 |  | 
|  | 6163 | elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
|  | 6164 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 6165 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6166 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6167 |  | 
|  | 6168 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
|  | 6169 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 6170 | LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6171 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6172 |  | 
|  | 6173 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
|  | 6174 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 6175 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 6176 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6177 |  | 
|  | 6178 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6179 | 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] | 6180 |  | 
|  | 6181 | fi | 
|  | 6182 |  | 
|  | 6183 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 6184 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
|  | 6185 | if test "${UNIVERSALSDK}" != "/" | 
|  | 6186 | then | 
|  | 6187 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 6188 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 6189 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6190 | fi | 
|  | 6191 |  | 
|  | 6192 | fi | 
|  | 6193 |  | 
|  | 6194 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6195 | ;; | 
|  | 6196 | OSF*) | 
|  | 6197 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 6198 | ;; | 
|  | 6199 | esac | 
|  | 6200 | ;; | 
|  | 6201 |  | 
|  | 6202 | *) | 
|  | 6203 | case $ac_sys_system in | 
|  | 6204 | OpenUNIX*|UnixWare*) | 
|  | 6205 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 6206 | ;; | 
|  | 6207 | OSF*) | 
|  | 6208 | BASECFLAGS="$BASECFLAGS -ieee -std" | 
|  | 6209 | ;; | 
|  | 6210 | SCO_SV*) | 
|  | 6211 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 6212 | ;; | 
|  | 6213 | esac | 
|  | 6214 | ;; | 
|  | 6215 | esac | 
|  | 6216 |  | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 6217 | # ICC needs -fp-model strict or floats behave badly | 
|  | 6218 | case "$CC" in | 
|  | 6219 | *icc*) | 
|  | 6220 | BASECFLAGS="$BASECFLAGS -fp-model strict" | 
|  | 6221 | ;; | 
|  | 6222 | esac | 
|  | 6223 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6224 | if test "$Py_DEBUG" = 'true'; then | 
|  | 6225 | : | 
|  | 6226 | else | 
|  | 6227 | OPT="-DNDEBUG $OPT" | 
|  | 6228 | fi | 
|  | 6229 |  | 
|  | 6230 | if test "$ac_arch_flags" | 
|  | 6231 | then | 
|  | 6232 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 6233 | fi | 
|  | 6234 |  | 
|  | 6235 | # disable check for icc since it seems to pass, but generates a warning | 
|  | 6236 | if test "$CC" = icc | 
|  | 6237 | then | 
|  | 6238 | ac_cv_opt_olimit_ok=no | 
|  | 6239 | fi | 
|  | 6240 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
|  | 6242 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6243 | if ${ac_cv_opt_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6244 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6245 | else | 
|  | 6246 | ac_save_cc="$CC" | 
|  | 6247 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6249 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6250 |  | 
|  | 6251 | int | 
|  | 6252 | main () | 
|  | 6253 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6254 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6255 | ; | 
|  | 6256 | return 0; | 
|  | 6257 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6258 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6259 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6260 | ac_cv_opt_olimit_ok=yes | 
|  | 6261 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6262 | ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6263 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6264 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6266 | CC="$ac_save_cc" | 
|  | 6267 | fi | 
|  | 6268 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
|  | 6270 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6271 | if test $ac_cv_opt_olimit_ok = yes; then | 
|  | 6272 | case $ac_sys_system in | 
|  | 6273 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
|  | 6274 | # olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
|  | 6275 | # environment? | 
|  | 6276 | Darwin*) | 
|  | 6277 | ;; | 
| Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 6278 | # XXX thankfully this useless troublemaker of a flag has been | 
|  | 6279 | # eradicated in the 3.x line.  For now, make sure it isn't picked | 
|  | 6280 | # up by any of our other platforms that use CC. | 
|  | 6281 | AIX*|SunOS*|HP-UX*|IRIX*) | 
|  | 6282 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6283 | *) | 
|  | 6284 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
|  | 6285 | ;; | 
|  | 6286 | esac | 
|  | 6287 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
|  | 6289 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6290 | if ${ac_cv_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6291 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6292 | else | 
|  | 6293 | ac_save_cc="$CC" | 
|  | 6294 | CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6296 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6297 |  | 
|  | 6298 | int | 
|  | 6299 | main () | 
|  | 6300 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6301 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6302 | ; | 
|  | 6303 | return 0; | 
|  | 6304 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6305 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6306 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6307 | ac_cv_olimit_ok=yes | 
|  | 6308 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6309 | ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6310 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6311 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6313 | CC="$ac_save_cc" | 
|  | 6314 | fi | 
|  | 6315 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
|  | 6317 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6318 | if test $ac_cv_olimit_ok = yes; then | 
| Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 6319 | case $ac_sys_system in | 
|  | 6320 | # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. | 
|  | 6321 | HP-UX*) | 
|  | 6322 | ;; | 
|  | 6323 | *) | 
|  | 6324 | BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
|  | 6325 | ;; | 
|  | 6326 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6327 | fi | 
|  | 6328 | fi | 
|  | 6329 |  | 
|  | 6330 | # Check whether GCC supports PyArg_ParseTuple format | 
|  | 6331 | if test "$GCC" = "yes" | 
|  | 6332 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
|  | 6334 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6335 | save_CFLAGS=$CFLAGS | 
| Benjamin Peterson | c875966 | 2013-05-11 13:00:05 -0500 | [diff] [blame] | 6336 | CFLAGS="$CFLAGS -Werror -Wformat" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6338 | /* end confdefs.h.  */ | 
|  | 6339 |  | 
|  | 6340 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6341 | int | 
|  | 6342 | main () | 
|  | 6343 | { | 
|  | 6344 |  | 
|  | 6345 | ; | 
|  | 6346 | return 0; | 
|  | 6347 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6348 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6349 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6350 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6351 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6352 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6353 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6354 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6356 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6357 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6358 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6359 |  | 
|  | 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6361 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6362 |  | 
|  | 6363 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6365 | CFLAGS=$save_CFLAGS | 
|  | 6366 | fi | 
|  | 6367 |  | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 6368 |  | 
|  | 6369 | # Enable PGO flags. | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 6370 |  | 
|  | 6371 |  | 
|  | 6372 |  | 
|  | 6373 |  | 
|  | 6374 |  | 
|  | 6375 |  | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 6376 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6377 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6379 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6380 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : | 
|  | 6381 | $as_echo_n "(cached) " >&6 | 
|  | 6382 | else | 
|  | 6383 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6384 | ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. | 
|  | 6385 | else | 
|  | 6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6387 | for as_dir in $PATH | 
|  | 6388 | do | 
|  | 6389 | IFS=$as_save_IFS | 
|  | 6390 | test -z "$as_dir" && as_dir=. | 
|  | 6391 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6393 | ac_cv_prog_LLVM_PROF_FOUND="found" | 
|  | 6394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6395 | break 2 | 
|  | 6396 | fi | 
|  | 6397 | done | 
|  | 6398 | done | 
|  | 6399 | IFS=$as_save_IFS | 
|  | 6400 |  | 
|  | 6401 | test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" | 
|  | 6402 | fi | 
|  | 6403 | fi | 
|  | 6404 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND | 
|  | 6405 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 | 
|  | 6407 | $as_echo "$LLVM_PROF_FOUND" >&6; } | 
|  | 6408 | else | 
|  | 6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6410 | $as_echo "no" >&6; } | 
|  | 6411 | fi | 
|  | 6412 |  | 
|  | 6413 |  | 
|  | 6414 | LLVM_PROF_ERR=no | 
|  | 6415 | case $CC in | 
|  | 6416 | *clang*) | 
|  | 6417 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6418 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6419 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6420 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6421 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6422 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6423 | then | 
|  | 6424 | LLVM_PROF_ERR=yes | 
|  | 6425 | fi | 
|  | 6426 | ;; | 
|  | 6427 | *gcc*) | 
|  | 6428 | case $ac_sys_system in | 
|  | 6429 | Darwin*) | 
|  | 6430 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6431 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6432 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6433 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6434 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6435 | then | 
|  | 6436 | LLVM_PROF_ERR=yes | 
|  | 6437 | fi | 
|  | 6438 | ;; | 
|  | 6439 | *) | 
|  | 6440 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6441 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6442 | LLVM_PROF_MERGER="true" | 
|  | 6443 | LLVM_PROF_FILE="" | 
|  | 6444 | ;; | 
|  | 6445 | esac | 
|  | 6446 | ;; | 
| Zachary Ware | 6ed42ea | 2015-12-21 11:43:03 -0600 | [diff] [blame] | 6447 | *icc*) | 
|  | 6448 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6449 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6450 | LLVM_PROF_MERGER="true" | 
|  | 6451 | LLVM_PROF_FILE="" | 
|  | 6452 | ;; | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 6453 | esac | 
|  | 6454 |  | 
|  | 6455 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6456 | # On some compilers, pthreads are available without further options | 
|  | 6457 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 6458 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 6459 | # So we have to see first whether pthreads are available without | 
|  | 6460 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 6462 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6463 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6464 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6465 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6466 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6467 | ac_cv_pthread_is_default=no | 
|  | 6468 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6470 | /* end confdefs.h.  */ | 
|  | 6471 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6472 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6473 | #include <pthread.h> | 
|  | 6474 |  | 
|  | 6475 | void* routine(void* p){return NULL;} | 
|  | 6476 |  | 
|  | 6477 | int main(){ | 
|  | 6478 | pthread_t p; | 
|  | 6479 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 6480 | return 1; | 
|  | 6481 | (void)pthread_detach(p); | 
|  | 6482 | return 0; | 
|  | 6483 | } | 
|  | 6484 |  | 
|  | 6485 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6486 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6487 |  | 
|  | 6488 | ac_cv_pthread_is_default=yes | 
|  | 6489 | ac_cv_kthread=no | 
|  | 6490 | ac_cv_pthread=no | 
|  | 6491 |  | 
|  | 6492 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6493 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6494 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6496 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6497 | fi | 
|  | 6498 |  | 
|  | 6499 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6500 | fi | 
|  | 6501 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 6503 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6504 |  | 
|  | 6505 |  | 
|  | 6506 | if test $ac_cv_pthread_is_default = yes | 
|  | 6507 | then | 
|  | 6508 | ac_cv_kpthread=no | 
|  | 6509 | else | 
|  | 6510 | # -Kpthread, if available, provides the right #defines | 
|  | 6511 | # and linker options to make pthread_create available | 
|  | 6512 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 6513 | # so we need to run a program to see whether it really made the | 
|  | 6514 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 6516 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6517 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6518 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6519 | else | 
|  | 6520 | ac_save_cc="$CC" | 
|  | 6521 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6522 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6523 | ac_cv_kpthread=no | 
|  | 6524 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6526 | /* end confdefs.h.  */ | 
|  | 6527 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6528 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6529 | #include <pthread.h> | 
|  | 6530 |  | 
|  | 6531 | void* routine(void* p){return NULL;} | 
|  | 6532 |  | 
|  | 6533 | int main(){ | 
|  | 6534 | pthread_t p; | 
|  | 6535 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 6536 | return 1; | 
|  | 6537 | (void)pthread_detach(p); | 
|  | 6538 | return 0; | 
|  | 6539 | } | 
|  | 6540 |  | 
|  | 6541 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6542 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6543 | ac_cv_kpthread=yes | 
|  | 6544 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6545 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6546 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6548 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6549 | fi | 
|  | 6550 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6551 | CC="$ac_save_cc" | 
|  | 6552 | fi | 
|  | 6553 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 6555 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6556 | fi | 
|  | 6557 |  | 
|  | 6558 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 6559 | then | 
|  | 6560 | # -Kthread, if available, provides the right #defines | 
|  | 6561 | # and linker options to make pthread_create available | 
|  | 6562 | # Some compilers won't report that they do not support -Kthread, | 
|  | 6563 | # so we need to run a program to see whether it really made the | 
|  | 6564 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 6566 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6567 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6568 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6569 | else | 
|  | 6570 | ac_save_cc="$CC" | 
|  | 6571 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6572 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6573 | ac_cv_kthread=no | 
|  | 6574 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6576 | /* end confdefs.h.  */ | 
|  | 6577 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6578 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6579 | #include <pthread.h> | 
|  | 6580 |  | 
|  | 6581 | void* routine(void* p){return NULL;} | 
|  | 6582 |  | 
|  | 6583 | int main(){ | 
|  | 6584 | pthread_t p; | 
|  | 6585 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 6586 | return 1; | 
|  | 6587 | (void)pthread_detach(p); | 
|  | 6588 | return 0; | 
|  | 6589 | } | 
|  | 6590 |  | 
|  | 6591 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6592 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6593 | ac_cv_kthread=yes | 
|  | 6594 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6595 | ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6596 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6597 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6598 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6599 | fi | 
|  | 6600 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6601 | CC="$ac_save_cc" | 
|  | 6602 | fi | 
|  | 6603 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 6605 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6606 | fi | 
|  | 6607 |  | 
|  | 6608 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 6609 | then | 
|  | 6610 | # -pthread, if available, provides the right #defines | 
|  | 6611 | # and linker options to make pthread_create available | 
|  | 6612 | # Some compilers won't report that they do not support -pthread, | 
|  | 6613 | # so we need to run a program to see whether it really made the | 
|  | 6614 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 6616 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | fa3f9a3 | 2013-01-25 15:32:31 +0100 | [diff] [blame] | 6617 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6618 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6619 | else | 
|  | 6620 | ac_save_cc="$CC" | 
|  | 6621 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6622 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6623 | ac_cv_pthread=no | 
|  | 6624 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6626 | /* end confdefs.h.  */ | 
|  | 6627 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6628 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6629 | #include <pthread.h> | 
|  | 6630 |  | 
|  | 6631 | void* routine(void* p){return NULL;} | 
|  | 6632 |  | 
|  | 6633 | int main(){ | 
|  | 6634 | pthread_t p; | 
|  | 6635 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 6636 | return 1; | 
|  | 6637 | (void)pthread_detach(p); | 
|  | 6638 | return 0; | 
|  | 6639 | } | 
|  | 6640 |  | 
|  | 6641 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6642 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6643 | ac_cv_pthread=yes | 
|  | 6644 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6645 | ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6646 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6647 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6648 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6649 | fi | 
|  | 6650 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6651 | CC="$ac_save_cc" | 
|  | 6652 | fi | 
|  | 6653 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 6655 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6656 | fi | 
|  | 6657 |  | 
|  | 6658 | # If we have set a CC compiler flag for thread support then | 
|  | 6659 | # check if it works for CXX, too. | 
|  | 6660 | ac_cv_cxx_thread=no | 
|  | 6661 | if test ! -z "$CXX" | 
|  | 6662 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 6664 | $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] | 6665 | ac_save_cxx="$CXX" | 
|  | 6666 |  | 
|  | 6667 | if test "$ac_cv_kpthread" = "yes" | 
|  | 6668 | then | 
|  | 6669 | CXX="$CXX -Kpthread" | 
|  | 6670 | ac_cv_cxx_thread=yes | 
|  | 6671 | elif test "$ac_cv_kthread" = "yes" | 
|  | 6672 | then | 
|  | 6673 | CXX="$CXX -Kthread" | 
|  | 6674 | ac_cv_cxx_thread=yes | 
|  | 6675 | elif test "$ac_cv_pthread" = "yes" | 
|  | 6676 | then | 
|  | 6677 | CXX="$CXX -pthread" | 
|  | 6678 | ac_cv_cxx_thread=yes | 
|  | 6679 | fi | 
|  | 6680 |  | 
|  | 6681 | if test $ac_cv_cxx_thread = yes | 
|  | 6682 | then | 
|  | 6683 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 6684 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 6685 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 6686 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 6687 | then | 
|  | 6688 | ac_cv_cxx_thread=yes | 
|  | 6689 | else | 
|  | 6690 | ac_cv_cxx_thread=no | 
|  | 6691 | fi | 
|  | 6692 | rm -fr conftest* | 
|  | 6693 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 6695 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6696 | fi | 
|  | 6697 | CXX="$ac_save_cxx" | 
|  | 6698 |  | 
|  | 6699 |  | 
|  | 6700 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 6702 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6703 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6704 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6705 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6707 | /* end confdefs.h.  */ | 
|  | 6708 | #include <stdlib.h> | 
|  | 6709 | #include <stdarg.h> | 
|  | 6710 | #include <string.h> | 
|  | 6711 | #include <float.h> | 
|  | 6712 |  | 
|  | 6713 | int | 
|  | 6714 | main () | 
|  | 6715 | { | 
|  | 6716 |  | 
|  | 6717 | ; | 
|  | 6718 | return 0; | 
|  | 6719 | } | 
|  | 6720 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6721 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6722 | ac_cv_header_stdc=yes | 
|  | 6723 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6724 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6725 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6727 |  | 
|  | 6728 | if test $ac_cv_header_stdc = yes; then | 
|  | 6729 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6731 | /* end confdefs.h.  */ | 
|  | 6732 | #include <string.h> | 
|  | 6733 |  | 
|  | 6734 | _ACEOF | 
|  | 6735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6736 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 6737 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6738 | else | 
|  | 6739 | ac_cv_header_stdc=no | 
|  | 6740 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6741 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6742 |  | 
|  | 6743 | fi | 
|  | 6744 |  | 
|  | 6745 | if test $ac_cv_header_stdc = yes; then | 
|  | 6746 | # 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] | 6747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6748 | /* end confdefs.h.  */ | 
|  | 6749 | #include <stdlib.h> | 
|  | 6750 |  | 
|  | 6751 | _ACEOF | 
|  | 6752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6753 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 6754 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6755 | else | 
|  | 6756 | ac_cv_header_stdc=no | 
|  | 6757 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6758 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6759 |  | 
|  | 6760 | fi | 
|  | 6761 |  | 
|  | 6762 | if test $ac_cv_header_stdc = yes; then | 
|  | 6763 | # /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] | 6764 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6765 | : | 
|  | 6766 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6768 | /* end confdefs.h.  */ | 
|  | 6769 | #include <ctype.h> | 
|  | 6770 | #include <stdlib.h> | 
|  | 6771 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 6772 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 6773 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 6774 | #else | 
|  | 6775 | # define ISLOWER(c) \ | 
|  | 6776 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 6777 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 6778 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 6779 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 6780 | #endif | 
|  | 6781 |  | 
|  | 6782 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 6783 | int | 
|  | 6784 | main () | 
|  | 6785 | { | 
|  | 6786 | int i; | 
|  | 6787 | for (i = 0; i < 256; i++) | 
|  | 6788 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 6789 | || toupper (i) != TOUPPER (i)) | 
|  | 6790 | return 2; | 
|  | 6791 | return 0; | 
|  | 6792 | } | 
|  | 6793 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6794 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 6795 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6796 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6797 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6798 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6800 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6801 | fi | 
|  | 6802 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6803 | fi | 
|  | 6804 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 6806 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6807 | if test $ac_cv_header_stdc = yes; then | 
|  | 6808 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6809 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6810 |  | 
|  | 6811 | fi | 
|  | 6812 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6813 | 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] | 6814 | fcntl.h grp.h \ | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6815 | 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] | 6816 | 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] | 6817 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6818 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
|  | 6819 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6820 | 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] | 6821 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6822 | 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] | 6823 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Christian Heimes | 3aa138f | 2013-06-18 13:25:24 +0200 | [diff] [blame] | 6824 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6825 | do : | 
|  | 6826 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 6827 | 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] | 6828 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6829 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6830 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | _ACEOF | 
|  | 6832 |  | 
|  | 6833 | fi | 
|  | 6834 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6835 | done | 
|  | 6836 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6837 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6838 | 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] | 6839 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 6841 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6842 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6843 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6844 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6846 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6847 | #include <sys/types.h> | 
|  | 6848 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | int | 
|  | 6851 | main () | 
|  | 6852 | { | 
|  | 6853 | if ((DIR *) 0) | 
|  | 6854 | return 0; | 
|  | 6855 | ; | 
|  | 6856 | return 0; | 
|  | 6857 | } | 
|  | 6858 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6859 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6861 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6862 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6863 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6865 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6866 | eval ac_res=\$$as_ac_Header | 
|  | 6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 6868 | $as_echo "$ac_res" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6869 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6870 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6871 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | _ACEOF | 
|  | 6873 |  | 
|  | 6874 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6875 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6876 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6877 | done | 
|  | 6878 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 6879 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6881 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6882 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6883 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6884 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6887 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6889 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6890 | Use char because int might match the return type of a GCC | 
|  | 6891 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | #ifdef __cplusplus | 
|  | 6893 | extern "C" | 
|  | 6894 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6895 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6896 | int | 
|  | 6897 | main () | 
|  | 6898 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6899 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | ; | 
|  | 6901 | return 0; | 
|  | 6902 | } | 
|  | 6903 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6904 | for ac_lib in '' dir; do | 
|  | 6905 | if test -z "$ac_lib"; then | 
|  | 6906 | ac_res="none required" | 
|  | 6907 | else | 
|  | 6908 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6909 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6910 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6911 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6912 | ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6913 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6914 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6915 | conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6916 | if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6917 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6918 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6919 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6920 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6921 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6922 | else | 
|  | 6923 | ac_cv_search_opendir=no | 
|  | 6924 | fi | 
|  | 6925 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | LIBS=$ac_func_search_save_LIBS | 
|  | 6927 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6929 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6930 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6931 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6932 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6933 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6934 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6936 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6938 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6939 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6940 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | else | 
|  | 6942 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6944 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6946 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6947 | Use char because int might match the return type of a GCC | 
|  | 6948 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | #ifdef __cplusplus | 
|  | 6950 | extern "C" | 
|  | 6951 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | int | 
|  | 6954 | main () | 
|  | 6955 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6956 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6957 | ; | 
|  | 6958 | return 0; | 
|  | 6959 | } | 
|  | 6960 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6961 | for ac_lib in '' x; do | 
|  | 6962 | if test -z "$ac_lib"; then | 
|  | 6963 | ac_res="none required" | 
|  | 6964 | else | 
|  | 6965 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6966 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6967 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6968 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6969 | ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6970 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6971 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6972 | conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6973 | if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6974 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6975 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6976 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6977 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6978 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6979 | else | 
|  | 6980 | ac_cv_search_opendir=no | 
|  | 6981 | fi | 
|  | 6982 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | LIBS=$ac_func_search_save_LIBS | 
|  | 6984 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6986 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6987 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6988 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6989 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6991 | fi | 
|  | 6992 |  | 
|  | 6993 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6994 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 6996 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6997 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6998 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6999 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7001 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7002 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7003 | int | 
|  | 7004 | main () | 
|  | 7005 | { | 
|  | 7006 | return makedev(0, 0); | 
|  | 7007 | ; | 
|  | 7008 | return 0; | 
|  | 7009 | } | 
|  | 7010 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7011 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7012 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 7013 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7014 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7015 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7016 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7017 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7018 |  | 
|  | 7019 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 7021 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7022 |  | 
|  | 7023 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7024 | 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] | 7025 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7026 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7027 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7028 |  | 
|  | 7029 | fi | 
|  | 7030 |  | 
|  | 7031 |  | 
|  | 7032 |  | 
|  | 7033 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7034 | 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] | 7035 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7036 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7037 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7038 |  | 
|  | 7039 | fi | 
|  | 7040 |  | 
|  | 7041 |  | 
|  | 7042 | fi | 
|  | 7043 | fi | 
|  | 7044 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7045 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7046 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7047 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7048 | do : | 
|  | 7049 | 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] | 7050 | #ifdef HAVE_ASM_TYPES_H | 
|  | 7051 | #include <asm/types.h> | 
|  | 7052 | #endif | 
|  | 7053 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7054 | #include <sys/socket.h> | 
|  | 7055 | #endif | 
|  | 7056 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7057 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7058 | 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] | 7059 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7060 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7061 | _ACEOF | 
|  | 7062 |  | 
|  | 7063 | fi | 
|  | 7064 |  | 
|  | 7065 | done | 
|  | 7066 |  | 
|  | 7067 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7068 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7069 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 7071 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 7072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7073 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7074 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7075 |  | 
|  | 7076 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7078 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7079 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7080 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 |  | 
|  | 7082 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7083 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7084 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7085 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7086 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7087 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7088 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 7090 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7091 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7092 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 7094 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 7095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7096 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 7097 |  | 
|  | 7098 | #if defined(MAJOR_IN_MKDEV) | 
|  | 7099 | #include <sys/mkdev.h> | 
|  | 7100 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 7101 | #include <sys/sysmacros.h> | 
|  | 7102 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7103 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 7104 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7105 | int | 
|  | 7106 | main () | 
|  | 7107 | { | 
|  | 7108 | makedev(0, 0) | 
|  | 7109 | ; | 
|  | 7110 | return 0; | 
|  | 7111 | } | 
|  | 7112 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7113 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7114 | ac_cv_has_makedev=yes | 
|  | 7115 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7116 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7117 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7118 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7119 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7120 | if test "$ac_cv_has_makedev" = "no"; then | 
|  | 7121 | # 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] | 7122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7123 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7124 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7125 | #define _OSF_SOURCE 1 | 
|  | 7126 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7127 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7128 | int | 
|  | 7129 | main () | 
|  | 7130 | { | 
|  | 7131 | makedev(0, 0) | 
|  | 7132 | ; | 
|  | 7133 | return 0; | 
|  | 7134 | } | 
|  | 7135 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7136 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7137 | ac_cv_has_makedev=yes | 
|  | 7138 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7139 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7140 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7141 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7142 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7143 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 7144 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7145 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7146 |  | 
|  | 7147 | fi | 
|  | 7148 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 7150 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7151 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 7152 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7153 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7154 |  | 
|  | 7155 | fi | 
|  | 7156 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7157 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 7158 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 7159 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 7160 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 7161 | # structures (such as rlimit64) without declaring them. As a | 
|  | 7162 | # work-around, disable LFS on such configurations | 
|  | 7163 |  | 
|  | 7164 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 7166 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 7167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7168 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7169 |  | 
|  | 7170 | #define _LARGEFILE_SOURCE 1 | 
|  | 7171 | #define _FILE_OFFSET_BITS 64 | 
|  | 7172 | #include <sys/resource.h> | 
|  | 7173 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7174 | int | 
|  | 7175 | main () | 
|  | 7176 | { | 
|  | 7177 | struct rlimit foo; | 
|  | 7178 | ; | 
|  | 7179 | return 0; | 
|  | 7180 | } | 
|  | 7181 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7182 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7183 | sol_lfs_bug=no | 
|  | 7184 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7185 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7186 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 7189 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7190 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 7191 | use_lfs=no | 
|  | 7192 | fi | 
|  | 7193 |  | 
|  | 7194 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7195 | # Two defines needed to enable largefile support on various platforms | 
|  | 7196 | # These may affect some typedefs | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 7197 | case $ac_sys_system/$ac_sys_release in | 
|  | 7198 | AIX*) | 
|  | 7199 |  | 
|  | 7200 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 7201 |  | 
|  | 7202 | ;; | 
|  | 7203 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7204 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7205 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7206 |  | 
|  | 7207 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7208 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7209 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7210 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7211 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7212 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 7213 | cat >> confdefs.h <<\EOF | 
|  | 7214 | #if defined(SCO_DS) | 
|  | 7215 | #undef _OFF_T | 
|  | 7216 | #endif | 
|  | 7217 | EOF | 
|  | 7218 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7219 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7220 | 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] | 7221 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7222 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7223 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 |  | 
|  | 7225 | cat >>confdefs.h <<_ACEOF | 
|  | 7226 | #define mode_t int | 
|  | 7227 | _ACEOF | 
|  | 7228 |  | 
|  | 7229 | fi | 
|  | 7230 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7231 | 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] | 7232 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7233 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7234 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 |  | 
|  | 7236 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7237 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7238 | _ACEOF | 
|  | 7239 |  | 
|  | 7240 | fi | 
|  | 7241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7242 | 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] | 7243 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7244 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7245 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7246 |  | 
|  | 7247 | cat >>confdefs.h <<_ACEOF | 
|  | 7248 | #define pid_t int | 
|  | 7249 | _ACEOF | 
|  | 7250 |  | 
|  | 7251 | fi | 
|  | 7252 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7253 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7254 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 7255 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7256 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7257 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7258 | 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] | 7259 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7260 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7261 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7262 |  | 
|  | 7263 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7264 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | _ACEOF | 
|  | 7266 |  | 
|  | 7267 | fi | 
|  | 7268 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 7270 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7271 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7272 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7273 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7275 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7276 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7277 |  | 
|  | 7278 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7280 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7281 | ac_cv_type_uid_t=yes | 
|  | 7282 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7283 | ac_cv_type_uid_t=no | 
|  | 7284 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7285 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7286 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7287 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 7289 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7290 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7291 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7292 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7293 |  | 
|  | 7294 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7295 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7296 |  | 
|  | 7297 | fi | 
|  | 7298 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7299 |  | 
|  | 7300 | # There are two separate checks for each of the exact-width integer types we | 
|  | 7301 | # need.  First we check whether the type is available using the usual | 
|  | 7302 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
|  | 7303 | # and <stdint.h> where available).  We then also use the special type checks of | 
|  | 7304 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
|  | 7305 | # directly, #define's uint32_t to be a suitable type. | 
|  | 7306 |  | 
|  | 7307 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
|  | 7308 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
|  | 7309 |  | 
|  | 7310 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
|  | 7311 |  | 
|  | 7312 | fi | 
|  | 7313 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7314 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
|  | 7315 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7316 | no|yes) ;; #( | 
|  | 7317 | *) | 
|  | 7318 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7319 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7320 |  | 
|  | 7321 |  | 
|  | 7322 | cat >>confdefs.h <<_ACEOF | 
|  | 7323 | #define uint32_t $ac_cv_c_uint32_t | 
|  | 7324 | _ACEOF | 
|  | 7325 | ;; | 
|  | 7326 | esac | 
|  | 7327 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7328 |  | 
|  | 7329 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
|  | 7330 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
|  | 7331 |  | 
|  | 7332 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
|  | 7333 |  | 
|  | 7334 | fi | 
|  | 7335 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7336 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
|  | 7337 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7338 | no|yes) ;; #( | 
|  | 7339 | *) | 
|  | 7340 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7341 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7342 |  | 
|  | 7343 |  | 
|  | 7344 | cat >>confdefs.h <<_ACEOF | 
|  | 7345 | #define uint64_t $ac_cv_c_uint64_t | 
|  | 7346 | _ACEOF | 
|  | 7347 | ;; | 
|  | 7348 | esac | 
|  | 7349 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7350 |  | 
|  | 7351 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
|  | 7352 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
|  | 7353 |  | 
|  | 7354 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
|  | 7355 |  | 
|  | 7356 | fi | 
|  | 7357 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7358 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
|  | 7359 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7360 | no|yes) ;; #( | 
|  | 7361 | *) | 
|  | 7362 |  | 
|  | 7363 | cat >>confdefs.h <<_ACEOF | 
|  | 7364 | #define int32_t $ac_cv_c_int32_t | 
|  | 7365 | _ACEOF | 
|  | 7366 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7367 | esac | 
|  | 7368 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7369 |  | 
|  | 7370 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
|  | 7371 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
|  | 7372 |  | 
|  | 7373 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
|  | 7374 |  | 
|  | 7375 | fi | 
|  | 7376 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7377 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
|  | 7378 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7379 | no|yes) ;; #( | 
|  | 7380 | *) | 
|  | 7381 |  | 
|  | 7382 | cat >>confdefs.h <<_ACEOF | 
|  | 7383 | #define int64_t $ac_cv_c_int64_t | 
|  | 7384 | _ACEOF | 
|  | 7385 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7386 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7387 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7388 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7389 | 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] | 7390 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7391 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7392 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7393 |  | 
|  | 7394 | fi | 
|  | 7395 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7396 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7397 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7398 | # 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] | 7399 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7400 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7401 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7402 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 7404 | $as_echo_n "checking size of int... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7405 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7406 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7408 | 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] | 7409 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7411 | if test "$ac_cv_type_int" = yes; then | 
|  | 7412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7414 | as_fn_error 77 "cannot compute sizeof (int) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7415 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7416 | else | 
|  | 7417 | ac_cv_sizeof_int=0 | 
|  | 7418 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7420 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 7423 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7424 |  | 
|  | 7425 |  | 
|  | 7426 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7427 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7428 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7429 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7430 |  | 
|  | 7431 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7432 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7433 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7434 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7435 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 7437 | $as_echo_n "checking size of long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7438 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7439 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7440 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7441 | 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] | 7442 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7443 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7444 | if test "$ac_cv_type_long" = yes; then | 
|  | 7445 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7447 | as_fn_error 77 "cannot compute sizeof (long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7448 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7449 | else | 
|  | 7450 | ac_cv_sizeof_long=0 | 
|  | 7451 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7452 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7453 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7454 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 7456 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7457 |  | 
|  | 7458 |  | 
|  | 7459 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7460 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7461 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7462 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7463 |  | 
|  | 7464 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7465 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7466 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7467 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7468 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 7470 | $as_echo_n "checking size of void *... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7471 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7472 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7473 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7474 | 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] | 7475 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7477 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 7478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7480 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7481 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7482 | else | 
|  | 7483 | ac_cv_sizeof_void_p=0 | 
|  | 7484 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7486 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7487 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 7489 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7490 |  | 
|  | 7491 |  | 
|  | 7492 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7493 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7494 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7495 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7496 |  | 
|  | 7497 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7498 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7499 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7500 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7501 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 7503 | $as_echo_n "checking size of short... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7504 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7505 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7507 | 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] | 7508 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7510 | if test "$ac_cv_type_short" = yes; then | 
|  | 7511 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7512 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7513 | as_fn_error 77 "cannot compute sizeof (short) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7514 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7515 | else | 
|  | 7516 | ac_cv_sizeof_short=0 | 
|  | 7517 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7519 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7520 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 7522 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7523 |  | 
|  | 7524 |  | 
|  | 7525 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7526 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7527 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7528 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7529 |  | 
|  | 7530 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7531 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7532 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7533 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7534 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 7536 | $as_echo_n "checking size of float... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7537 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7538 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7539 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7540 | 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] | 7541 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7543 | if test "$ac_cv_type_float" = yes; then | 
|  | 7544 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7546 | as_fn_error 77 "cannot compute sizeof (float) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7547 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7548 | else | 
|  | 7549 | ac_cv_sizeof_float=0 | 
|  | 7550 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 7555 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7556 |  | 
|  | 7557 |  | 
|  | 7558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7559 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7560 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7562 |  | 
|  | 7563 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7564 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7565 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7566 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7567 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 7569 | $as_echo_n "checking size of double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7570 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7571 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7573 | 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] | 7574 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7576 | if test "$ac_cv_type_double" = yes; then | 
|  | 7577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7579 | as_fn_error 77 "cannot compute sizeof (double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7580 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7581 | else | 
|  | 7582 | ac_cv_sizeof_double=0 | 
|  | 7583 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7585 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 7588 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7589 |  | 
|  | 7590 |  | 
|  | 7591 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7592 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7593 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7595 |  | 
|  | 7596 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7597 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7598 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7599 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7600 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 7602 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7603 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7604 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7606 | 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] | 7607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7608 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7609 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 7610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7612 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7613 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7614 | else | 
|  | 7615 | ac_cv_sizeof_fpos_t=0 | 
|  | 7616 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7617 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7618 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7619 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 7621 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7622 |  | 
|  | 7623 |  | 
|  | 7624 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7625 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7626 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7628 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7629 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7630 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7631 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7632 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7633 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 7635 | $as_echo_n "checking size of size_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7636 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7637 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7638 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7639 | 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] | 7640 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7641 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7642 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 7643 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7645 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7646 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7647 | else | 
|  | 7648 | ac_cv_sizeof_size_t=0 | 
|  | 7649 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7650 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7651 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7652 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 7654 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7655 |  | 
|  | 7656 |  | 
|  | 7657 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7658 | cat >>confdefs.h <<_ACEOF | 
|  | 7659 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 7660 | _ACEOF | 
|  | 7661 |  | 
|  | 7662 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7663 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7664 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7665 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7666 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 7668 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7669 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7670 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7671 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7672 | 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] | 7673 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7674 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7675 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 7676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7678 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7679 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7680 | else | 
|  | 7681 | ac_cv_sizeof_pid_t=0 | 
|  | 7682 | fi | 
|  | 7683 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7684 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7685 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 7687 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7688 |  | 
|  | 7689 |  | 
|  | 7690 |  | 
|  | 7691 | cat >>confdefs.h <<_ACEOF | 
|  | 7692 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 7693 | _ACEOF | 
|  | 7694 |  | 
|  | 7695 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7696 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
|  | 7698 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7699 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7701 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7702 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | int | 
|  | 7704 | main () | 
|  | 7705 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7706 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7707 | ; | 
|  | 7708 | return 0; | 
|  | 7709 | } | 
|  | 7710 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7711 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 |  | 
|  | 7713 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7714 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7715 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7716 | have_long_long=yes | 
|  | 7717 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7718 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
|  | 7721 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7722 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7723 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7724 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7725 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7726 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 7728 | $as_echo_n "checking size of long long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7729 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7730 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7732 | 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] | 7733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7735 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 7736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7738 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7739 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7740 | else | 
|  | 7741 | ac_cv_sizeof_long_long=0 | 
|  | 7742 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7744 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 7747 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7748 |  | 
|  | 7749 |  | 
|  | 7750 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7752 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7753 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7754 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7755 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7756 | fi | 
|  | 7757 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 7759 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7760 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7762 | /* end confdefs.h.  */ | 
|  | 7763 |  | 
|  | 7764 | int | 
|  | 7765 | main () | 
|  | 7766 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7767 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7768 | ; | 
|  | 7769 | return 0; | 
|  | 7770 | } | 
|  | 7771 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7772 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7773 |  | 
|  | 7774 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7775 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7776 |  | 
|  | 7777 | have_long_double=yes | 
|  | 7778 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7779 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 7782 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7783 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7784 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7785 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7786 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7787 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 7789 | $as_echo_n "checking size of long double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7790 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7791 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7792 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7793 | 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] | 7794 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7795 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7796 | if test "$ac_cv_type_long_double" = 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 (long double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7800 | See \`config.log' for more details" "$LINENO" 5; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7801 | else | 
|  | 7802 | ac_cv_sizeof_long_double=0 | 
|  | 7803 | fi | 
|  | 7804 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7805 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +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_long_double" >&5 | 
|  | 7808 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7809 |  | 
|  | 7810 |  | 
|  | 7811 |  | 
|  | 7812 | cat >>confdefs.h <<_ACEOF | 
|  | 7813 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 7814 | _ACEOF | 
|  | 7815 |  | 
|  | 7816 |  | 
|  | 7817 | fi | 
|  | 7818 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 7820 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7821 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7823 | /* end confdefs.h.  */ | 
|  | 7824 |  | 
|  | 7825 | int | 
|  | 7826 | main () | 
|  | 7827 | { | 
|  | 7828 | _Bool x; x = (_Bool)0; | 
|  | 7829 | ; | 
|  | 7830 | return 0; | 
|  | 7831 | } | 
|  | 7832 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7833 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7834 |  | 
|  | 7835 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7836 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7837 |  | 
|  | 7838 | have_c99_bool=yes | 
|  | 7839 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7840 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 7843 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7844 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7845 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7846 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7847 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7848 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 7850 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7851 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7852 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7853 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7854 | 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] | 7855 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7856 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7857 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 7858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7860 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7861 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7862 | else | 
|  | 7863 | ac_cv_sizeof__Bool=0 | 
|  | 7864 | fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7865 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7866 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7867 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 7869 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7870 |  | 
|  | 7871 |  | 
|  | 7872 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7873 | cat >>confdefs.h <<_ACEOF | 
|  | 7874 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 7875 | _ACEOF | 
|  | 7876 |  | 
|  | 7877 |  | 
|  | 7878 | fi | 
|  | 7879 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7880 | 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] | 7881 | #include <stdint.h> | 
|  | 7882 | #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7883 | #ifdef HAVE_INTTYPES_H | 
|  | 7884 | #include <inttypes.h> | 
|  | 7885 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7886 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7887 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7888 |  | 
|  | 7889 | cat >>confdefs.h <<_ACEOF | 
|  | 7890 | #define HAVE_UINTPTR_T 1 | 
|  | 7891 | _ACEOF | 
|  | 7892 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7893 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7896 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 7898 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7899 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7900 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7902 | 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] | 7903 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7905 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 7906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7908 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7909 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7910 | else | 
|  | 7911 | ac_cv_sizeof_uintptr_t=0 | 
|  | 7912 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7914 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 7917 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7918 |  | 
|  | 7919 |  | 
|  | 7920 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7921 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7922 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7924 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7925 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7926 | fi | 
|  | 7927 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7928 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7929 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7930 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7931 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7932 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 7934 | $as_echo_n "checking size of off_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7935 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7936 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7937 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7938 | 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] | 7939 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7940 | #include <sys/types.h> | 
|  | 7941 | #endif | 
|  | 7942 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7943 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7944 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7945 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7946 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 7947 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7949 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7950 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7951 | else | 
|  | 7952 | ac_cv_sizeof_off_t=0 | 
|  | 7953 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7954 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7955 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7956 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 7958 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7960 |  | 
|  | 7961 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7963 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7965 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7966 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7967 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 7969 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7970 | if test "$have_long_long" = yes | 
|  | 7971 | then | 
|  | 7972 | 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] | 7973 | "$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] | 7974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7975 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7978 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7979 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7981 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7982 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7983 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7985 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7986 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7987 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7988 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7989 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7990 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7991 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 7993 | $as_echo_n "checking size of time_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7994 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7995 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7996 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7997 | 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] | 7998 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7999 | #include <sys/types.h> | 
|  | 8000 | #endif | 
|  | 8001 | #ifdef HAVE_TIME_H | 
|  | 8002 | #include <time.h> | 
|  | 8003 | #endif | 
|  | 8004 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8005 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8006 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8007 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8008 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8011 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8012 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8013 | else | 
|  | 8014 | ac_cv_sizeof_time_t=0 | 
|  | 8015 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8016 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8017 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8018 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8020 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8022 |  | 
|  | 8023 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8025 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8026 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8027 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8028 |  | 
|  | 8029 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8030 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8031 | ac_save_cc="$CC" | 
|  | 8032 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8033 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8034 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8035 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8036 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8037 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8038 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8040 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8041 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8043 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8044 |  | 
|  | 8045 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | int | 
|  | 8047 | main () | 
|  | 8048 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8049 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | ; | 
|  | 8051 | return 0; | 
|  | 8052 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8053 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8055 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8056 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8057 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8060 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8061 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8062 | # 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] | 8063 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8064 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8065 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8067 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8068 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8069 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8070 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8071 | 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] | 8072 | #ifdef HAVE_PTHREAD_H | 
|  | 8073 | #include <pthread.h> | 
|  | 8074 | #endif | 
|  | 8075 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8076 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8077 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8078 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8079 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8082 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8083 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8084 | else | 
|  | 8085 | ac_cv_sizeof_pthread_t=0 | 
|  | 8086 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8087 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8088 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8089 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 8091 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8093 |  | 
|  | 8094 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8096 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8097 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8098 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8099 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8100 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8101 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8102 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
|  | 8104 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8105 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8106 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8107 | enableval=$enable_toolbox_glue; | 
|  | 8108 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8109 |  | 
|  | 8110 |  | 
|  | 8111 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8113 | case $ac_sys_system/$ac_sys_release in | 
|  | 8114 | Darwin/*) | 
|  | 8115 | enable_toolbox_glue="yes";; | 
|  | 8116 | *) | 
|  | 8117 | enable_toolbox_glue="no";; | 
|  | 8118 | esac | 
|  | 8119 | fi | 
|  | 8120 | case "$enable_toolbox_glue" in | 
|  | 8121 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8122 | extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8123 | extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8125 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8126 |  | 
|  | 8127 | ;; | 
|  | 8128 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8129 | extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8130 | extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8131 | ;; | 
|  | 8132 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
|  | 8134 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8135 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8136 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8137 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8138 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8139 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8140 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 8141 | ;; | 
|  | 8142 | Darwin/*) | 
|  | 8143 | OTHER_LIBTOOL_OPT="" | 
|  | 8144 | ;; | 
|  | 8145 | esac | 
|  | 8146 |  | 
|  | 8147 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8148 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8149 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8150 | Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8151 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 8152 | if test "${enable_universalsdk}"; then | 
|  | 8153 | : | 
|  | 8154 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8155 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8156 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8157 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8158 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8159 | Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 8160 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8161 | if test ${gcc_version} '<' 4.0 | 
|  | 8162 | then | 
|  | 8163 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 8164 | else | 
|  | 8165 | LIBTOOL_CRUFT="" | 
|  | 8166 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8167 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8168 | ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8169 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8171 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8172 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8173 | #include <unistd.h> | 
|  | 8174 | int main(int argc, char*argv[]) | 
|  | 8175 | { | 
|  | 8176 | if (sizeof(long) == 4) { | 
|  | 8177 | return 0; | 
|  | 8178 | } else { | 
|  | 8179 | return 1; | 
|  | 8180 | } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 8181 | } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8182 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8183 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8184 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8185 | ac_osx_32bit=yes | 
|  | 8186 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8187 | ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8188 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8190 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8191 | fi | 
|  | 8192 |  | 
|  | 8193 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8194 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8195 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8196 | i386) | 
|  | 8197 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 8198 | ;; | 
|  | 8199 | ppc) | 
|  | 8200 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 8201 | ;; | 
|  | 8202 | *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8203 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8204 | ;; | 
|  | 8205 | esac | 
|  | 8206 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8207 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8208 | i386) | 
|  | 8209 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 8210 | ;; | 
|  | 8211 | ppc) | 
|  | 8212 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 8213 | ;; | 
|  | 8214 | *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8215 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8216 | ;; | 
|  | 8217 | esac | 
|  | 8218 |  | 
|  | 8219 | #ARCH_RUN_32BIT="true" | 
|  | 8220 | fi | 
|  | 8221 |  | 
|  | 8222 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8223 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8224 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8225 | esac | 
|  | 8226 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 8228 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8229 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8230 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8231 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8233 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8234 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8235 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8238 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8239 | if test $enable_shared = "yes" | 
|  | 8240 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8241 | 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] | 8242 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8243 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8245 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8246 | fi | 
|  | 8247 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 8249 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8250 | case $ac_sys_system/$ac_sys_release in | 
|  | 8251 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8252 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8253 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8254 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 8256 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8257 | ;; | 
|  | 8258 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8260 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8261 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8262 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8263 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8264 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8265 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8266 |  | 
|  | 8267 |  | 
|  | 8268 |  | 
|  | 8269 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8270 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8271 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8272 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
|  | 8274 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8275 | if test -z "$SO" | 
|  | 8276 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8277 | case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8278 | hp*|HP*) | 
|  | 8279 | case `uname -m` in | 
|  | 8280 | ia64) SO=.so;; | 
|  | 8281 | *)    SO=.sl;; | 
|  | 8282 | esac | 
|  | 8283 | ;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8284 | CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8285 | *)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8286 | esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 8287 | else | 
|  | 8288 | # this might also be a termcap variable, see #610332 | 
|  | 8289 | echo | 
|  | 8290 | echo '=====================================================================' | 
|  | 8291 | echo '+                                                                   +' | 
|  | 8292 | echo '+ WARNING: You have set SO in your environment.                     +' | 
|  | 8293 | echo '+ Do you really mean to change the extension for shared libraries?  +' | 
|  | 8294 | echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
|  | 8295 | echo '+                                                                   +' | 
|  | 8296 | echo '=====================================================================' | 
|  | 8297 | sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8298 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
|  | 8300 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8301 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8302 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8303 | cat >>confdefs.h <<_ACEOF | 
|  | 8304 | #define SHLIB_EXT "$SO" | 
|  | 8305 | _ACEOF | 
|  | 8306 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8307 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8308 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8309 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 8310 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 8312 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8313 | if test -z "$LDSHARED" | 
|  | 8314 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8315 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8316 | AIX*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8317 | 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] | 8318 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8319 | ;; | 
|  | 8320 | BeOS*) | 
|  | 8321 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8322 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8323 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8324 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8325 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8327 | if test "$GCC" = "yes" ; then | 
|  | 8328 | LDSHARED='$(CC) -shared' | 
|  | 8329 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8330 | else | 
|  | 8331 | LDSHARED='$(CC) -G' | 
|  | 8332 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8333 | fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8334 | hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8335 | if test "$GCC" = "yes" ; then | 
|  | 8336 | LDSHARED='$(CC) -shared' | 
|  | 8337 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8338 | else | 
|  | 8339 | LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8340 | fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8341 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8342 | Darwin/1.3*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8343 | LDSHARED='$(CC) -bundle' | 
|  | 8344 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8345 | if test "$enable_framework" ; then | 
|  | 8346 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8347 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8348 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8349 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8350 | else | 
|  | 8351 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8352 | LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8353 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8354 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8355 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8356 | LDSHARED='$(CC) -bundle' | 
|  | 8357 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8358 | if test "$enable_framework" ; then | 
|  | 8359 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8360 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8361 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8362 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8363 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8364 | # No framework, use the Python app as bundle-loader | 
|  | 8365 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8366 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8367 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8368 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8369 | Darwin/*) | 
|  | 8370 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 8371 | # This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 8372 |  | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8373 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 8374 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 8375 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 8376 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 8377 | if test ${dep_target_major} -eq 10 && \ | 
|  | 8378 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8379 | then | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8380 | # building for OS X 10.0 through 10.2 | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8381 | LDSHARED='$(CC) -bundle' | 
|  | 8382 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8383 | if test "$enable_framework" ; then | 
|  | 8384 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8385 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8386 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8387 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8388 | else | 
|  | 8389 | # No framework, use the Python app as bundle-loader | 
|  | 8390 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 8391 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8392 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8393 | fi | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8394 | else | 
|  | 8395 | # building for OS X 10.3 and later | 
|  | 8396 | if test "${enable_universalsdk}"; then | 
|  | 8397 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 8398 | fi | 
|  | 8399 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 8400 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 8401 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8402 | fi | 
|  | 8403 | ;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8404 | Linux*|GNU*|QNX*) | 
|  | 8405 | LDSHARED='$(CC) -shared' | 
|  | 8406 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 8407 | BSD/OS*/4*) | 
|  | 8408 | LDSHARED="gcc -shared" | 
|  | 8409 | LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8410 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8411 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8412 | then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8413 | LDSHARED='$(CC) -shared' | 
|  | 8414 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8415 | else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8416 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8417 | fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8418 | OpenBSD*) | 
|  | 8419 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 8420 | then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8421 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 8422 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8423 | else | 
|  | 8424 | case `uname -r` in | 
|  | 8425 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 8426 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 8427 | ;; | 
|  | 8428 | *) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8429 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 8430 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8431 | ;; | 
|  | 8432 | esac | 
|  | 8433 | fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8434 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 8435 | LDSHARED='$(CC) -shared' | 
|  | 8436 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8437 | OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8438 | if test "$GCC" = "yes" ; then | 
|  | 8439 | LDSHARED='$(CC) -shared' | 
|  | 8440 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8441 | else | 
|  | 8442 | LDSHARED='$(CC) -G' | 
|  | 8443 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8444 | fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8445 | SCO_SV*) | 
|  | 8446 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 8447 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 8448 | CYGWIN*) | 
|  | 8449 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 8450 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
|  | 8451 | atheos*) | 
|  | 8452 | LDSHARED="gcc -shared" | 
|  | 8453 | LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8454 | *)	LDSHARED="ld";; | 
|  | 8455 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8456 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 8458 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8459 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8460 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8461 | # 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] | 8462 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 8464 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8465 | if test -z "$CCSHARED" | 
|  | 8466 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8467 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8468 | SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 8469 | then CCSHARED="-fPIC"; | 
|  | 8470 | elif test `uname -p` = sparc; | 
|  | 8471 | then CCSHARED="-xcode=pic32"; | 
|  | 8472 | else CCSHARED="-Kpic"; | 
|  | 8473 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8474 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8475 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8476 | else CCSHARED="+z"; | 
|  | 8477 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8478 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8479 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8480 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8481 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8482 | if test "$GCC" = "yes" | 
|  | 8483 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8484 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8485 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8486 | SCO_SV*) | 
|  | 8487 | if test "$GCC" = "yes" | 
|  | 8488 | then CCSHARED="-fPIC" | 
|  | 8489 | else CCSHARED="-Kpic -belf" | 
|  | 8490 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8491 | IRIX*/6*)  case $CC in | 
|  | 8492 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8493 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8494 | esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8495 | atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8496 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8497 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 8499 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8500 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8501 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 8503 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8504 | if test -z "$LINKFORSHARED" | 
|  | 8505 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8506 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8507 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8508 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8509 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 8510 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8511 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8512 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8513 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8515 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
|  | 8516 | # which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8517 | # not used by the core itself but which needs to be in the core so | 
|  | 8518 | # that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 8519 | # -prebind is no longer used, because it actually seems to give a | 
|  | 8520 | # slowdown in stead of a speedup, maybe due to the large number of | 
|  | 8521 | # dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8522 |  | 
|  | 8523 | LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8524 | if test "$enable_framework" | 
|  | 8525 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8526 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8527 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8528 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8529 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8530 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8531 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8532 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8533 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 8534 | then | 
|  | 8535 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 8536 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8537 | SunOS/5*) case $CC in | 
|  | 8538 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8539 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8540 | then | 
|  | 8541 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8542 | fi;; | 
|  | 8543 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8544 | CYGWIN*) | 
|  | 8545 | if test $enable_shared = "no" | 
|  | 8546 | then | 
|  | 8547 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 8548 | fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 8549 | QNX*) | 
|  | 8550 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 8551 | # symbol table so that they can be found when a module | 
|  | 8552 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 8553 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 8554 | # when running test_compile.py. | 
|  | 8555 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8556 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8557 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 8559 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8560 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8561 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8562 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 8564 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8565 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 8566 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8567 | case $ac_sys_system in | 
|  | 8568 | CYGWIN*) | 
|  | 8569 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 8570 | # but not when building the interpreter DLL. | 
|  | 8571 | CFLAGSFORSHARED='';; | 
|  | 8572 | *) | 
|  | 8573 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 8574 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8575 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 8577 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8578 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8579 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 8580 | # library (with --enable-shared). | 
|  | 8581 | # 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] | 8582 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 8583 | # if it is not required, since it creates a dependency of the shared library | 
|  | 8584 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 8585 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 8586 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8587 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 8589 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8590 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8591 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8592 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8593 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 8595 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8596 |  | 
|  | 8597 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8598 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 8600 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8601 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8602 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8603 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8605 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8607 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8609 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8610 | Use char because int might match the return type of a GCC | 
|  | 8611 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | #ifdef __cplusplus | 
|  | 8613 | extern "C" | 
|  | 8614 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | int | 
|  | 8617 | main () | 
|  | 8618 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8619 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | ; | 
|  | 8621 | return 0; | 
|  | 8622 | } | 
|  | 8623 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8624 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8626 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8627 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8628 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8629 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8630 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8632 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 8634 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8635 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8636 | cat >>confdefs.h <<_ACEOF | 
|  | 8637 | #define HAVE_LIBDL 1 | 
|  | 8638 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8639 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8640 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8641 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8642 | fi | 
|  | 8643 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 8645 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8646 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8647 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8648 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8650 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8652 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8654 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8655 | Use char because int might match the return type of a GCC | 
|  | 8656 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | #ifdef __cplusplus | 
|  | 8658 | extern "C" | 
|  | 8659 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | int | 
|  | 8662 | main () | 
|  | 8663 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8664 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | ; | 
|  | 8666 | return 0; | 
|  | 8667 | } | 
|  | 8668 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8669 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8671 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8672 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8673 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8674 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8675 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8677 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 8679 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8680 | 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] | 8681 | cat >>confdefs.h <<_ACEOF | 
|  | 8682 | #define HAVE_LIBDLD 1 | 
|  | 8683 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8684 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8685 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8686 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8687 | fi | 
|  | 8688 | # Dynamic linking for HP-UX | 
| Victor Stinner | 7c90667 | 2015-01-06 13:53:37 +0100 | [diff] [blame] | 8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 | 
|  | 8690 | $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } | 
|  | 8691 | if ${ac_cv_lib_crypto_RAND_egd+:} false; then : | 
|  | 8692 | $as_echo_n "(cached) " >&6 | 
|  | 8693 | else | 
|  | 8694 | ac_check_lib_save_LIBS=$LIBS | 
|  | 8695 | LIBS="-lcrypto  $LIBS" | 
|  | 8696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8697 | /* end confdefs.h.  */ | 
|  | 8698 |  | 
|  | 8699 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8700 | Use char because int might match the return type of a GCC | 
|  | 8701 | builtin and then its argument prototype would still apply.  */ | 
|  | 8702 | #ifdef __cplusplus | 
|  | 8703 | extern "C" | 
|  | 8704 | #endif | 
|  | 8705 | char RAND_egd (); | 
|  | 8706 | int | 
|  | 8707 | main () | 
|  | 8708 | { | 
|  | 8709 | return RAND_egd (); | 
|  | 8710 | ; | 
|  | 8711 | return 0; | 
|  | 8712 | } | 
|  | 8713 | _ACEOF | 
|  | 8714 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8715 | ac_cv_lib_crypto_RAND_egd=yes | 
|  | 8716 | else | 
|  | 8717 | ac_cv_lib_crypto_RAND_egd=no | 
|  | 8718 | fi | 
|  | 8719 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8720 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8721 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8722 | fi | 
|  | 8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 | 
|  | 8724 | $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } | 
|  | 8725 | if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : | 
|  | 8726 |  | 
|  | 8727 | $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h | 
|  | 8728 |  | 
|  | 8729 | fi | 
|  | 8730 |  | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8731 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8732 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8733 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 8735 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8736 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8737 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8738 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8739 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8741 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8743 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8744 | Use char because int might match the return type of a GCC | 
|  | 8745 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | #ifdef __cplusplus | 
|  | 8747 | extern "C" | 
|  | 8748 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | int | 
|  | 8751 | main () | 
|  | 8752 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8753 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | ; | 
|  | 8755 | return 0; | 
|  | 8756 | } | 
|  | 8757 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8758 | for ac_lib in '' pthread rt posix4; do | 
|  | 8759 | if test -z "$ac_lib"; then | 
|  | 8760 | ac_res="none required" | 
|  | 8761 | else | 
|  | 8762 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8763 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8764 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8765 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8766 | ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8767 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8768 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8769 | conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8770 | if ${ac_cv_search_sem_init+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8771 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8772 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8773 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8774 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8775 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8776 | else | 
|  | 8777 | ac_cv_search_sem_init=no | 
|  | 8778 | fi | 
|  | 8779 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8780 | LIBS=$ac_func_search_save_LIBS | 
|  | 8781 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 8783 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8784 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8785 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8786 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8787 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8788 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8789 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8790 | # posix4 on Solaris 2.6 | 
|  | 8791 | # pthread (first!) on Linux | 
|  | 8792 | fi | 
|  | 8793 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8794 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 8796 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8797 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8798 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8799 | else | 
|  | 8800 | ac_check_lib_save_LIBS=$LIBS | 
|  | 8801 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8803 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8804 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8805 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8806 | Use char because int might match the return type of a GCC | 
|  | 8807 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8808 | #ifdef __cplusplus | 
|  | 8809 | extern "C" | 
|  | 8810 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8811 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8812 | int | 
|  | 8813 | main () | 
|  | 8814 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8815 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8816 | ; | 
|  | 8817 | return 0; | 
|  | 8818 | } | 
|  | 8819 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8820 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8821 | ac_cv_lib_intl_textdomain=yes | 
|  | 8822 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8823 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8824 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8825 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8826 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8827 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8828 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 8830 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8831 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8832 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8833 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8834 |  | 
|  | 8835 | fi | 
|  | 8836 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8837 |  | 
|  | 8838 | # checks for system dependent C++ extensions support | 
|  | 8839 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8840 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 8841 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 8842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8844 |  | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8845 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | int | 
|  | 8847 | main () | 
|  | 8848 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8849 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | ; | 
|  | 8851 | return 0; | 
|  | 8852 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8853 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8854 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8855 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8856 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8857 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8858 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8861 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8862 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8863 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8864 |  | 
|  | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8866 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8867 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8868 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8869 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8870 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8871 | *) ;; | 
|  | 8872 | esac | 
|  | 8873 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8874 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8875 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 8877 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8878 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8879 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8880 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8882 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8884 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8886 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8887 | Use char because int might match the return type of a GCC | 
|  | 8888 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | #ifdef __cplusplus | 
|  | 8890 | extern "C" | 
|  | 8891 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | int | 
|  | 8894 | main () | 
|  | 8895 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8896 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | ; | 
|  | 8898 | return 0; | 
|  | 8899 | } | 
|  | 8900 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8901 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8903 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8904 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8905 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8906 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8907 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8909 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 8911 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8912 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8913 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8914 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8915 | # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 8917 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8918 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8919 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8920 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8922 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8924 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8925 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8926 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8927 | Use char because int might match the return type of a GCC | 
|  | 8928 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | #ifdef __cplusplus | 
|  | 8930 | extern "C" | 
|  | 8931 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | int | 
|  | 8934 | main () | 
|  | 8935 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8936 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | ; | 
|  | 8938 | return 0; | 
|  | 8939 | } | 
|  | 8940 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8941 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8943 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8944 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8945 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8946 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8947 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8949 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 8951 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8952 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8953 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8954 | fi | 
|  | 8955 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8956 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8957 | case "$ac_sys_system" in | 
|  | 8958 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
|  | 8960 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8961 | if ${ac_cv_lib_net_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8962 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8963 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8965 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8967 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8968 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8969 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8970 | Use char because int might match the return type of a GCC | 
|  | 8971 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8972 | #ifdef __cplusplus | 
|  | 8973 | extern "C" | 
|  | 8974 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | int | 
|  | 8977 | main () | 
|  | 8978 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8979 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | ; | 
|  | 8981 | return 0; | 
|  | 8982 | } | 
|  | 8983 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8984 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8986 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8987 | ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8988 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8989 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8990 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8992 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
|  | 8994 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8995 | if test "x$ac_cv_lib_net_socket" = xyes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8996 | LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8997 | fi | 
|  | 8998 | # BeOS | 
|  | 8999 | ;; | 
|  | 9000 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9001 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9003 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9005 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9006 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9007 | withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9009 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9010 | LIBS="$withval $LIBS" | 
|  | 9011 |  | 
|  | 9012 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9014 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9015 | fi | 
|  | 9016 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9017 |  | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 9018 |  | 
|  | 9019 |  | 
|  | 9020 |  | 
|  | 9021 |  | 
|  | 9022 |  | 
|  | 9023 |  | 
|  | 9024 |  | 
|  | 9025 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9026 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9027 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9028 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9030 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9031 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9032 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9033 | else | 
|  | 9034 | case $PKG_CONFIG in | 
|  | 9035 | [\\/]* | ?:[\\/]*) | 
|  | 9036 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9037 | ;; | 
|  | 9038 | *) | 
|  | 9039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9040 | for as_dir in $PATH | 
|  | 9041 | do | 
|  | 9042 | IFS=$as_save_IFS | 
|  | 9043 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9044 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9045 | 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] | 9046 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9047 | $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] | 9048 | break 2 | 
|  | 9049 | fi | 
|  | 9050 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9051 | done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9052 | IFS=$as_save_IFS | 
|  | 9053 |  | 
|  | 9054 | ;; | 
|  | 9055 | esac | 
|  | 9056 | fi | 
|  | 9057 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9058 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9060 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9061 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9063 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9064 | fi | 
|  | 9065 |  | 
|  | 9066 |  | 
|  | 9067 | fi | 
|  | 9068 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9069 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9070 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9071 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9073 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9074 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9075 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9076 | else | 
|  | 9077 | case $ac_pt_PKG_CONFIG in | 
|  | 9078 | [\\/]* | ?:[\\/]*) | 
|  | 9079 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9080 | ;; | 
|  | 9081 | *) | 
|  | 9082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9083 | for as_dir in $PATH | 
|  | 9084 | do | 
|  | 9085 | IFS=$as_save_IFS | 
|  | 9086 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9087 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9088 | 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] | 9089 | 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] | 9090 | $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] | 9091 | break 2 | 
|  | 9092 | fi | 
|  | 9093 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9094 | done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9095 | IFS=$as_save_IFS | 
|  | 9096 |  | 
|  | 9097 | ;; | 
|  | 9098 | esac | 
|  | 9099 | fi | 
|  | 9100 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 9101 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 9103 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9104 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9106 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9107 | fi | 
|  | 9108 |  | 
|  | 9109 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 9110 | PKG_CONFIG="" | 
|  | 9111 | else | 
|  | 9112 | case $cross_compiling:$ac_tool_warned in | 
|  | 9113 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 9115 | $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] | 9116 | ac_tool_warned=yes ;; | 
|  | 9117 | esac | 
|  | 9118 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 9119 | fi | 
|  | 9120 | else | 
|  | 9121 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 9122 | fi | 
|  | 9123 |  | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 9124 | fi | 
|  | 9125 | if test -n "$PKG_CONFIG"; then | 
|  | 9126 | _pkg_min_version=0.9.0 | 
|  | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 9128 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 9129 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9131 | $as_echo "yes" >&6; } | 
|  | 9132 | else | 
|  | 9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9134 | $as_echo "no" >&6; } | 
|  | 9135 | PKG_CONFIG="" | 
|  | 9136 | fi | 
|  | 9137 | fi | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9138 |  | 
|  | 9139 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 9141 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9142 |  | 
|  | 9143 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9144 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9145 | withval=$with_system_expat; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 9146 | else | 
|  | 9147 | with_system_expat="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9148 | fi | 
|  | 9149 |  | 
|  | 9150 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 9152 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9153 |  | 
|  | 9154 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 9156 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9157 |  | 
|  | 9158 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9159 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9160 | withval=$with_system_ffi; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 9161 | else | 
|  | 9162 | with_system_ffi="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9163 | fi | 
|  | 9164 |  | 
|  | 9165 |  | 
|  | 9166 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9167 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 9168 | else | 
|  | 9169 | LIBFFI_INCLUDEDIR="" | 
|  | 9170 | fi | 
|  | 9171 |  | 
|  | 9172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 9174 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 9175 |  | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 9176 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 9177 |  | 
|  | 9178 |  | 
|  | 9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 9180 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 9181 |  | 
|  | 9182 | # Check whether --with-tcltk-includes was given. | 
|  | 9183 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 9184 | withval=$with_tcltk_includes; | 
|  | 9185 | else | 
|  | 9186 | with_tcltk_includes="default" | 
|  | 9187 | fi | 
|  | 9188 |  | 
|  | 9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 9190 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 9192 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 9193 |  | 
|  | 9194 | # Check whether --with-tcltk-libs was given. | 
|  | 9195 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 9196 | withval=$with_tcltk_libs; | 
|  | 9197 | else | 
|  | 9198 | with_tcltk_libs="default" | 
|  | 9199 | fi | 
|  | 9200 |  | 
|  | 9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 9202 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 9203 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 9204 | then | 
|  | 9205 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 9206 | then | 
|  | 9207 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 9208 | fi | 
|  | 9209 | TCLTK_INCLUDES="" | 
|  | 9210 | TCLTK_LIBS="" | 
|  | 9211 | else | 
|  | 9212 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 9213 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 9214 | fi | 
|  | 9215 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9216 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 9218 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9219 |  | 
|  | 9220 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9221 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9222 | withval=$with_dbmliborder; | 
|  | 9223 | if test x$with_dbmliborder = xyes | 
|  | 9224 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9225 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9226 | else | 
|  | 9227 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 9228 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 9229 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9230 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9231 | fi | 
|  | 9232 | done | 
|  | 9233 | fi | 
|  | 9234 | fi | 
|  | 9235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 9237 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9238 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9239 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9240 |  | 
|  | 9241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 9243 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9245 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9246 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9247 | withval=$with_signal_module; | 
|  | 9248 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9249 |  | 
|  | 9250 |  | 
|  | 9251 | if test -z "$with_signal_module" | 
|  | 9252 | then with_signal_module="yes" | 
|  | 9253 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 9255 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9256 |  | 
|  | 9257 | if test "${with_signal_module}" = "yes"; then | 
|  | 9258 | USE_SIGNAL_MODULE="" | 
|  | 9259 | SIGNAL_OBJS="" | 
|  | 9260 | else | 
|  | 9261 | USE_SIGNAL_MODULE="#" | 
|  | 9262 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 9263 | fi | 
|  | 9264 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9265 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9266 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9267 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9268 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
|  | 9270 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9271 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9272 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9273 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9274 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9275 | withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9277 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9278 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9279 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9280 | with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9281 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9282 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9284 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9285 | fi | 
|  | 9286 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 |  | 
|  | 9288 | # Templates for things AC_DEFINEd more than once. | 
|  | 9289 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9290 |  | 
|  | 9291 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 |  | 
|  | 9293 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 9295 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9297 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9298 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9299 | withval=$with_threads; | 
|  | 9300 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9301 |  | 
|  | 9302 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9303 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9305 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9306 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9307 | withval=$with_thread; with_threads=$with_thread | 
|  | 9308 | fi | 
|  | 9309 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9310 |  | 
|  | 9311 | if test -z "$with_threads" | 
|  | 9312 | then with_threads="yes" | 
|  | 9313 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 9315 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9316 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9317 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9318 | if test "$with_threads" = "no" | 
|  | 9319 | then | 
|  | 9320 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9321 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 9322 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9323 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9324 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9325 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9326 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9327 |  | 
|  | 9328 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9330 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 9331 | then | 
|  | 9332 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9333 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9334 | CXX="$CXX -Kpthread" | 
|  | 9335 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9336 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9337 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9338 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9339 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9340 | elif test "$ac_cv_kthread" = "yes" | 
|  | 9341 | then | 
|  | 9342 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9343 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9344 | CXX="$CXX -Kthread" | 
|  | 9345 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9346 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9347 |  | 
|  | 9348 | posix_threads=yes | 
|  | 9349 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9350 | elif test "$ac_cv_pthread" = "yes" | 
|  | 9351 | then | 
|  | 9352 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9353 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9354 | CXX="$CXX -pthread" | 
|  | 9355 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9356 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9357 |  | 
|  | 9358 | posix_threads=yes | 
|  | 9359 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9360 | else | 
|  | 9361 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 9362 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 9363 | fi | 
|  | 9364 | if test ! -z "$withval" -a -d "$withval" | 
|  | 9365 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 9366 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9367 |  | 
|  | 9368 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9369 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 9370 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 9372 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 9373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9374 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9375 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9376 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9377 | #ifdef _POSIX_THREADS | 
|  | 9378 | yes | 
|  | 9379 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 |  | 
|  | 9381 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9383 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9384 | unistd_defines_pthreads=yes | 
|  | 9385 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9386 | unistd_defines_pthreads=no | 
|  | 9387 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9388 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9389 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 9391 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9392 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9393 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9394 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9395 | 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] | 9396 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9397 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9398 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9399 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9402 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9403 |  | 
|  | 9404 | LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9405 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9406 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9407 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9408 | 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] | 9409 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9410 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9411 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9412 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9413 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9415 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9416 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9417 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9418 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9419 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
|  | 9421 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9423 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9424 | if test "${with_pth+set}" = set; then : | 
|  | 9425 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9426 | $as_echo "$withval" >&6; } | 
|  | 9427 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 |  | 
|  | 9429 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9430 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9431 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9432 | LIBS="-lpth $LIBS" | 
|  | 9433 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9434 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9436 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9437 |  | 
|  | 9438 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 9439 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 9440 | # So we really have to include pthread.h, and then link. | 
|  | 9441 | _libs=$LIBS | 
|  | 9442 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 9444 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 9445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9446 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9447 |  | 
|  | 9448 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9449 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9450 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9451 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | int | 
|  | 9453 | main () | 
|  | 9454 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9455 |  | 
|  | 9456 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | ; | 
|  | 9458 | return 0; | 
|  | 9459 | } | 
|  | 9460 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9461 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9464 | $as_echo "yes" >&6; } | 
|  | 9465 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9466 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9467 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9468 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9469 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9471 | LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9472 | 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] | 9473 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9474 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9475 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9476 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9477 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9478 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9479 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9480 | 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] | 9481 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9482 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9483 |  | 
|  | 9484 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9485 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9486 |  | 
|  | 9487 | THREADOBJ="Python/thread.o" | 
|  | 9488 | else | 
|  | 9489 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9490 | 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] | 9491 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9492 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 |  | 
|  | 9494 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9495 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9496 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9497 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9498 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9499 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 9501 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9502 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9503 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9504 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9506 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9508 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9510 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9511 | Use char because int might match the return type of a GCC | 
|  | 9512 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | #ifdef __cplusplus | 
|  | 9514 | extern "C" | 
|  | 9515 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | int | 
|  | 9518 | main () | 
|  | 9519 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9520 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ; | 
|  | 9522 | return 0; | 
|  | 9523 | } | 
|  | 9524 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9525 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9527 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9528 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9529 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9530 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9531 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9533 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 9535 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9536 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9537 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9538 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9539 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9540 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9541 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9542 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9543 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 9545 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9546 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9547 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9548 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9550 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9552 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9554 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9555 | Use char because int might match the return type of a GCC | 
|  | 9556 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | #ifdef __cplusplus | 
|  | 9558 | extern "C" | 
|  | 9559 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | int | 
|  | 9562 | main () | 
|  | 9563 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9564 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | ; | 
|  | 9566 | return 0; | 
|  | 9567 | } | 
|  | 9568 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9569 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9571 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9572 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9573 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9574 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9575 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9577 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 9579 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9580 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9581 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9582 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9583 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9584 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9585 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9586 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9587 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 9589 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9590 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9591 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9592 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9594 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9596 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9598 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9599 | Use char because int might match the return type of a GCC | 
|  | 9600 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | #ifdef __cplusplus | 
|  | 9602 | extern "C" | 
|  | 9603 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | int | 
|  | 9606 | main () | 
|  | 9607 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9608 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | ; | 
|  | 9610 | return 0; | 
|  | 9611 | } | 
|  | 9612 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9613 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9615 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9616 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9617 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9618 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9619 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9621 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 9623 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9624 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9625 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9626 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9627 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9628 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9629 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9630 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9631 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 9633 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9634 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9635 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9636 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9638 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9640 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9641 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9642 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9643 | Use char because int might match the return type of a GCC | 
|  | 9644 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | #ifdef __cplusplus | 
|  | 9646 | extern "C" | 
|  | 9647 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | int | 
|  | 9650 | main () | 
|  | 9651 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9652 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | ; | 
|  | 9654 | return 0; | 
|  | 9655 | } | 
|  | 9656 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9657 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9659 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9660 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9661 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9662 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9663 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9665 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 9667 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9668 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9669 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9670 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9671 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9672 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9673 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9674 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9675 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9676 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9677 | fi | 
|  | 9678 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9679 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9680 | fi | 
|  | 9681 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9682 | fi | 
|  | 9683 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9684 | fi | 
|  | 9685 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9686 | fi | 
|  | 9687 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9688 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9689 | fi | 
|  | 9690 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9691 |  | 
|  | 9692 | fi | 
|  | 9693 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9694 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9695 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9696 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9697 | fi | 
|  | 9698 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | fi | 
|  | 9700 |  | 
|  | 9701 |  | 
|  | 9702 | fi | 
|  | 9703 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9704 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9705 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 9707 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9708 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9709 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9710 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9711 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9712 | LIBS="-lmpc  $LIBS" | 
| 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9716 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9717 | Use char because int might match the return type of a GCC | 
|  | 9718 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9719 | #ifdef __cplusplus | 
|  | 9720 | extern "C" | 
|  | 9721 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | int | 
|  | 9724 | main () | 
|  | 9725 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9726 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | ; | 
|  | 9728 | return 0; | 
|  | 9729 | } | 
|  | 9730 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9731 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9733 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9734 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9735 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9736 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9737 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9739 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 9741 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9742 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9743 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9744 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9745 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9746 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9747 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9748 | fi | 
|  | 9749 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9750 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9751 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 9753 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9754 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9755 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9756 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9758 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9760 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9762 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9763 | Use char because int might match the return type of a GCC | 
|  | 9764 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | #ifdef __cplusplus | 
|  | 9766 | extern "C" | 
|  | 9767 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | int | 
|  | 9770 | main () | 
|  | 9771 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9772 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9773 | ; | 
|  | 9774 | return 0; | 
|  | 9775 | } | 
|  | 9776 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9777 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9779 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9780 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9781 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9782 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9783 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9785 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 9787 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9788 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9789 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9790 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9791 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9792 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9793 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9794 | fi | 
|  | 9795 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9796 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9797 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9798 | if test "$USE_THREAD_MODULE" != "#" | 
|  | 9799 | then | 
|  | 9800 | # If the above checks didn't disable threads, (at least) OSF1 | 
|  | 9801 | # needs this '-threads' argument during linking. | 
|  | 9802 | case $ac_sys_system in | 
|  | 9803 | OSF1) LDLAST=-threads;; | 
|  | 9804 | esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9805 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9806 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9807 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9808 | if test "$posix_threads" = "yes"; then | 
|  | 9809 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9810 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9811 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9812 |  | 
|  | 9813 | fi | 
|  | 9814 |  | 
|  | 9815 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 9816 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9817 | SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9818 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9819 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9820 | ;; | 
|  | 9821 | SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9822 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9823 |  | 
|  | 9824 | ;; | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9825 | AIX/*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9826 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9827 |  | 
|  | 9828 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9829 | esac | 
|  | 9830 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 9832 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9833 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9834 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9835 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9836 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9837 | ac_cv_pthread_system_supported=no | 
|  | 9838 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9840 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9841 |  | 
|  | 9842 | #include <stdio.h> | 
|  | 9843 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9844 | void *foo(void *parm) { | 
|  | 9845 | return NULL; | 
|  | 9846 | } | 
|  | 9847 | main() { | 
|  | 9848 | pthread_attr_t attr; | 
|  | 9849 | pthread_t id; | 
|  | 9850 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 9851 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 9852 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 9853 | exit(0); | 
|  | 9854 | } | 
|  | 9855 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9856 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9857 | ac_cv_pthread_system_supported=yes | 
|  | 9858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9859 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9860 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9862 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9863 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9864 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9866 | fi | 
|  | 9867 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 9869 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9870 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 9871 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9872 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9873 |  | 
|  | 9874 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9875 | for ac_func in pthread_sigmask | 
|  | 9876 | do : | 
|  | 9877 | 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] | 9878 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9879 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9880 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9881 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9882 | case $ac_sys_system in | 
|  | 9883 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9884 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9885 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9886 |  | 
|  | 9887 | ;; | 
|  | 9888 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9889 | fi | 
|  | 9890 | done | 
|  | 9891 |  | 
| Christian Heimes | 0d604cf | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 9892 | for ac_func in pthread_atfork | 
|  | 9893 | do : | 
|  | 9894 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 9895 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 9896 | cat >>confdefs.h <<_ACEOF | 
|  | 9897 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 9898 | _ACEOF | 
|  | 9899 |  | 
|  | 9900 | fi | 
|  | 9901 | done | 
|  | 9902 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9903 | fi | 
|  | 9904 |  | 
|  | 9905 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9906 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 9909 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9910 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9911 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9912 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9913 | no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9915 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9916 | ipv6=no | 
|  | 9917 | ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9918 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9919 | $as_echo "yes" >&6; } | 
|  | 9920 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9921 |  | 
|  | 9922 | ipv6=yes | 
|  | 9923 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9925 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9928 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9929 | /* AF_INET6 available check */ | 
|  | 9930 | #include <sys/types.h> | 
|  | 9931 | #include <sys/socket.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9932 | int | 
|  | 9933 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9934 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9935 | int domain = AF_INET6; | 
|  | 9936 | ; | 
|  | 9937 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9938 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | _ACEOF | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9940 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9941 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9943 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9944 | ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9945 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9946 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9947 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9949 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9950 | ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9951 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9952 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9953 | 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] | 9954 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9955 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 9957 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 9958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9959 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9960 |  | 
|  | 9961 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9962 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | int | 
|  | 9964 | main () | 
|  | 9965 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9966 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9967 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9968 | ; | 
|  | 9969 | return 0; | 
|  | 9970 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9971 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9973 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9974 |  | 
|  | 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9976 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9977 | ipv6=yes | 
|  | 9978 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9979 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9980 |  | 
|  | 9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9982 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9983 | ipv6=no | 
|  | 9984 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9985 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9986 | 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] | 9987 | fi | 
|  | 9988 |  | 
|  | 9989 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9990 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9991 |  | 
|  | 9992 | fi | 
|  | 9993 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9994 | fi | 
|  | 9995 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9996 |  | 
|  | 9997 | ipv6type=unknown | 
|  | 9998 | ipv6lib=none | 
|  | 9999 | ipv6trylibc=no | 
|  | 10000 |  | 
|  | 10001 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10003 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10004 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10005 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10006 | case $i in | 
|  | 10007 | inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10009 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10010 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10011 | #include <netinet/in.h> | 
|  | 10012 | #ifdef IPV6_INRIA_VERSION | 
|  | 10013 | yes | 
|  | 10014 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10017 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10018 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10019 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10020 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10021 |  | 
|  | 10022 | ;; | 
|  | 10023 | kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10025 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10026 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10027 | #include <netinet/in.h> | 
|  | 10028 | #ifdef __KAME__ | 
|  | 10029 | yes | 
|  | 10030 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10033 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10034 | ipv6type=$i; | 
|  | 10035 | ipv6lib=inet6 | 
|  | 10036 | ipv6libdir=/usr/local/v6/lib | 
|  | 10037 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10038 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10039 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10040 |  | 
|  | 10041 | ;; | 
|  | 10042 | linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10044 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10045 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10046 | #include <features.h> | 
|  | 10047 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10048 | yes | 
|  | 10049 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10052 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10053 | ipv6type=$i; | 
|  | 10054 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10055 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10056 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10057 |  | 
|  | 10058 | ;; | 
|  | 10059 | linux-inet6) | 
|  | 10060 | if test -d /usr/inet6; then | 
|  | 10061 | ipv6type=$i | 
|  | 10062 | ipv6lib=inet6 | 
|  | 10063 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10064 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10065 | fi | 
|  | 10066 | ;; | 
|  | 10067 | solaris) | 
|  | 10068 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 10069 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10070 | ipv6type=$i | 
|  | 10071 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10072 | fi | 
|  | 10073 | fi | 
|  | 10074 | ;; | 
|  | 10075 | toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10077 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10078 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10079 | #include <sys/param.h> | 
|  | 10080 | #ifdef _TOSHIBA_INET6 | 
|  | 10081 | yes | 
|  | 10082 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10085 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10086 | ipv6type=$i; | 
|  | 10087 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10088 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10089 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10090 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10091 |  | 
|  | 10092 | ;; | 
|  | 10093 | v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10095 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10096 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10097 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 10098 | #ifdef __V6D__ | 
|  | 10099 | yes | 
|  | 10100 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10103 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10104 | ipv6type=$i; | 
|  | 10105 | ipv6lib=v6; | 
|  | 10106 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10107 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10108 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10109 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10110 |  | 
|  | 10111 | ;; | 
|  | 10112 | zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10114 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10115 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10116 | #include <sys/param.h> | 
|  | 10117 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10118 | yes | 
|  | 10119 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10122 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10123 | ipv6type=$i; | 
|  | 10124 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10125 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10126 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10127 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10128 |  | 
|  | 10129 | ;; | 
|  | 10130 | esac | 
|  | 10131 | if test "$ipv6type" != "unknown"; then | 
|  | 10132 | break | 
|  | 10133 | fi | 
|  | 10134 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10136 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10137 | fi | 
|  | 10138 |  | 
|  | 10139 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10140 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10141 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10142 | echo "using lib$ipv6lib" | 
|  | 10143 | else | 
|  | 10144 | if test $ipv6trylibc = "yes"; then | 
|  | 10145 | echo "using libc" | 
|  | 10146 | else | 
|  | 10147 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10148 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10149 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10150 | exit 1 | 
|  | 10151 | fi | 
|  | 10152 | fi | 
|  | 10153 | fi | 
|  | 10154 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 10156 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 10157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10158 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10159 |  | 
|  | 10160 | #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10161 | int | 
|  | 10162 | main () | 
|  | 10163 | { | 
|  | 10164 | FSIORefNum fRef = 0 | 
|  | 10165 | ; | 
|  | 10166 | return 0; | 
|  | 10167 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 10168 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10169 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10170 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10171 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10173 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10174 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10176 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10177 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 10178 | else | 
|  | 10179 |  | 
|  | 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10181 | $as_echo "no" >&6; } | 
|  | 10182 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10183 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10185 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10186 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 10188 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10189 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10191 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10192 | withval=$with_doc_strings; | 
|  | 10193 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10194 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10195 |  | 
|  | 10196 | if test -z "$with_doc_strings" | 
|  | 10197 | then with_doc_strings="yes" | 
|  | 10198 | fi | 
|  | 10199 | if test "$with_doc_strings" != "no" | 
|  | 10200 | then | 
|  | 10201 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10202 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10203 |  | 
|  | 10204 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 10206 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10207 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10208 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 10210 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10211 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10212 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10213 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10214 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10215 | if test "$withval" != no | 
|  | 10216 | then | 
|  | 10217 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10218 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10219 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10221 | $as_echo "yes" >&6; } | 
|  | 10222 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10223 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10224 | fi | 
|  | 10225 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10227 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10228 | fi | 
|  | 10229 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10230 |  | 
|  | 10231 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 10233 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10235 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10236 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10237 | withval=$with_pymalloc; | 
|  | 10238 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10239 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10240 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10241 | if test -z "$with_pymalloc" | 
|  | 10242 | then with_pymalloc="yes" | 
|  | 10243 | fi | 
|  | 10244 | if test "$with_pymalloc" != "no" | 
|  | 10245 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10247 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10248 |  | 
|  | 10249 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 10251 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10252 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10253 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 10255 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10256 |  | 
|  | 10257 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10258 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10259 | withval=$with_valgrind; | 
|  | 10260 | else | 
|  | 10261 | with_valgrind=no | 
|  | 10262 | fi | 
|  | 10263 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 10265 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10266 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10267 | 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] | 10268 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10269 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10270 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10271 |  | 
|  | 10272 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10273 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10274 |  | 
|  | 10275 | fi | 
|  | 10276 |  | 
|  | 10277 |  | 
|  | 10278 | fi | 
|  | 10279 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10280 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
|  | 10282 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10284 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10285 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10286 | withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10287 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | then | 
|  | 10289 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10290 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10293 | $as_echo "yes" >&6; } | 
|  | 10294 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10295 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10296 | fi | 
|  | 10297 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10299 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10300 | fi | 
|  | 10301 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10302 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10303 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10304 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10305 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10306 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10307 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 10308 | # 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] | 10309 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10310 | do : | 
|  | 10311 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10312 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10314 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10316 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10317 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10318 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10319 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10320 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10321 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 10322 | # loading of modules. | 
|  | 10323 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 10325 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10326 | if test -z "$DYNLOADFILE" | 
|  | 10327 | then | 
|  | 10328 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10329 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 10330 | if test "$ac_cv_func_dlopen" = yes | 
|  | 10331 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 10332 | else DYNLOADFILE="dynload_aix.o" | 
|  | 10333 | fi | 
|  | 10334 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10335 | BeOS*) DYNLOADFILE="dynload_beos.o";; | 
|  | 10336 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10337 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 10338 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10339 | atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10340 | *) | 
|  | 10341 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 10342 | # out any dynamic loading | 
|  | 10343 | if test "$ac_cv_func_dlopen" = yes | 
|  | 10344 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 10345 | else DYNLOADFILE="dynload_stub.o" | 
|  | 10346 | fi | 
|  | 10347 | ;; | 
|  | 10348 | esac | 
|  | 10349 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 10351 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10352 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 10353 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10354 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10355 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10356 |  | 
|  | 10357 | fi | 
|  | 10358 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10359 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 10360 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10361 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 10363 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10364 | if test -z "$MACHDEP_OBJS" | 
|  | 10365 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10366 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 10367 | else | 
|  | 10368 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10369 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
|  | 10371 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10372 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10373 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 10374 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
|  | 10375 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 10376 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
|  | 10377 | getentropy \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10378 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Benjamin Peterson | d16e01c | 2014-02-04 10:20:26 -0500 | [diff] [blame] | 10379 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime mmap \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 10380 | mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 10381 | putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 10382 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
|  | 10383 | setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 10384 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10385 | setlocale setregid setreuid setresuid setresgid \ | 
|  | 10386 | setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 10387 | sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10388 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 10389 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10390 | do : | 
|  | 10391 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10392 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10393 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10395 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10397 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10398 | fi | 
|  | 10399 | done | 
|  | 10400 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10401 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10402 | # For some functions, having a definition is not sufficient, since | 
|  | 10403 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 10405 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 10406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10407 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10408 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10409 | int | 
|  | 10410 | main () | 
|  | 10411 | { | 
|  | 10412 | void *x=chroot | 
|  | 10413 | ; | 
|  | 10414 | return 0; | 
|  | 10415 | } | 
|  | 10416 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10417 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10418 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10419 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10420 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10422 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10423 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10425 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10426 |  | 
|  | 10427 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 10430 | $as_echo_n "checking for link... " >&6; } | 
|  | 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 | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10433 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10434 | int | 
|  | 10435 | main () | 
|  | 10436 | { | 
|  | 10437 | void *x=link | 
|  | 10438 | ; | 
|  | 10439 | return 0; | 
|  | 10440 | } | 
|  | 10441 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10442 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10443 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10444 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10445 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10447 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10448 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10450 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10451 |  | 
|  | 10452 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 10455 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 10456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10457 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10458 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10459 | int | 
|  | 10460 | main () | 
|  | 10461 | { | 
|  | 10462 | void *x=symlink | 
|  | 10463 | ; | 
|  | 10464 | return 0; | 
|  | 10465 | } | 
|  | 10466 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10467 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10468 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10469 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10470 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10472 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10473 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10475 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10476 |  | 
|  | 10477 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 10480 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 10481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10482 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10483 | #include <unistd.h> | 
|  | 10484 | int | 
|  | 10485 | main () | 
|  | 10486 | { | 
|  | 10487 | void *x=fchdir | 
|  | 10488 | ; | 
|  | 10489 | return 0; | 
|  | 10490 | } | 
|  | 10491 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10492 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10493 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10494 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10495 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10497 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10498 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10500 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10501 |  | 
|  | 10502 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 10505 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 10506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10507 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10508 | #include <unistd.h> | 
|  | 10509 | int | 
|  | 10510 | main () | 
|  | 10511 | { | 
|  | 10512 | void *x=fsync | 
|  | 10513 | ; | 
|  | 10514 | return 0; | 
|  | 10515 | } | 
|  | 10516 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10517 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10518 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10519 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10520 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10522 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10523 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10525 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10526 |  | 
|  | 10527 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 10530 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 10531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10532 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10533 | #include <unistd.h> | 
|  | 10534 | int | 
|  | 10535 | main () | 
|  | 10536 | { | 
|  | 10537 | void *x=fdatasync | 
|  | 10538 | ; | 
|  | 10539 | return 0; | 
|  | 10540 | } | 
|  | 10541 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10542 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10543 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10544 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10545 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10547 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10548 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10550 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10551 |  | 
|  | 10552 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 10555 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 10556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10557 | /* end confdefs.h.  */ | 
|  | 10558 | #include <sys/epoll.h> | 
|  | 10559 | int | 
|  | 10560 | main () | 
|  | 10561 | { | 
|  | 10562 | void *x=epoll_create | 
|  | 10563 | ; | 
|  | 10564 | return 0; | 
|  | 10565 | } | 
|  | 10566 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10567 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10568 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10569 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10570 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10572 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10573 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10575 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10576 |  | 
|  | 10577 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 10580 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 10581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10582 | /* end confdefs.h.  */ | 
|  | 10583 |  | 
|  | 10584 | #include <sys/types.h> | 
|  | 10585 | #include <sys/event.h> | 
|  | 10586 |  | 
|  | 10587 | int | 
|  | 10588 | main () | 
|  | 10589 | { | 
|  | 10590 | int x=kqueue() | 
|  | 10591 | ; | 
|  | 10592 | return 0; | 
|  | 10593 | } | 
|  | 10594 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10595 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10596 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10597 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10598 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10600 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10601 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10603 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10604 |  | 
|  | 10605 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10606 | 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] | 10607 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 10608 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 10609 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 10610 | # address to avoid compiler warnings and potential miscompilations | 
|  | 10611 | # because of the missing prototypes. | 
|  | 10612 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 10614 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 10615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10616 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10617 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10618 | #include <stdio.h> | 
|  | 10619 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10620 | int | 
|  | 10621 | main () | 
|  | 10622 | { | 
|  | 10623 | void* p = ctermid_r | 
|  | 10624 | ; | 
|  | 10625 | return 0; | 
|  | 10626 | } | 
|  | 10627 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10628 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10629 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10630 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10631 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10633 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10634 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10636 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10637 |  | 
|  | 10638 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10640 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 10642 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10643 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10644 | $as_echo_n "(cached) " >&6 | 
|  | 10645 | else | 
|  | 10646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10647 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10648 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10649 | int | 
|  | 10650 | main () | 
|  | 10651 | { | 
|  | 10652 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10653 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10654 | ; | 
|  | 10655 | return 0; | 
|  | 10656 | } | 
|  | 10657 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10658 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10659 | ac_cv_flock_decl=yes | 
|  | 10660 | else | 
|  | 10661 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10662 |  | 
|  | 10663 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10665 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10666 | fi | 
|  | 10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 10668 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 10669 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 10670 | for ac_func in flock | 
|  | 10671 | do : | 
|  | 10672 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10673 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10674 | cat >>confdefs.h <<_ACEOF | 
|  | 10675 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10676 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10677 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10678 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10679 | { $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] | 10680 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10681 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10682 | $as_echo_n "(cached) " >&6 | 
|  | 10683 | else | 
|  | 10684 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10685 | LIBS="-lbsd  $LIBS" | 
|  | 10686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10687 | /* end confdefs.h.  */ | 
|  | 10688 |  | 
|  | 10689 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10690 | Use char because int might match the return type of a GCC | 
|  | 10691 | builtin and then its argument prototype would still apply.  */ | 
|  | 10692 | #ifdef __cplusplus | 
|  | 10693 | extern "C" | 
|  | 10694 | #endif | 
|  | 10695 | char flock (); | 
|  | 10696 | int | 
|  | 10697 | main () | 
|  | 10698 | { | 
|  | 10699 | return flock (); | 
|  | 10700 | ; | 
|  | 10701 | return 0; | 
|  | 10702 | } | 
|  | 10703 | _ACEOF | 
|  | 10704 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 10705 | ac_cv_lib_bsd_flock=yes | 
|  | 10706 | else | 
|  | 10707 | ac_cv_lib_bsd_flock=no | 
|  | 10708 | fi | 
|  | 10709 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10710 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10711 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10712 | fi | 
|  | 10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 10714 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10715 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10716 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10717 |  | 
|  | 10718 |  | 
|  | 10719 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 10720 |  | 
|  | 10721 |  | 
|  | 10722 | fi | 
|  | 10723 |  | 
|  | 10724 |  | 
|  | 10725 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10726 | done | 
|  | 10727 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10728 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10729 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 10731 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 10732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10733 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10734 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10735 | #include <unistd.h> | 
|  | 10736 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10737 | int | 
|  | 10738 | main () | 
|  | 10739 | { | 
|  | 10740 | void* p = getpagesize | 
|  | 10741 | ; | 
|  | 10742 | return 0; | 
|  | 10743 | } | 
|  | 10744 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10745 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10746 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10747 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10748 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10750 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10753 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10754 |  | 
|  | 10755 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10756 | 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] | 10757 |  | 
| Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 10759 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 10760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10761 | /* end confdefs.h.  */ | 
|  | 10762 |  | 
|  | 10763 | #include <stdlib.h> | 
|  | 10764 |  | 
|  | 10765 | int | 
|  | 10766 | main () | 
|  | 10767 | { | 
|  | 10768 | int res = unsetenv("DUMMY") | 
|  | 10769 | ; | 
|  | 10770 | return 0; | 
|  | 10771 | } | 
|  | 10772 | _ACEOF | 
|  | 10773 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10775 | $as_echo "no" >&6; } | 
|  | 10776 | else | 
|  | 10777 |  | 
|  | 10778 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 10779 |  | 
|  | 10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10781 | $as_echo "yes" >&6; } | 
|  | 10782 |  | 
|  | 10783 | fi | 
|  | 10784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10785 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10786 | for ac_prog in true | 
|  | 10787 | do | 
|  | 10788 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 10789 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10791 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10792 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10793 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10794 | else | 
|  | 10795 | if test -n "$TRUE"; then | 
|  | 10796 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 10797 | else | 
|  | 10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10799 | for as_dir in $PATH | 
|  | 10800 | do | 
|  | 10801 | IFS=$as_save_IFS | 
|  | 10802 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10803 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 10804 | 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] | 10805 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10806 | $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] | 10807 | break 2 | 
|  | 10808 | fi | 
|  | 10809 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10810 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10811 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10812 |  | 
|  | 10813 | fi | 
|  | 10814 | fi | 
|  | 10815 | TRUE=$ac_cv_prog_TRUE | 
|  | 10816 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 10818 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10819 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10821 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10822 | fi | 
|  | 10823 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10824 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10825 | test -n "$TRUE" && break | 
|  | 10826 | done | 
|  | 10827 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 10828 |  | 
|  | 10829 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 10831 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10832 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10833 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10834 | else | 
|  | 10835 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10836 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10838 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10839 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10840 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10841 | Use char because int might match the return type of a GCC | 
|  | 10842 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10843 | #ifdef __cplusplus | 
|  | 10844 | extern "C" | 
|  | 10845 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10846 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10847 | int | 
|  | 10848 | main () | 
|  | 10849 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10850 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10851 | ; | 
|  | 10852 | return 0; | 
|  | 10853 | } | 
|  | 10854 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10855 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10856 | ac_cv_lib_c_inet_aton=yes | 
|  | 10857 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10858 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10859 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10860 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10861 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10862 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10863 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 10865 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10866 | 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] | 10867 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10868 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 10870 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10871 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10872 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10873 | else | 
|  | 10874 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10875 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10877 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10878 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10879 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10880 | Use char because int might match the return type of a GCC | 
|  | 10881 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10882 | #ifdef __cplusplus | 
|  | 10883 | extern "C" | 
|  | 10884 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10885 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10886 | int | 
|  | 10887 | main () | 
|  | 10888 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10889 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10890 | ; | 
|  | 10891 | return 0; | 
|  | 10892 | } | 
|  | 10893 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10894 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10895 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 10896 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10897 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10898 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10899 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10900 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10901 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10902 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 10904 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10905 | 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] | 10906 | cat >>confdefs.h <<_ACEOF | 
|  | 10907 | #define HAVE_LIBRESOLV 1 | 
|  | 10908 | _ACEOF | 
|  | 10909 |  | 
|  | 10910 | LIBS="-lresolv $LIBS" | 
|  | 10911 |  | 
|  | 10912 | fi | 
|  | 10913 |  | 
|  | 10914 |  | 
|  | 10915 | fi | 
|  | 10916 |  | 
|  | 10917 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10918 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 10919 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 10921 | $as_echo_n "checking for chflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10922 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10923 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10924 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10925 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10926 | ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10927 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10929 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10930 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10931 | #include <sys/stat.h> | 
|  | 10932 | #include <unistd.h> | 
|  | 10933 | int main(int argc, char*argv[]) | 
|  | 10934 | { | 
|  | 10935 | if(chflags(argv[0], 0) != 0) | 
|  | 10936 | return 1; | 
|  | 10937 | return 0; | 
|  | 10938 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10939 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10940 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10941 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10942 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10943 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10944 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10945 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10946 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10947 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10948 | fi | 
|  | 10949 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10950 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10951 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 10953 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10954 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10955 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10956 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10957 | ac_cv_have_chflags="yes" | 
|  | 10958 | else | 
|  | 10959 | ac_cv_have_chflags="no" | 
|  | 10960 | fi | 
|  | 10961 |  | 
|  | 10962 | fi | 
|  | 10963 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10964 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10965 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10966 |  | 
|  | 10967 | fi | 
|  | 10968 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 10970 | $as_echo_n "checking for lchflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10971 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10972 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10973 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10974 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10975 | ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10976 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10978 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10979 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10980 | #include <sys/stat.h> | 
|  | 10981 | #include <unistd.h> | 
|  | 10982 | int main(int argc, char*argv[]) | 
|  | 10983 | { | 
|  | 10984 | if(lchflags(argv[0], 0) != 0) | 
|  | 10985 | return 1; | 
|  | 10986 | return 0; | 
|  | 10987 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10988 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10989 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10990 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10991 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10992 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10993 | ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10994 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10996 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10997 | fi | 
|  | 10998 |  | 
|  | 10999 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11000 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11002 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 11003 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11004 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11005 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 11006 | ac_cv_have_lchflags="yes" | 
|  | 11007 | else | 
|  | 11008 | ac_cv_have_lchflags="no" | 
|  | 11009 | fi | 
|  | 11010 |  | 
|  | 11011 | fi | 
|  | 11012 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11013 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11014 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11015 |  | 
|  | 11016 | fi | 
|  | 11017 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 11018 | case $ac_sys_system/$ac_sys_release in | 
|  | 11019 | Darwin/*) | 
|  | 11020 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11021 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11022 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11023 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11024 | ;; | 
|  | 11025 | esac | 
|  | 11026 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11028 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11029 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11030 | $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11031 | else | 
|  | 11032 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11033 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11035 | /* end confdefs.h.  */ | 
|  | 11036 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11037 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11038 | Use char because int might match the return type of a GCC | 
|  | 11039 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11040 | #ifdef __cplusplus | 
|  | 11041 | extern "C" | 
|  | 11042 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11043 | char inflateCopy (); | 
|  | 11044 | int | 
|  | 11045 | main () | 
|  | 11046 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11047 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11048 | ; | 
|  | 11049 | return 0; | 
|  | 11050 | } | 
|  | 11051 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11052 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11053 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11054 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11055 | ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11056 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11057 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11058 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11059 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11060 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 11062 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11063 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11064 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11065 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11066 |  | 
|  | 11067 | fi | 
|  | 11068 |  | 
|  | 11069 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 11070 | case $ac_sys_system/$ac_sys_release in | 
|  | 11071 | Darwin/*) | 
|  | 11072 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 11073 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 11074 | ;; | 
|  | 11075 | esac | 
|  | 11076 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 11078 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 11079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11080 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11081 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11082 | #include <netdb.h> | 
|  | 11083 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11084 | int | 
|  | 11085 | main () | 
|  | 11086 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11087 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11088 | ; | 
|  | 11089 | return 0; | 
|  | 11090 | } | 
|  | 11091 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11092 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11093 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11094 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11095 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11097 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11098 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11100 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11101 |  | 
|  | 11102 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11103 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11104 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11105 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 11107 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 11108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11109 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11110 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11111 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11112 | #include <sys/socket.h> | 
|  | 11113 | #include <netinet/in.h> | 
|  | 11114 | #include <arpa/inet.h> | 
|  | 11115 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11116 | int | 
|  | 11117 | main () | 
|  | 11118 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11119 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11120 | ; | 
|  | 11121 | return 0; | 
|  | 11122 | } | 
|  | 11123 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11124 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11125 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11126 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11127 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11129 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11130 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11132 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11133 |  | 
|  | 11134 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11135 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11136 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11137 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 11139 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 11140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11141 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11142 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11143 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11144 | #include <sys/socket.h> | 
|  | 11145 | #include <netinet/in.h> | 
|  | 11146 | #include <arpa/inet.h> | 
|  | 11147 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11148 | int | 
|  | 11149 | main () | 
|  | 11150 | { | 
|  | 11151 | void* p = inet_pton | 
|  | 11152 | ; | 
|  | 11153 | return 0; | 
|  | 11154 | } | 
|  | 11155 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11156 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11157 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11158 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11159 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11161 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11162 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11164 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11165 |  | 
|  | 11166 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11167 | 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] | 11168 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11169 | # 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] | 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 11171 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 11172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11173 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11174 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11175 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11176 | #ifdef HAVE_GRP_H | 
|  | 11177 | #include <grp.h> | 
|  | 11178 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11179 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11180 | int | 
|  | 11181 | main () | 
|  | 11182 | { | 
|  | 11183 | void* p = setgroups | 
|  | 11184 | ; | 
|  | 11185 | return 0; | 
|  | 11186 | } | 
|  | 11187 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11188 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11189 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11190 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11191 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11193 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11194 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11196 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11197 |  | 
|  | 11198 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11199 | 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] | 11200 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11201 | # check for openpty and forkpty | 
|  | 11202 |  | 
|  | 11203 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11204 | do : | 
|  | 11205 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11206 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11208 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11210 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11211 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 11213 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11214 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11215 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11216 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11218 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11220 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11222 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11223 | Use char because int might match the return type of a GCC | 
|  | 11224 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | #ifdef __cplusplus | 
|  | 11226 | extern "C" | 
|  | 11227 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | int | 
|  | 11230 | main () | 
|  | 11231 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11232 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | ; | 
|  | 11234 | return 0; | 
|  | 11235 | } | 
|  | 11236 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11237 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11239 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11240 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11241 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11242 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11243 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11245 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 11247 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11248 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11249 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11250 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11251 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 11253 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11254 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11255 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11256 | else | 
|  | 11257 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11258 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11260 | /* end confdefs.h.  */ | 
|  | 11261 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11262 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11263 | Use char because int might match the return type of a GCC | 
|  | 11264 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11265 | #ifdef __cplusplus | 
|  | 11266 | extern "C" | 
|  | 11267 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11268 | char openpty (); | 
|  | 11269 | int | 
|  | 11270 | main () | 
|  | 11271 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11272 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11273 | ; | 
|  | 11274 | return 0; | 
|  | 11275 | } | 
|  | 11276 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11277 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11278 | ac_cv_lib_bsd_openpty=yes | 
|  | 11279 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11280 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11281 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11282 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11283 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11284 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11285 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 11287 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11288 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11289 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11290 | LIBS="$LIBS -lbsd" | 
|  | 11291 | fi | 
|  | 11292 |  | 
|  | 11293 |  | 
|  | 11294 | fi | 
|  | 11295 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11296 |  | 
|  | 11297 | fi | 
|  | 11298 | done | 
|  | 11299 |  | 
|  | 11300 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11301 | do : | 
|  | 11302 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11303 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11304 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11305 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11307 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11308 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 11310 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11311 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11312 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11313 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11315 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11319 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11320 | Use char because int might match the return type of a GCC | 
|  | 11321 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | #ifdef __cplusplus | 
|  | 11323 | extern "C" | 
|  | 11324 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | int | 
|  | 11327 | main () | 
|  | 11328 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11329 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11330 | ; | 
|  | 11331 | return 0; | 
|  | 11332 | } | 
|  | 11333 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11334 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11336 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11337 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11338 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11339 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11340 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11341 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11342 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 11344 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11345 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11346 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11347 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11348 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 11350 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11351 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11352 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11353 | else | 
|  | 11354 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11355 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11357 | /* end confdefs.h.  */ | 
|  | 11358 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11359 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11360 | Use char because int might match the return type of a GCC | 
|  | 11361 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11362 | #ifdef __cplusplus | 
|  | 11363 | extern "C" | 
|  | 11364 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11365 | char forkpty (); | 
|  | 11366 | int | 
|  | 11367 | main () | 
|  | 11368 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11369 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11370 | ; | 
|  | 11371 | return 0; | 
|  | 11372 | } | 
|  | 11373 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11374 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11375 | ac_cv_lib_bsd_forkpty=yes | 
|  | 11376 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11377 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11378 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11379 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11380 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11381 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11382 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 11384 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11385 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11386 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11387 | LIBS="$LIBS -lbsd" | 
|  | 11388 | fi | 
|  | 11389 |  | 
|  | 11390 |  | 
|  | 11391 | fi | 
|  | 11392 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11393 |  | 
|  | 11394 | fi | 
|  | 11395 | done | 
|  | 11396 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11397 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11398 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11399 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11400 | do : | 
|  | 11401 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11402 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11403 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11404 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11405 | _ACEOF | 
|  | 11406 |  | 
|  | 11407 | fi | 
|  | 11408 | done | 
|  | 11409 |  | 
|  | 11410 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11411 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11412 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11413 | do : | 
|  | 11414 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11415 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11416 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11418 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11420 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11421 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11422 | done | 
|  | 11423 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11424 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11425 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11426 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11427 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11428 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11429 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11430 | case " $LIBOBJS " in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11431 | *" dup2.$ac_objext "* ) ;; | 
|  | 11432 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11433 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11434 | esac | 
|  | 11435 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11436 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11437 |  | 
|  | 11438 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11439 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11440 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
|  | 11441 |  | 
|  | 11442 | else | 
|  | 11443 | case " $LIBOBJS " in | 
|  | 11444 | *" getcwd.$ac_objext "* ) ;; | 
|  | 11445 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
|  | 11446 | ;; | 
|  | 11447 | esac | 
|  | 11448 |  | 
|  | 11449 | fi | 
|  | 11450 |  | 
|  | 11451 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11452 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11453 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 11454 |  | 
|  | 11455 | else | 
|  | 11456 | case " $LIBOBJS " in | 
|  | 11457 | *" strdup.$ac_objext "* ) ;; | 
|  | 11458 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 11459 | ;; | 
|  | 11460 | esac | 
|  | 11461 |  | 
|  | 11462 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11463 |  | 
|  | 11464 |  | 
|  | 11465 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11466 | do : | 
|  | 11467 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11468 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11470 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11473 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11474 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | int | 
|  | 11476 | main () | 
|  | 11477 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11478 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | ; | 
|  | 11480 | return 0; | 
|  | 11481 | } | 
|  | 11482 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11483 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11485 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11486 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11487 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11488 | 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] | 11489 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11490 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11491 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11492 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11493 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11494 | do : | 
|  | 11495 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11496 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11497 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11498 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11499 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11501 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11502 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11503 | int | 
|  | 11504 | main () | 
|  | 11505 | { | 
|  | 11506 | setpgrp(0,0); | 
|  | 11507 | ; | 
|  | 11508 | return 0; | 
|  | 11509 | } | 
|  | 11510 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11511 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11513 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11514 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11515 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11517 |  | 
|  | 11518 | fi | 
|  | 11519 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11520 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11521 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11522 | do : | 
|  | 11523 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11524 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11526 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11529 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11530 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | int | 
|  | 11532 | main () | 
|  | 11533 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11534 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | ; | 
|  | 11536 | return 0; | 
|  | 11537 | } | 
|  | 11538 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11539 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11540 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11541 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11543 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11544 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11546 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11547 | 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] | 11548 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11549 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11550 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11551 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11552 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 11554 | $as_echo_n "checking for major... " >&6; } | 
|  | 11555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11556 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11557 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11558 | #if defined(MAJOR_IN_MKDEV) | 
|  | 11559 | #include <sys/mkdev.h> | 
|  | 11560 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 11561 | #include <sys/sysmacros.h> | 
|  | 11562 | #else | 
|  | 11563 | #include <sys/types.h> | 
|  | 11564 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11565 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11566 | int | 
|  | 11567 | main () | 
|  | 11568 | { | 
|  | 11569 |  | 
|  | 11570 | makedev(major(0),minor(0)); | 
|  | 11571 |  | 
|  | 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_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11577 |  | 
|  | 11578 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11579 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11580 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11582 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11583 |  | 
|  | 11584 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11585 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11587 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11588 |  | 
|  | 11589 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11590 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11591 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11592 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11593 | # 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] | 11594 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 11596 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 11597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11598 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11599 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11600 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11601 | #include <sys/socket.h> | 
|  | 11602 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11603 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11604 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11605 | int | 
|  | 11606 | main () | 
|  | 11607 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11608 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | ; | 
|  | 11610 | return 0; | 
|  | 11611 | } | 
|  | 11612 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11613 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11614 | have_getaddrinfo=yes | 
|  | 11615 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11616 | have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11617 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11618 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11619 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 11621 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11622 | if test $have_getaddrinfo = yes | 
|  | 11623 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 11625 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11626 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11627 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11628 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11629 | if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11630 |  | 
|  | 11631 | if test "${enable_ipv6+set}" = set; then | 
|  | 11632 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 11633 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11634 | ac_cv_buggy_getaddrinfo=yes | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11635 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11636 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11638 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11639 |  | 
| Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 11640 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11641 | #include <sys/types.h> | 
|  | 11642 | #include <netdb.h> | 
|  | 11643 | #include <string.h> | 
|  | 11644 | #include <sys/socket.h> | 
|  | 11645 | #include <netinet/in.h> | 
|  | 11646 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11647 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11648 | { | 
|  | 11649 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 11650 | struct addrinfo hints, *ai, *aitop; | 
|  | 11651 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 11652 |  | 
|  | 11653 | for (passive = 0; passive <= 1; passive++) { | 
|  | 11654 | memset(&hints, 0, sizeof(hints)); | 
|  | 11655 | hints.ai_family = AF_UNSPEC; | 
|  | 11656 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 11657 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11658 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11659 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 11660 | (void)gai_strerror(gaierr); | 
|  | 11661 | goto bad; | 
|  | 11662 | } | 
|  | 11663 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 11664 | if (ai->ai_addr == NULL || | 
|  | 11665 | ai->ai_addrlen == 0 || | 
|  | 11666 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 11667 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 11668 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 11669 | goto bad; | 
|  | 11670 | } | 
|  | 11671 | switch (ai->ai_family) { | 
|  | 11672 | case AF_INET: | 
|  | 11673 | if (strcmp(strport, "54321") != 0) { | 
|  | 11674 | goto bad; | 
|  | 11675 | } | 
|  | 11676 | if (passive) { | 
|  | 11677 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 11678 | goto bad; | 
|  | 11679 | } | 
|  | 11680 | } else { | 
|  | 11681 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 11682 | goto bad; | 
|  | 11683 | } | 
|  | 11684 | } | 
|  | 11685 | inet4++; | 
|  | 11686 | break; | 
|  | 11687 | case AF_INET6: | 
|  | 11688 | if (strcmp(strport, "54321") != 0) { | 
|  | 11689 | goto bad; | 
|  | 11690 | } | 
|  | 11691 | if (passive) { | 
|  | 11692 | if (strcmp(straddr, "::") != 0) { | 
|  | 11693 | goto bad; | 
|  | 11694 | } | 
|  | 11695 | } else { | 
|  | 11696 | if (strcmp(straddr, "::1") != 0) { | 
|  | 11697 | goto bad; | 
|  | 11698 | } | 
|  | 11699 | } | 
|  | 11700 | inet6++; | 
|  | 11701 | break; | 
|  | 11702 | case AF_UNSPEC: | 
|  | 11703 | goto bad; | 
|  | 11704 | break; | 
|  | 11705 | default: | 
|  | 11706 | /* another family support? */ | 
|  | 11707 | break; | 
|  | 11708 | } | 
|  | 11709 | } | 
|  | 11710 | } | 
|  | 11711 |  | 
|  | 11712 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 11713 | goto bad; | 
|  | 11714 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 11715 | goto bad; | 
|  | 11716 |  | 
|  | 11717 | if (aitop) | 
|  | 11718 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11719 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11720 |  | 
|  | 11721 | bad: | 
|  | 11722 | if (aitop) | 
|  | 11723 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11724 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11725 | } | 
|  | 11726 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11728 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11729 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11730 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11731 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11732 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11733 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11734 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11735 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11736 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11737 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11738 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11739 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11740 |  | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 11742 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 11743 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11744 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11745 | then | 
|  | 11746 | if test $ipv6 = yes | 
|  | 11747 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11748 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 11749 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 11750 | exit 1 | 
|  | 11751 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11752 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11754 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11755 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11756 | fi | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11757 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11758 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11759 | do : | 
|  | 11760 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11761 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11763 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11765 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11766 | fi | 
|  | 11767 | done | 
|  | 11768 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11769 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11770 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 11772 | $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] | 11773 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11774 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11775 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11777 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11778 | #include <sys/types.h> | 
|  | 11779 | #include <sys/time.h> | 
|  | 11780 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11782 | int | 
|  | 11783 | main () | 
|  | 11784 | { | 
|  | 11785 | if ((struct tm *) 0) | 
|  | 11786 | return 0; | 
|  | 11787 | ; | 
|  | 11788 | return 0; | 
|  | 11789 | } | 
|  | 11790 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11791 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11792 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11793 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11794 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11795 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11797 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 11799 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11800 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11802 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11803 |  | 
|  | 11804 | fi | 
|  | 11805 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 11807 | $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] | 11808 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11809 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11810 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11812 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11813 | #include <sys/types.h> | 
|  | 11814 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11816 | int | 
|  | 11817 | main () | 
|  | 11818 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11819 | struct tm tm; | 
|  | 11820 | int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11821 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11822 | ; | 
|  | 11823 | return 0; | 
|  | 11824 | } | 
|  | 11825 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11826 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11827 | ac_cv_struct_tm=time.h | 
|  | 11828 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11829 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11830 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11832 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 11834 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11835 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11837 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11838 |  | 
|  | 11839 | fi | 
|  | 11840 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11841 | 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] | 11842 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11844 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11845 | 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] | 11846 |  | 
|  | 11847 | cat >>confdefs.h <<_ACEOF | 
|  | 11848 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 11849 | _ACEOF | 
|  | 11850 |  | 
|  | 11851 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11852 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11853 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 11855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11856 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11857 |  | 
|  | 11858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11859 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 11860 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11861 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11862 | ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11863 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11864 | ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11865 | fi | 
|  | 11866 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11867 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11868 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11869 | _ACEOF | 
|  | 11870 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 11872 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11873 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11874 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11875 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11877 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11878 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11879 | #if !HAVE_DECL_TZNAME | 
|  | 11880 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11881 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11882 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | int | 
|  | 11884 | main () | 
|  | 11885 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11886 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11887 | ; | 
|  | 11888 | return 0; | 
|  | 11889 | } | 
|  | 11890 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11891 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11892 | ac_cv_var_tzname=yes | 
|  | 11893 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11894 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11895 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11896 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11897 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11898 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 11900 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11901 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11903 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11904 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11905 | fi | 
|  | 11906 | fi | 
|  | 11907 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11908 | 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] | 11909 | 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] | 11910 |  | 
|  | 11911 | cat >>confdefs.h <<_ACEOF | 
|  | 11912 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 11913 | _ACEOF | 
|  | 11914 |  | 
|  | 11915 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11916 | fi | 
|  | 11917 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11918 | 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] | 11919 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11920 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 | cat >>confdefs.h <<_ACEOF | 
|  | 11922 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 11923 | _ACEOF | 
|  | 11924 |  | 
|  | 11925 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11926 | fi | 
|  | 11927 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11928 | 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] | 11929 | 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] | 11930 |  | 
|  | 11931 | cat >>confdefs.h <<_ACEOF | 
|  | 11932 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 11933 | _ACEOF | 
|  | 11934 |  | 
|  | 11935 |  | 
|  | 11936 | fi | 
|  | 11937 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11938 | 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] | 11939 | 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] | 11940 |  | 
|  | 11941 | cat >>confdefs.h <<_ACEOF | 
|  | 11942 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 11943 | _ACEOF | 
|  | 11944 |  | 
|  | 11945 |  | 
|  | 11946 | fi | 
|  | 11947 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11948 | 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] | 11949 | 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] | 11950 |  | 
|  | 11951 | cat >>confdefs.h <<_ACEOF | 
|  | 11952 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 11953 | _ACEOF | 
|  | 11954 |  | 
|  | 11955 |  | 
|  | 11956 | fi | 
|  | 11957 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11958 | 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] | 11959 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11960 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | cat >>confdefs.h <<_ACEOF | 
|  | 11962 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 11963 | _ACEOF | 
|  | 11964 |  | 
|  | 11965 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11966 | fi | 
|  | 11967 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11968 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 11970 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11971 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11972 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11973 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11976 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11977 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | int | 
|  | 11979 | main () | 
|  | 11980 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11981 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11982 | ; | 
|  | 11983 | return 0; | 
|  | 11984 | } | 
|  | 11985 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11986 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11987 | ac_cv_header_time_altzone=yes | 
|  | 11988 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11989 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11990 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11992 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11993 | fi | 
|  | 11994 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 11996 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11997 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11998 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11999 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12000 |  | 
|  | 12001 | fi | 
|  | 12002 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12003 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 12005 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 12006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12007 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12008 |  | 
|  | 12009 | #include <sys/types.h> | 
|  | 12010 | #include <sys/select.h> | 
|  | 12011 | #include <sys/time.h> | 
|  | 12012 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | int | 
|  | 12014 | main () | 
|  | 12015 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12016 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | ; | 
|  | 12018 | return 0; | 
|  | 12019 | } | 
|  | 12020 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12021 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 |  | 
|  | 12023 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12024 | $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] | 12025 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12026 | was_it_defined=yes | 
|  | 12027 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12028 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 12031 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12032 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 12034 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12035 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12036 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12037 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12039 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12040 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | int | 
|  | 12042 | main () | 
|  | 12043 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12044 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | ; | 
|  | 12046 | return 0; | 
|  | 12047 | } | 
|  | 12048 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12049 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12050 | ac_cv_struct_addrinfo=yes | 
|  | 12051 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12052 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12053 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12055 | fi | 
|  | 12056 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 12058 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12059 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12061 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12062 |  | 
|  | 12063 | fi | 
|  | 12064 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 12066 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12067 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12068 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12069 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12071 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12072 |  | 
|  | 12073 | #		include <sys/types.h> | 
|  | 12074 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12075 | int | 
|  | 12076 | main () | 
|  | 12077 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12078 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | ; | 
|  | 12080 | return 0; | 
|  | 12081 | } | 
|  | 12082 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12083 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12084 | ac_cv_struct_sockaddr_storage=yes | 
|  | 12085 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12086 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12087 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12089 | fi | 
|  | 12090 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 12092 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12093 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12094 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12095 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12096 |  | 
|  | 12097 | fi | 
|  | 12098 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12099 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12100 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 12102 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12103 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12104 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12105 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12107 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | int | 
|  | 12110 | main () | 
|  | 12111 | { | 
|  | 12112 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12113 | test_array [0] = 0; | 
|  | 12114 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 |  | 
|  | 12116 | ; | 
|  | 12117 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12118 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12120 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12121 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12122 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12123 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12124 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12126 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 12128 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12129 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12130 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12131 |  | 
|  | 12132 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12133 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 12135 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12136 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12137 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12140 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12141 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | int | 
|  | 12143 | main () | 
|  | 12144 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12145 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | #ifndef __cplusplus | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12147 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | typedef int charset[2]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12149 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12151 | char const *const *pcpcc; | 
|  | 12152 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 12154 | struct point {int x, y;}; | 
|  | 12155 | static struct point const zero = {0,0}; | 
|  | 12156 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 12157 | It does not let you subtract one const X* pointer from another in | 
|  | 12158 | an arm of an if-expression whose if-part is not a constant | 
|  | 12159 | expression */ | 
|  | 12160 | const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12161 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 | /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12163 | ++pcpcc; | 
|  | 12164 | ppc = (char**) pcpcc; | 
|  | 12165 | pcpcc = (char const *const *) ppc; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12166 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 12167 | char tx; | 
|  | 12168 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12170 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12172 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12173 | } | 
|  | 12174 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 12175 | int x[] = {25, 17}; | 
|  | 12176 | const int *foo = &x[0]; | 
|  | 12177 | ++foo; | 
|  | 12178 | } | 
|  | 12179 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 12180 | typedef const int *iptr; | 
|  | 12181 | iptr p = 0; | 
|  | 12182 | ++p; | 
|  | 12183 | } | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12184 | { /* 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] | 12185 | "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] | 12186 | struct s { int j; const int *ap[3]; } bx; | 
|  | 12187 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | } | 
|  | 12189 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 12190 | const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12191 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12193 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12194 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12195 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12196 | ; | 
|  | 12197 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12198 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12200 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12201 | ac_cv_c_const=yes | 
|  | 12202 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12203 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12204 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12206 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 12208 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12209 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12210 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12211 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12212 |  | 
|  | 12213 | fi | 
|  | 12214 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12215 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12216 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 12218 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 12219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12220 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12221 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | int | 
|  | 12223 | main () | 
|  | 12224 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12225 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | ; | 
|  | 12227 | return 0; | 
|  | 12228 | } | 
|  | 12229 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12230 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12231 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12232 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12233 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12234 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12235 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12236 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12237 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 12240 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12241 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12242 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 12244 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 12245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12246 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12247 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | int | 
|  | 12249 | main () | 
|  | 12250 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12251 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | ; | 
|  | 12253 | return 0; | 
|  | 12254 | } | 
|  | 12255 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12256 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12257 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12258 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12259 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12260 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12261 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12262 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12263 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 12266 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12267 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12268 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 12270 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 12271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12272 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12273 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 | int | 
|  | 12275 | main () | 
|  | 12276 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12277 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | ; | 
|  | 12279 | return 0; | 
|  | 12280 | } | 
|  | 12281 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12282 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12284 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12286 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12287 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 12290 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12291 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12292 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 12294 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 12295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12296 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12297 |  | 
|  | 12298 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12299 | int foo(int x, ...) { | 
|  | 12300 | va_list va; | 
|  | 12301 | va_start(va, x); | 
|  | 12302 | va_arg(va, int); | 
|  | 12303 | va_arg(va, char *); | 
|  | 12304 | va_arg(va, double); | 
|  | 12305 | return 0; | 
|  | 12306 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12307 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | int | 
|  | 12309 | main () | 
|  | 12310 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12311 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | ; | 
|  | 12313 | return 0; | 
|  | 12314 | } | 
|  | 12315 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12316 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 |  | 
|  | 12318 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12319 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12321 | works=yes | 
|  | 12322 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12323 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 12326 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12327 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12328 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 12330 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 12331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12332 | /* end confdefs.h.  */ | 
|  | 12333 |  | 
|  | 12334 | #include <sys/types.h> | 
|  | 12335 | #include <sys/socket.h> | 
|  | 12336 |  | 
|  | 12337 | int | 
|  | 12338 | main () | 
|  | 12339 | { | 
|  | 12340 | void *x=socketpair | 
|  | 12341 | ; | 
|  | 12342 | return 0; | 
|  | 12343 | } | 
|  | 12344 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12345 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12346 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12347 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12348 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12350 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12351 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12353 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12354 |  | 
|  | 12355 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12356 | 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] | 12357 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12358 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 12360 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12362 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12363 | #include <sys/types.h> | 
|  | 12364 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | int | 
|  | 12366 | main () | 
|  | 12367 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12368 | struct sockaddr x; | 
|  | 12369 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12370 | ; | 
|  | 12371 | return 0; | 
|  | 12372 | } | 
|  | 12373 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12374 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12376 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12378 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12379 |  | 
|  | 12380 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12382 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12383 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12384 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12385 | 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] | 12386 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12387 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 12389 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 12390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12391 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12392 |  | 
|  | 12393 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 12394 | #include <stdarg.h> | 
|  | 12395 | #else | 
|  | 12396 | #include <varargs.h> | 
|  | 12397 | #endif | 
|  | 12398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | int | 
|  | 12400 | main () | 
|  | 12401 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12402 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | ; | 
|  | 12404 | return 0; | 
|  | 12405 | } | 
|  | 12406 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12407 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12408 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12409 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12410 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12412 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12414 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12415 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12416 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 12419 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12420 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12421 | # 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] | 12422 |  | 
|  | 12423 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12424 | 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] | 12425 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12427 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12428 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 12430 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12431 | OLD_CFLAGS=$CFLAGS | 
|  | 12432 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12434 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12435 |  | 
|  | 12436 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12437 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | int | 
|  | 12439 | main () | 
|  | 12440 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12441 |  | 
|  | 12442 | char *name; | 
|  | 12443 | struct hostent *he, *res; | 
|  | 12444 | char buffer[2048]; | 
|  | 12445 | int buflen = 2048; | 
|  | 12446 | int h_errnop; | 
|  | 12447 |  | 
|  | 12448 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 |  | 
|  | 12450 | ; | 
|  | 12451 | return 0; | 
|  | 12452 | } | 
|  | 12453 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12454 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12455 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12456 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12457 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12458 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12459 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12460 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12462 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12463 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12464 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12465 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12467 | $as_echo "no" >&6; } | 
|  | 12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 12469 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 12470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12471 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12472 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12473 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 | int | 
|  | 12476 | main () | 
|  | 12477 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12478 |  | 
|  | 12479 | char *name; | 
|  | 12480 | struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12481 | char buffer[2048]; | 
|  | 12482 | int buflen = 2048; | 
|  | 12483 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12484 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12485 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 |  | 
|  | 12487 | ; | 
|  | 12488 | return 0; | 
|  | 12489 | } | 
|  | 12490 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12491 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12493 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12494 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12496 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12497 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12499 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12501 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12502 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12504 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 12506 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 12507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12508 | /* end confdefs.h.  */ | 
|  | 12509 |  | 
|  | 12510 | #           include <netdb.h> | 
|  | 12511 |  | 
|  | 12512 | int | 
|  | 12513 | main () | 
|  | 12514 | { | 
|  | 12515 |  | 
|  | 12516 | char *name; | 
|  | 12517 | struct hostent *he; | 
|  | 12518 | struct hostent_data data; | 
|  | 12519 |  | 
|  | 12520 | (void) gethostbyname_r(name, he, &data); | 
|  | 12521 |  | 
|  | 12522 | ; | 
|  | 12523 | return 0; | 
|  | 12524 | } | 
|  | 12525 | _ACEOF | 
|  | 12526 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12527 |  | 
|  | 12528 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 12529 |  | 
|  | 12530 |  | 
|  | 12531 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 12532 |  | 
|  | 12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12534 | $as_echo "yes" >&6; } | 
|  | 12535 |  | 
|  | 12536 | else | 
|  | 12537 |  | 
|  | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12539 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12541 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12542 | 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] | 12543 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12544 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12545 | 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] | 12546 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12547 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12549 | CFLAGS=$OLD_CFLAGS | 
|  | 12550 |  | 
|  | 12551 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12552 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12553 | for ac_func in gethostbyname | 
|  | 12554 | do : | 
|  | 12555 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12556 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12557 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12558 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12559 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12560 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12561 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12562 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12563 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12564 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12565 | fi | 
|  | 12566 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12567 |  | 
|  | 12568 |  | 
|  | 12569 |  | 
|  | 12570 |  | 
|  | 12571 |  | 
|  | 12572 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12573 | # checks for system services | 
|  | 12574 | # (none yet) | 
|  | 12575 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12576 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12577 | 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] | 12578 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12579 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12580 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 12582 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12583 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12584 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12585 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12586 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12587 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12589 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12591 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12592 | Use char because int might match the return type of a GCC | 
|  | 12593 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 | #ifdef __cplusplus | 
|  | 12595 | extern "C" | 
|  | 12596 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12597 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12598 | int | 
|  | 12599 | main () | 
|  | 12600 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12601 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | ; | 
|  | 12603 | return 0; | 
|  | 12604 | } | 
|  | 12605 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12606 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12608 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12609 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12610 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12611 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12612 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12613 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12614 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 12616 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12617 | 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] | 12618 | cat >>confdefs.h <<_ACEOF | 
|  | 12619 | #define HAVE_LIBIEEE 1 | 
|  | 12620 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12621 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12622 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12623 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12624 | fi | 
|  | 12625 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12626 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12627 | fi | 
|  | 12628 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12629 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12630 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 12632 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12634 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12635 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12636 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12637 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12638 | then | 
|  | 12639 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12640 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12641 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12643 | $as_echo "yes" >&6; } | 
|  | 12644 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12645 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12646 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12647 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12649 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12650 | fi | 
|  | 12651 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12652 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12653 | # check for --with-libm=... | 
|  | 12654 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12655 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12656 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12657 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12658 | *) LIBM=-lm | 
|  | 12659 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 12661 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12663 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12664 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12665 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12666 | if test "$withval" = no | 
|  | 12667 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 12669 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12670 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12671 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 12673 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12674 | 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] | 12675 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12676 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 12678 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12679 | fi | 
|  | 12680 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12681 |  | 
|  | 12682 | # check for --with-libc=... | 
|  | 12683 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 12685 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12687 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12688 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12689 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12690 | if test "$withval" = no | 
|  | 12691 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 12693 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12694 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12695 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 12697 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12698 | 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] | 12699 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12700 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 12702 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12703 | fi | 
|  | 12704 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12705 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12706 | # ************************************************** | 
|  | 12707 | # * Check for various properties of floating point * | 
|  | 12708 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12709 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 12711 | $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] | 12712 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12713 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12714 | else | 
|  | 12715 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12716 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12717 | ac_cv_little_endian_double=no | 
|  | 12718 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12720 | /* end confdefs.h.  */ | 
|  | 12721 |  | 
|  | 12722 | #include <string.h> | 
|  | 12723 | int main() { | 
|  | 12724 | double x = 9006104071832581.0; | 
|  | 12725 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 12726 | return 0; | 
|  | 12727 | else | 
|  | 12728 | return 1; | 
|  | 12729 | } | 
|  | 12730 |  | 
|  | 12731 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12732 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12733 | ac_cv_little_endian_double=yes | 
|  | 12734 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12735 | ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12736 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12738 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12739 | fi | 
|  | 12740 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12741 | fi | 
|  | 12742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 12744 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12745 | if test "$ac_cv_little_endian_double" = yes | 
|  | 12746 | then | 
|  | 12747 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12748 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12749 |  | 
|  | 12750 | fi | 
|  | 12751 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 12753 | $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] | 12754 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12755 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12756 | else | 
|  | 12757 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12758 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12759 | ac_cv_big_endian_double=no | 
|  | 12760 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12762 | /* end confdefs.h.  */ | 
|  | 12763 |  | 
|  | 12764 | #include <string.h> | 
|  | 12765 | int main() { | 
|  | 12766 | double x = 9006104071832581.0; | 
|  | 12767 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 12768 | return 0; | 
|  | 12769 | else | 
|  | 12770 | return 1; | 
|  | 12771 | } | 
|  | 12772 |  | 
|  | 12773 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12774 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12775 | ac_cv_big_endian_double=yes | 
|  | 12776 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12777 | ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12778 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12779 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12780 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12781 | fi | 
|  | 12782 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12783 | fi | 
|  | 12784 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 12786 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12787 | if test "$ac_cv_big_endian_double" = yes | 
|  | 12788 | then | 
|  | 12789 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12790 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12791 |  | 
|  | 12792 | fi | 
|  | 12793 |  | 
|  | 12794 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 12795 | # While Python doesn't currently have full support for these platforms | 
|  | 12796 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 12797 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 12799 | $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] | 12800 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12801 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12802 | else | 
|  | 12803 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12804 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12805 | ac_cv_mixed_endian_double=no | 
|  | 12806 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12808 | /* end confdefs.h.  */ | 
|  | 12809 |  | 
|  | 12810 | #include <string.h> | 
|  | 12811 | int main() { | 
|  | 12812 | double x = 9006104071832581.0; | 
|  | 12813 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 12814 | return 0; | 
|  | 12815 | else | 
|  | 12816 | return 1; | 
|  | 12817 | } | 
|  | 12818 |  | 
|  | 12819 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12820 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12821 | ac_cv_mixed_endian_double=yes | 
|  | 12822 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12823 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12824 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12826 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12827 | fi | 
|  | 12828 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12829 | fi | 
|  | 12830 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 12832 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12833 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 12834 | then | 
|  | 12835 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12836 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12837 |  | 
|  | 12838 | fi | 
|  | 12839 |  | 
|  | 12840 | # The short float repr introduced in Python 3.1 requires the | 
|  | 12841 | # correctly-rounded string <-> double conversion functions from | 
|  | 12842 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
|  | 12843 | # 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] | 12844 | # 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] | 12845 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12846 |  | 
|  | 12847 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 12848 | # so we try it on all platforms. | 
|  | 12849 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 12851 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12853 | /* end confdefs.h.  */ | 
|  | 12854 |  | 
|  | 12855 | int | 
|  | 12856 | main () | 
|  | 12857 | { | 
|  | 12858 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12859 | unsigned short cw; | 
|  | 12860 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 12861 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12862 |  | 
|  | 12863 | ; | 
|  | 12864 | return 0; | 
|  | 12865 | } | 
|  | 12866 | _ACEOF | 
| Stefan Krah | 99e36b9 | 2015-07-03 15:30:54 +0200 | [diff] [blame] | 12867 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12868 | have_gcc_asm_for_x87=yes | 
|  | 12869 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12870 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12871 | fi | 
| Stefan Krah | 99e36b9 | 2015-07-03 15:30:54 +0200 | [diff] [blame] | 12872 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12873 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 12875 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12876 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 12877 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12878 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12879 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12880 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12881 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12882 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12883 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 12884 | # rounding issues.  The result of this test has little meaning on non | 
|  | 12885 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 12886 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 12887 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 12889 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12890 | # $BASECFLAGS may affect the result | 
|  | 12891 | ac_save_cc="$CC" | 
|  | 12892 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12893 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12894 | ac_cv_x87_double_rounding=no | 
|  | 12895 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12897 | /* end confdefs.h.  */ | 
|  | 12898 |  | 
|  | 12899 | #include <stdlib.h> | 
|  | 12900 | #include <math.h> | 
|  | 12901 | int main() { | 
|  | 12902 | volatile double x, y, z; | 
|  | 12903 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 12904 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 12905 | y = 1./x; | 
|  | 12906 | if (y != 1.) | 
|  | 12907 | exit(0); | 
|  | 12908 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 12909 | x = 1e16; | 
|  | 12910 | y = 2.99999; | 
|  | 12911 | z = x + y; | 
|  | 12912 | if (z != 1e16+4.) | 
|  | 12913 | exit(0); | 
|  | 12914 | /* both tests show evidence of double rounding */ | 
|  | 12915 | exit(1); | 
|  | 12916 | } | 
|  | 12917 |  | 
|  | 12918 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12919 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12920 | ac_cv_x87_double_rounding=no | 
|  | 12921 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12922 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12923 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12925 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12926 | fi | 
|  | 12927 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12928 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 12930 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12931 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 12932 | then | 
|  | 12933 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12934 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12935 |  | 
|  | 12936 | fi | 
|  | 12937 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12938 | # ************************************ | 
|  | 12939 | # * Check for mathematical functions * | 
|  | 12940 | # ************************************ | 
|  | 12941 |  | 
|  | 12942 | LIBS_SAVE=$LIBS | 
|  | 12943 | LIBS="$LIBS $LIBM" | 
|  | 12944 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12945 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 12946 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 12948 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12949 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12950 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12951 | else | 
|  | 12952 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12953 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12954 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 12955 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12957 | /* end confdefs.h.  */ | 
|  | 12958 |  | 
|  | 12959 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12960 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12961 | int main() { | 
|  | 12962 | /* return 0 if either negative zeros don't exist | 
|  | 12963 | on this platform or if negative zeros exist | 
|  | 12964 | and tanh(-0.) == -0. */ | 
|  | 12965 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 12966 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 12967 | else exit(1); | 
|  | 12968 | } | 
|  | 12969 |  | 
|  | 12970 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12971 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12972 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 12973 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12974 | ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12975 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12977 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12978 | fi | 
|  | 12979 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12980 | fi | 
|  | 12981 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 12983 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12984 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 12985 | then | 
|  | 12986 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12987 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12988 |  | 
|  | 12989 | fi | 
|  | 12990 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12991 | 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] | 12992 | do : | 
|  | 12993 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12994 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12995 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12996 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12997 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12998 | _ACEOF | 
|  | 12999 |  | 
|  | 13000 | fi | 
|  | 13001 | done | 
|  | 13002 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 13003 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13004 | do : | 
|  | 13005 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 13006 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13007 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 13008 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13009 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 13010 | _ACEOF | 
|  | 13011 |  | 
|  | 13012 | fi | 
|  | 13013 | done | 
|  | 13014 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13015 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 13016 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13017 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13018 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13019 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13020 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13021 | fi | 
|  | 13022 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13023 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13024 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13025 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13026 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 13027 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13028 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13029 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13030 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13031 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13032 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13033 |  | 
|  | 13034 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13035 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13036 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13037 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 13038 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13039 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13040 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13041 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13042 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13043 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13044 |  | 
|  | 13045 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13046 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13047 | _ACEOF | 
|  | 13048 |  | 
|  | 13049 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 13050 | LIBS=$LIBS_SAVE | 
|  | 13051 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13052 | # For multiprocessing module, check that sem_open | 
|  | 13053 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 13054 | # the kernel module that provides POSIX semaphores | 
|  | 13055 | # isn't loaded by default, so an attempt to call | 
|  | 13056 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 13058 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13059 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13060 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13061 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13062 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13063 | ac_cv_posix_semaphores_enabled=yes | 
|  | 13064 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13066 | /* end confdefs.h.  */ | 
|  | 13067 |  | 
|  | 13068 | #include <unistd.h> | 
|  | 13069 | #include <fcntl.h> | 
|  | 13070 | #include <stdio.h> | 
|  | 13071 | #include <semaphore.h> | 
|  | 13072 | #include <sys/stat.h> | 
|  | 13073 |  | 
|  | 13074 | int main(void) { | 
|  | 13075 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 13076 | if (a == SEM_FAILED) { | 
|  | 13077 | perror("sem_open"); | 
|  | 13078 | return 1; | 
|  | 13079 | } | 
|  | 13080 | sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13081 | sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13082 | return 0; | 
|  | 13083 | } | 
|  | 13084 |  | 
|  | 13085 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13086 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13087 | ac_cv_posix_semaphores_enabled=yes | 
|  | 13088 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13089 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13090 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13092 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13093 | fi | 
|  | 13094 |  | 
|  | 13095 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13096 | fi | 
|  | 13097 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 13099 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13100 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 13101 | then | 
|  | 13102 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13103 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13104 |  | 
|  | 13105 | fi | 
|  | 13106 |  | 
|  | 13107 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 13109 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13110 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13111 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13112 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13113 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13114 | ac_cv_broken_sem_getvalue=yes | 
|  | 13115 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13117 | /* end confdefs.h.  */ | 
|  | 13118 |  | 
|  | 13119 | #include <unistd.h> | 
|  | 13120 | #include <fcntl.h> | 
|  | 13121 | #include <stdio.h> | 
|  | 13122 | #include <semaphore.h> | 
|  | 13123 | #include <sys/stat.h> | 
|  | 13124 |  | 
|  | 13125 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13126 | 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] | 13127 | int count; | 
|  | 13128 | int res; | 
|  | 13129 | if(a==SEM_FAILED){ | 
|  | 13130 | perror("sem_open"); | 
|  | 13131 | return 1; | 
|  | 13132 |  | 
|  | 13133 | } | 
|  | 13134 | res = sem_getvalue(a, &count); | 
|  | 13135 | sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13136 | sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13137 | return res==-1 ? 1 : 0; | 
|  | 13138 | } | 
|  | 13139 |  | 
|  | 13140 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13141 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13142 | ac_cv_broken_sem_getvalue=no | 
|  | 13143 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13144 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13145 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13147 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13148 | fi | 
|  | 13149 |  | 
|  | 13150 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13151 | fi | 
|  | 13152 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 13154 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13155 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 13156 | then | 
|  | 13157 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13158 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13159 |  | 
|  | 13160 | fi | 
|  | 13161 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13162 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 13164 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13165 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13166 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13167 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 13168 | yes) | 
|  | 13169 | enable_big_digits=30 ;; | 
|  | 13170 | no) | 
|  | 13171 | enable_big_digits=15 ;; | 
|  | 13172 | 15|30) | 
|  | 13173 | ;; | 
|  | 13174 | *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13175 | 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] | 13176 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 13178 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13179 |  | 
|  | 13180 | cat >>confdefs.h <<_ACEOF | 
|  | 13181 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 13182 | _ACEOF | 
|  | 13183 |  | 
|  | 13184 |  | 
|  | 13185 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 13187 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13188 | fi | 
|  | 13189 |  | 
|  | 13190 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13191 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13192 | 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] | 13193 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 |  | 
|  | 13195 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13196 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13198 | wchar_h="yes" | 
|  | 13199 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13200 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13202 |  | 
|  | 13203 | fi | 
|  | 13204 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13205 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13207 | # determine wchar_t size | 
|  | 13208 | if test "$wchar_h" = yes | 
|  | 13209 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13210 | # 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] | 13211 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 13212 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 13213 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 13215 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13216 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13217 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13219 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 13220 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13221 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13222 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13223 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 13224 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 13225 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13226 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13227 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13228 | else | 
|  | 13229 | ac_cv_sizeof_wchar_t=0 | 
|  | 13230 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13232 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 13235 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13236 |  | 
|  | 13237 |  | 
|  | 13238 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13240 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13242 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13243 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13244 | fi | 
|  | 13245 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 13247 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13248 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13250 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13251 |  | 
|  | 13252 | #include <tcl.h> | 
|  | 13253 | #if TCL_UTF_MAX != 6 | 
|  | 13254 | # error "NOT UCS4_TCL" | 
|  | 13255 | #endif | 
|  | 13256 | int | 
|  | 13257 | main () | 
|  | 13258 | { | 
|  | 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 : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13265 |  | 
|  | 13266 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13267 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13268 |  | 
|  | 13269 | have_ucs4_tcl=yes | 
|  | 13270 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13271 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 13274 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13275 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13277 | if test "$wchar_h" = yes | 
|  | 13278 | then | 
|  | 13279 | # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 13281 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13282 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13283 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13284 | else | 
|  | 13285 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13286 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13287 | ac_cv_wchar_t_signed=yes | 
|  | 13288 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13290 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13291 |  | 
|  | 13292 | #include <wchar.h> | 
|  | 13293 | int main() | 
|  | 13294 | { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 13295 | /* Success: exit code 0 */ | 
|  | 13296 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13297 | } | 
|  | 13298 |  | 
|  | 13299 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13300 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13301 | ac_cv_wchar_t_signed=yes | 
|  | 13302 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13303 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13304 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13305 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13306 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13307 | fi | 
|  | 13308 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13309 | fi | 
|  | 13310 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 13312 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13313 | fi | 
|  | 13314 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
|  | 13316 | $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] | 13317 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13318 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13319 | enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13320 | else | 
|  | 13321 | enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13322 | fi | 
|  | 13323 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13324 |  | 
|  | 13325 | if test $enable_unicode = yes | 
|  | 13326 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 13327 | # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13328 | case "$have_ucs4_tcl" in | 
|  | 13329 | yes) enable_unicode="ucs4" | 
|  | 13330 | ;; | 
|  | 13331 | *)   enable_unicode="ucs2" | 
|  | 13332 | ;; | 
|  | 13333 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13334 | fi | 
|  | 13335 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 13336 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13337 | case "$enable_unicode" in | 
|  | 13338 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13339 | $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13340 |  | 
|  | 13341 | ;; | 
|  | 13342 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13343 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13344 |  | 
|  | 13345 | ;; | 
| Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 13346 | no)   ;;      # To allow --disable-unicode | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13347 | *) 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] | 13348 | esac | 
|  | 13349 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13350 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 |  | 
|  | 13352 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13353 | if test "$enable_unicode" = "no" | 
|  | 13354 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13355 | UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
|  | 13357 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13358 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13359 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13361 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13362 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13363 |  | 
|  | 13364 | # wchar_t is only usable if it maps to an unsigned type | 
|  | 13365 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13366 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13367 | then | 
|  | 13368 | PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13369 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13370 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13372 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13373 |  | 
|  | 13374 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
|  | 13375 | then | 
|  | 13376 | PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13377 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13378 |  | 
|  | 13379 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
|  | 13380 | then | 
|  | 13381 | PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13382 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13383 |  | 
|  | 13384 | else | 
|  | 13385 | PY_UNICODE_TYPE="no type found" | 
|  | 13386 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
|  | 13388 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13389 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13390 |  | 
|  | 13391 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 13393 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13394 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13395 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13396 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13397 | ac_cv_c_bigendian=unknown | 
|  | 13398 | # See if we're dealing with a universal compiler. | 
|  | 13399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13400 | /* end confdefs.h.  */ | 
|  | 13401 | #ifndef __APPLE_CC__ | 
|  | 13402 | not a universal capable compiler | 
|  | 13403 | #endif | 
|  | 13404 | typedef int dummy; | 
|  | 13405 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13407 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13408 |  | 
|  | 13409 | # Check for potential -arch flags.  It is not universal unless | 
|  | 13410 | # there are at least two -arch flags with different values. | 
|  | 13411 | ac_arch= | 
|  | 13412 | ac_prev= | 
|  | 13413 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 13414 | if test -n "$ac_prev"; then | 
|  | 13415 | case $ac_word in | 
|  | 13416 | i?86 | x86_64 | ppc | ppc64) | 
|  | 13417 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 13418 | ac_arch=$ac_word | 
|  | 13419 | else | 
|  | 13420 | ac_cv_c_bigendian=universal | 
|  | 13421 | break | 
|  | 13422 | fi | 
|  | 13423 | ;; | 
|  | 13424 | esac | 
|  | 13425 | ac_prev= | 
|  | 13426 | elif test "x$ac_word" = "x-arch"; then | 
|  | 13427 | ac_prev=arch | 
|  | 13428 | fi | 
|  | 13429 | done | 
|  | 13430 | fi | 
|  | 13431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13432 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 13433 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 13434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13435 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13436 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13437 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13438 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | int | 
|  | 13440 | main () | 
|  | 13441 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13442 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 13443 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 13444 | && LITTLE_ENDIAN) | 
|  | 13445 | bogus endian macros | 
|  | 13446 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 |  | 
|  | 13448 | ; | 
|  | 13449 | return 0; | 
|  | 13450 | } | 
|  | 13451 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13452 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13453 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13455 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13456 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13457 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13458 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | int | 
|  | 13460 | main () | 
|  | 13461 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13462 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13463 | not big endian | 
|  | 13464 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 |  | 
|  | 13466 | ; | 
|  | 13467 | return 0; | 
|  | 13468 | } | 
|  | 13469 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13470 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13471 | ac_cv_c_bigendian=yes | 
|  | 13472 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13473 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13474 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13476 | fi | 
|  | 13477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13478 | fi | 
|  | 13479 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 13480 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 13481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13482 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13483 | #include <limits.h> | 
|  | 13484 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | int | 
|  | 13486 | main () | 
|  | 13487 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13488 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 13489 | bogus endian macros | 
|  | 13490 | #endif | 
|  | 13491 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | ; | 
|  | 13493 | return 0; | 
|  | 13494 | } | 
|  | 13495 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13496 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13497 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 13498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13499 | /* end confdefs.h.  */ | 
|  | 13500 | #include <limits.h> | 
|  | 13501 |  | 
|  | 13502 | int | 
|  | 13503 | main () | 
|  | 13504 | { | 
|  | 13505 | #ifndef _BIG_ENDIAN | 
|  | 13506 | not big endian | 
|  | 13507 | #endif | 
|  | 13508 |  | 
|  | 13509 | ; | 
|  | 13510 | return 0; | 
|  | 13511 | } | 
|  | 13512 | _ACEOF | 
|  | 13513 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13514 | ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13515 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13516 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13517 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13519 | fi | 
|  | 13520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13521 | fi | 
|  | 13522 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 13523 | # Compile a test program. | 
|  | 13524 | if test "$cross_compiling" = yes; then : | 
|  | 13525 | # Try to guess by grepping values from an object file. | 
|  | 13526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13527 | /* end confdefs.h.  */ | 
|  | 13528 | short int ascii_mm[] = | 
|  | 13529 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 13530 | short int ascii_ii[] = | 
|  | 13531 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 13532 | int use_ascii (int i) { | 
|  | 13533 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 13534 | } | 
|  | 13535 | short int ebcdic_ii[] = | 
|  | 13536 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 13537 | short int ebcdic_mm[] = | 
|  | 13538 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 13539 | int use_ebcdic (int i) { | 
|  | 13540 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 13541 | } | 
|  | 13542 | extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13543 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13544 | int | 
|  | 13545 | main () | 
|  | 13546 | { | 
|  | 13547 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 13548 | ; | 
|  | 13549 | return 0; | 
|  | 13550 | } | 
|  | 13551 | _ACEOF | 
|  | 13552 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13553 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 13554 | ac_cv_c_bigendian=yes | 
|  | 13555 | fi | 
|  | 13556 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 13557 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 13558 | ac_cv_c_bigendian=no | 
|  | 13559 | else | 
|  | 13560 | # finding both strings is unlikely to happen, but who knows? | 
|  | 13561 | ac_cv_c_bigendian=unknown | 
|  | 13562 | fi | 
|  | 13563 | fi | 
|  | 13564 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13565 | 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] | 13566 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13568 | /* end confdefs.h.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13569 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | int | 
|  | 13571 | main () | 
|  | 13572 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13573 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13574 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 13575 | union | 
|  | 13576 | { | 
|  | 13577 | long int l; | 
|  | 13578 | char c[sizeof (long int)]; | 
|  | 13579 | } u; | 
|  | 13580 | u.l = 1; | 
|  | 13581 | return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13582 |  | 
|  | 13583 | ; | 
|  | 13584 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13585 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13587 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13588 | ac_cv_c_bigendian=no | 
|  | 13589 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13590 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13591 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13592 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13593 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13594 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13595 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13596 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 13599 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 13600 | case $ac_cv_c_bigendian in #( | 
|  | 13601 | yes) | 
|  | 13602 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 13603 | ;; #( | 
|  | 13604 | no) | 
|  | 13605 | ;; #( | 
|  | 13606 | universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13607 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13608 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13609 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13610 | ;; #( | 
|  | 13611 | *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13612 | as_fn_error $? "unknown endianness | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13613 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13614 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13615 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13616 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13617 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 13618 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 13620 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13621 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13622 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13623 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13625 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13626 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13627 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13629 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13630 |  | 
|  | 13631 | int main() | 
|  | 13632 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13633 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13634 | } | 
|  | 13635 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13637 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13638 | ac_cv_rshift_extends_sign=yes | 
|  | 13639 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13640 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13641 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13643 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13644 | fi | 
|  | 13645 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13646 | fi | 
|  | 13647 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 13649 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13650 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13651 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13653 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13654 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13655 | fi | 
|  | 13656 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13657 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 13659 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13660 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13661 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13662 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13665 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13666 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13667 | int | 
|  | 13668 | main () | 
|  | 13669 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13670 |  | 
|  | 13671 | FILE *f = fopen("/dev/null", "r"); | 
|  | 13672 | flockfile(f); | 
|  | 13673 | getc_unlocked(f); | 
|  | 13674 | funlockfile(f); | 
|  | 13675 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | ; | 
|  | 13677 | return 0; | 
|  | 13678 | } | 
|  | 13679 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13680 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13681 | ac_cv_have_getc_unlocked=yes | 
|  | 13682 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13683 | ac_cv_have_getc_unlocked=no | 
|  | 13684 | fi | 
|  | 13685 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13686 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13687 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13688 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 13690 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13691 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 13692 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13693 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13694 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13695 |  | 
|  | 13696 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13697 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13698 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13699 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 13700 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13701 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13702 | # On some systems we need to link readline to a termcap compatible | 
|  | 13703 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 13704 | # with setup.py. | 
|  | 13705 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 13707 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13708 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
|  | 13709 | if test -z "$py_libtermcap"; then | 
|  | 13710 | READLINE_LIBS="-lreadline" | 
|  | 13711 | else | 
|  | 13712 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 13713 | fi | 
|  | 13714 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13716 | /* end confdefs.h.  */ | 
|  | 13717 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13718 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13719 | Use char because int might match the return type of a GCC | 
|  | 13720 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13721 | #ifdef __cplusplus | 
|  | 13722 | extern "C" | 
|  | 13723 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13724 | char readline (); | 
|  | 13725 | int | 
|  | 13726 | main () | 
|  | 13727 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13728 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13729 | ; | 
|  | 13730 | return 0; | 
|  | 13731 | } | 
|  | 13732 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13733 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13734 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13735 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13736 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13737 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13738 | if test $py_cv_lib_readline = yes; then | 
|  | 13739 | break | 
|  | 13740 | fi | 
|  | 13741 | done | 
|  | 13742 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 13743 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13744 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 13746 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13747 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 13749 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13750 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13751 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13752 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13753 | fi | 
|  | 13754 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13755 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 13757 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13758 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13759 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13760 | else | 
|  | 13761 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13762 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13764 | /* end confdefs.h.  */ | 
|  | 13765 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13766 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13767 | Use char because int might match the return type of a GCC | 
|  | 13768 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13769 | #ifdef __cplusplus | 
|  | 13770 | extern "C" | 
|  | 13771 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13772 | char rl_callback_handler_install (); | 
|  | 13773 | int | 
|  | 13774 | main () | 
|  | 13775 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13776 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13777 | ; | 
|  | 13778 | return 0; | 
|  | 13779 | } | 
|  | 13780 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13781 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13782 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 13783 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13784 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13785 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13786 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13787 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13788 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13789 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 13791 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13792 | 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] | 13793 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13794 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13795 |  | 
|  | 13796 | fi | 
|  | 13797 |  | 
|  | 13798 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13799 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13801 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13802 | #include <readline/readline.h> | 
|  | 13803 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13804 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13805 | have_readline=yes | 
|  | 13806 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13807 | have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13808 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13809 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13810 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13811 | if test $have_readline = yes | 
|  | 13812 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13814 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13815 | #include <readline/readline.h> | 
|  | 13816 |  | 
|  | 13817 | _ACEOF | 
|  | 13818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13819 | $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] | 13820 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13821 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13822 |  | 
|  | 13823 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13824 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13825 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13827 | /* end confdefs.h.  */ | 
|  | 13828 | #include <readline/readline.h> | 
|  | 13829 |  | 
|  | 13830 | _ACEOF | 
|  | 13831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13832 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13833 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13834 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13835 |  | 
|  | 13836 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13837 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13838 |  | 
|  | 13839 | fi | 
|  | 13840 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13841 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 13843 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13844 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13845 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13846 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13848 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13850 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13852 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13853 | Use char because int might match the return type of a GCC | 
|  | 13854 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13855 | #ifdef __cplusplus | 
|  | 13856 | extern "C" | 
|  | 13857 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13858 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13859 | int | 
|  | 13860 | main () | 
|  | 13861 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13862 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13863 | ; | 
|  | 13864 | return 0; | 
|  | 13865 | } | 
|  | 13866 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13867 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13869 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13870 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13871 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13872 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13873 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13875 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 13877 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13878 | 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] | 13879 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13880 | $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] | 13881 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13882 | fi | 
|  | 13883 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13884 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13885 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 13887 | $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] | 13888 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13889 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13890 | else | 
|  | 13891 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13892 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13894 | /* end confdefs.h.  */ | 
|  | 13895 |  | 
|  | 13896 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13897 | Use char because int might match the return type of a GCC | 
|  | 13898 | builtin and then its argument prototype would still apply.  */ | 
|  | 13899 | #ifdef __cplusplus | 
|  | 13900 | extern "C" | 
|  | 13901 | #endif | 
|  | 13902 | char rl_completion_display_matches_hook (); | 
|  | 13903 | int | 
|  | 13904 | main () | 
|  | 13905 | { | 
|  | 13906 | return rl_completion_display_matches_hook (); | 
|  | 13907 | ; | 
|  | 13908 | return 0; | 
|  | 13909 | } | 
|  | 13910 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13911 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13912 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 13913 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13914 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13915 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13916 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13917 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13918 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13919 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 13921 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13922 | 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] | 13923 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13924 | $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] | 13925 |  | 
|  | 13926 | fi | 
|  | 13927 |  | 
|  | 13928 |  | 
| Martin Panter | a70c323 | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 13929 | # also in 4.0, but not in editline | 
|  | 13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 13931 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 13932 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 13933 | $as_echo_n "(cached) " >&6 | 
|  | 13934 | else | 
|  | 13935 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13936 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 13937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13938 | /* end confdefs.h.  */ | 
|  | 13939 |  | 
|  | 13940 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13941 | Use char because int might match the return type of a GCC | 
|  | 13942 | builtin and then its argument prototype would still apply.  */ | 
|  | 13943 | #ifdef __cplusplus | 
|  | 13944 | extern "C" | 
|  | 13945 | #endif | 
|  | 13946 | char rl_resize_terminal (); | 
|  | 13947 | int | 
|  | 13948 | main () | 
|  | 13949 | { | 
|  | 13950 | return rl_resize_terminal (); | 
|  | 13951 | ; | 
|  | 13952 | return 0; | 
|  | 13953 | } | 
|  | 13954 | _ACEOF | 
|  | 13955 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 13956 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 13957 | else | 
|  | 13958 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 13959 | fi | 
|  | 13960 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13961 | conftest$ac_exeext conftest.$ac_ext | 
|  | 13962 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13963 | fi | 
|  | 13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 13965 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 13966 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 13967 |  | 
|  | 13968 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 13969 |  | 
|  | 13970 | fi | 
|  | 13971 |  | 
|  | 13972 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13973 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 13975 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13976 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13977 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13978 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13980 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13982 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13984 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13985 | Use char because int might match the return type of a GCC | 
|  | 13986 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | #ifdef __cplusplus | 
|  | 13988 | extern "C" | 
|  | 13989 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | int | 
|  | 13992 | main () | 
|  | 13993 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13994 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13995 | ; | 
|  | 13996 | return 0; | 
|  | 13997 | } | 
|  | 13998 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13999 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14001 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14002 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14003 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14004 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14005 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14007 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 14009 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14010 | 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] | 14011 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14012 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14013 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14014 | fi | 
|  | 14015 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14016 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14017 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14019 | /* end confdefs.h.  */ | 
|  | 14020 | #include <readline/readline.h> | 
|  | 14021 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14022 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14023 | have_readline=yes | 
|  | 14024 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14025 | have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14026 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14027 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14028 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14029 | if test $have_readline = yes | 
|  | 14030 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14032 | /* end confdefs.h.  */ | 
|  | 14033 | #include <readline/readline.h> | 
|  | 14034 |  | 
|  | 14035 | _ACEOF | 
|  | 14036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14037 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14038 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14039 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14040 |  | 
|  | 14041 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 14042 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14043 |  | 
|  | 14044 | fi | 
|  | 14045 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14046 | # End of readline checks: restore LIBS | 
|  | 14047 | LIBS=$LIBS_no_readline | 
|  | 14048 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 14050 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14051 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14052 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14053 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14054 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14055 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14056 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14057 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14059 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14060 |  | 
|  | 14061 | int main() | 
|  | 14062 | { | 
|  | 14063 | int val1 = nice(1); | 
|  | 14064 | if (val1 != -1 && val1 == nice(2)) | 
|  | 14065 | exit(0); | 
|  | 14066 | exit(1); | 
|  | 14067 | } | 
|  | 14068 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14069 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14070 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14071 | ac_cv_broken_nice=yes | 
|  | 14072 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14073 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14074 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14076 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14077 | fi | 
|  | 14078 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14079 | fi | 
|  | 14080 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 14082 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14083 | if test "$ac_cv_broken_nice" = yes | 
|  | 14084 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14086 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14087 |  | 
|  | 14088 | fi | 
|  | 14089 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 14091 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14092 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14093 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14094 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14095 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14096 | ac_cv_broken_poll=no | 
|  | 14097 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14099 | /* end confdefs.h.  */ | 
|  | 14100 |  | 
|  | 14101 | #include <poll.h> | 
|  | 14102 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14103 | int main() | 
|  | 14104 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14105 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14106 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14107 |  | 
|  | 14108 | close (42); | 
|  | 14109 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14110 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14111 | if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14112 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14113 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14114 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14115 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14116 | return 1; | 
|  | 14117 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14118 |  | 
|  | 14119 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14120 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14121 | ac_cv_broken_poll=yes | 
|  | 14122 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14123 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14124 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14126 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14127 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14128 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14129 | fi | 
|  | 14130 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 14132 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14133 | if test "$ac_cv_broken_poll" = yes | 
|  | 14134 | then | 
|  | 14135 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14136 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14137 |  | 
|  | 14138 | fi | 
|  | 14139 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14140 | # 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] | 14141 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 14142 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14143 | 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] | 14144 | #include <$ac_cv_struct_tm> | 
|  | 14145 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14146 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14147 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14148 |  | 
|  | 14149 | cat >>confdefs.h <<_ACEOF | 
|  | 14150 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 14151 | _ACEOF | 
|  | 14152 |  | 
|  | 14153 |  | 
|  | 14154 | fi | 
|  | 14155 |  | 
|  | 14156 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 14157 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14158 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14159 |  | 
|  | 14160 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14161 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 14162 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14163 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14164 | ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14165 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14166 | ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14167 | fi | 
|  | 14168 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14169 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14170 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14171 | _ACEOF | 
|  | 14172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 14174 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14175 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14176 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14177 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14179 | /* end confdefs.h.  */ | 
|  | 14180 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14181 | #if !HAVE_DECL_TZNAME | 
|  | 14182 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14183 | #endif | 
|  | 14184 |  | 
|  | 14185 | int | 
|  | 14186 | main () | 
|  | 14187 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14188 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14189 | ; | 
|  | 14190 | return 0; | 
|  | 14191 | } | 
|  | 14192 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14193 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14194 | ac_cv_var_tzname=yes | 
|  | 14195 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14196 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14197 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14198 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14199 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14200 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 14202 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14203 | if test $ac_cv_var_tzname = yes; then | 
|  | 14204 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14205 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14206 |  | 
|  | 14207 | fi | 
|  | 14208 | fi | 
|  | 14209 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14210 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14211 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 14213 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14214 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14215 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14216 | else | 
|  | 14217 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14218 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14219 | ac_cv_working_tzset=no | 
|  | 14220 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14222 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14223 |  | 
|  | 14224 | #include <stdlib.h> | 
|  | 14225 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14226 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14227 |  | 
|  | 14228 | #if HAVE_TZNAME | 
|  | 14229 | extern char *tzname[]; | 
|  | 14230 | #endif | 
|  | 14231 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14232 | int main() | 
|  | 14233 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14234 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 14235 | do 'something' with localtime, but it works as documented | 
|  | 14236 | 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] | 14237 | This includes making sure that tzname is set properly if | 
|  | 14238 | tm->tm_zone does not exist since it is the alternative way | 
|  | 14239 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14240 |  | 
|  | 14241 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14242 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14243 | */ | 
|  | 14244 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14245 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14246 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 14247 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14248 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14249 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14250 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 14251 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14252 | #if HAVE_TZNAME | 
|  | 14253 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 14254 | if (strcmp(tzname[0], "UTC") || | 
|  | 14255 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 14256 | exit(1); | 
|  | 14257 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14258 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14259 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14260 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14261 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14262 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14263 | #if HAVE_TZNAME | 
|  | 14264 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 14265 | exit(1); | 
|  | 14266 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14267 |  | 
|  | 14268 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 14269 | tzset(); | 
|  | 14270 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 14271 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14272 | #if HAVE_TZNAME | 
|  | 14273 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 14274 | exit(1); | 
|  | 14275 | #endif | 
|  | 14276 |  | 
|  | 14277 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14278 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 14279 | exit(1); | 
|  | 14280 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 14281 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14282 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14283 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14284 | exit(0); | 
|  | 14285 | } | 
|  | 14286 |  | 
|  | 14287 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14288 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14289 | ac_cv_working_tzset=yes | 
|  | 14290 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14291 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14292 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14294 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14295 | fi | 
|  | 14296 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14297 | fi | 
|  | 14298 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 14300 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14301 | if test "$ac_cv_working_tzset" = yes | 
|  | 14302 | then | 
|  | 14303 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14304 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14305 |  | 
|  | 14306 | fi | 
|  | 14307 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14308 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 14310 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14311 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14312 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14313 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14315 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14316 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14317 | int | 
|  | 14318 | main () | 
|  | 14319 | { | 
|  | 14320 |  | 
|  | 14321 | struct stat st; | 
|  | 14322 | st.st_mtim.tv_nsec = 1; | 
|  | 14323 |  | 
|  | 14324 | ; | 
|  | 14325 | return 0; | 
|  | 14326 | } | 
|  | 14327 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14328 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14329 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14330 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14331 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14332 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14334 | fi | 
|  | 14335 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 14337 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14338 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 14339 | then | 
|  | 14340 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14341 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14342 |  | 
|  | 14343 | fi | 
|  | 14344 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14345 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 14347 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14348 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14349 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14350 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14352 | /* end confdefs.h.  */ | 
|  | 14353 | #include <sys/stat.h> | 
|  | 14354 | int | 
|  | 14355 | main () | 
|  | 14356 | { | 
|  | 14357 |  | 
|  | 14358 | struct stat st; | 
|  | 14359 | st.st_mtimespec.tv_nsec = 1; | 
|  | 14360 |  | 
|  | 14361 | ; | 
|  | 14362 | return 0; | 
|  | 14363 | } | 
|  | 14364 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14365 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14366 | ac_cv_stat_tv_nsec2=yes | 
|  | 14367 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14368 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14369 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14371 | fi | 
|  | 14372 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 14374 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14375 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 14376 | then | 
|  | 14377 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14378 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14379 |  | 
|  | 14380 | fi | 
|  | 14381 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14382 | # first curses configure check | 
|  | 14383 | ac_save_cppflags="$CPPFLAGS" | 
|  | 14384 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
|  | 14385 |  | 
|  | 14386 | for ac_header in curses.h ncurses.h | 
|  | 14387 | do : | 
|  | 14388 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14389 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 14390 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 14391 | cat >>confdefs.h <<_ACEOF | 
|  | 14392 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 14393 | _ACEOF | 
|  | 14394 |  | 
|  | 14395 | fi | 
|  | 14396 |  | 
|  | 14397 | done | 
|  | 14398 |  | 
|  | 14399 |  | 
|  | 14400 | # On Solaris, term.h requires curses.h | 
|  | 14401 | for ac_header in term.h | 
|  | 14402 | do : | 
|  | 14403 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 14404 | #ifdef HAVE_CURSES_H | 
|  | 14405 | #include <curses.h> | 
|  | 14406 | #endif | 
|  | 14407 |  | 
|  | 14408 | " | 
|  | 14409 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 14410 | cat >>confdefs.h <<_ACEOF | 
|  | 14411 | #define HAVE_TERM_H 1 | 
|  | 14412 | _ACEOF | 
|  | 14413 |  | 
|  | 14414 | fi | 
|  | 14415 |  | 
|  | 14416 | done | 
|  | 14417 |  | 
|  | 14418 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14419 | # 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] | 14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 14421 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14422 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14423 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14424 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14426 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14427 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | int | 
|  | 14429 | main () | 
|  | 14430 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14431 |  | 
|  | 14432 | int rtn; | 
|  | 14433 | rtn = mvwdelch(0,0,0); | 
|  | 14434 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | ; | 
|  | 14436 | return 0; | 
|  | 14437 | } | 
|  | 14438 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14439 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14440 | ac_cv_mvwdelch_is_expression=yes | 
|  | 14441 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14442 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14443 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14445 | fi | 
|  | 14446 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 14448 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14449 |  | 
|  | 14450 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 14451 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14453 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14454 |  | 
|  | 14455 | fi | 
|  | 14456 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 14458 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14459 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14460 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14461 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14463 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14464 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | int | 
|  | 14466 | main () | 
|  | 14467 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14468 |  | 
|  | 14469 | WINDOW *w; | 
|  | 14470 | w->_flags = 0; | 
|  | 14471 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | ; | 
|  | 14473 | return 0; | 
|  | 14474 | } | 
|  | 14475 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14476 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14477 | ac_cv_window_has_flags=yes | 
|  | 14478 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14479 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14480 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14482 | fi | 
|  | 14483 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 14485 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14486 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14487 |  | 
|  | 14488 | if test "$ac_cv_window_has_flags" = yes | 
|  | 14489 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14491 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14492 |  | 
|  | 14493 | fi | 
|  | 14494 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 14496 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 14497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14498 | /* end confdefs.h.  */ | 
|  | 14499 | #include <curses.h> | 
|  | 14500 | int | 
|  | 14501 | main () | 
|  | 14502 | { | 
|  | 14503 | void *x=is_term_resized | 
|  | 14504 | ; | 
|  | 14505 | return 0; | 
|  | 14506 | } | 
|  | 14507 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14508 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14509 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14510 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14511 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14513 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14514 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 14516 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14517 |  | 
|  | 14518 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14520 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 14522 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 14523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14524 | /* end confdefs.h.  */ | 
|  | 14525 | #include <curses.h> | 
|  | 14526 | int | 
|  | 14527 | main () | 
|  | 14528 | { | 
|  | 14529 | void *x=resize_term | 
|  | 14530 | ; | 
|  | 14531 | return 0; | 
|  | 14532 | } | 
|  | 14533 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14534 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14535 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14536 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14537 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14539 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14540 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 14542 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14543 |  | 
|  | 14544 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14546 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 14548 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 14549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14550 | /* end confdefs.h.  */ | 
|  | 14551 | #include <curses.h> | 
|  | 14552 | int | 
|  | 14553 | main () | 
|  | 14554 | { | 
|  | 14555 | void *x=resizeterm | 
|  | 14556 | ; | 
|  | 14557 | return 0; | 
|  | 14558 | } | 
|  | 14559 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14560 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14561 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14562 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14563 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14565 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14566 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 14568 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14569 |  | 
|  | 14570 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14572 | # last curses configure check | 
|  | 14573 | CPPFLAGS=$ac_save_cppflags | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14574 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 14576 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 14577 |  | 
|  | 14578 | if test "x$cross_compiling" = xyes; then | 
|  | 14579 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 14581 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 14583 | $as_echo "not set" >&6; } | 
|  | 14584 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 14585 | fi | 
|  | 14586 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 14588 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 14590 | $as_echo "not set" >&6; } | 
|  | 14591 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 14592 | fi | 
|  | 14593 | fi | 
|  | 14594 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 14596 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14597 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 14598 | $as_echo_n "(cached) " >&6 | 
|  | 14599 | else | 
|  | 14600 | test "$cross_compiling" = yes && | 
|  | 14601 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 14602 | if test -r "/dev/ptmx"; then | 
|  | 14603 | ac_cv_file__dev_ptmx=yes | 
|  | 14604 | else | 
|  | 14605 | ac_cv_file__dev_ptmx=no | 
|  | 14606 | fi | 
|  | 14607 | fi | 
|  | 14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 14609 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 14610 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14611 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14612 | fi | 
|  | 14613 |  | 
|  | 14614 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14615 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14616 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14617 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14618 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 14620 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14621 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 14622 | $as_echo_n "(cached) " >&6 | 
|  | 14623 | else | 
|  | 14624 | test "$cross_compiling" = yes && | 
|  | 14625 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 14626 | if test -r "/dev/ptc"; then | 
|  | 14627 | ac_cv_file__dev_ptc=yes | 
|  | 14628 | else | 
|  | 14629 | ac_cv_file__dev_ptc=no | 
|  | 14630 | fi | 
|  | 14631 | fi | 
|  | 14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 14633 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 14634 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14635 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14636 | fi | 
|  | 14637 |  | 
|  | 14638 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14639 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14640 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14641 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14642 | fi | 
|  | 14643 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14644 | if test "$have_long_long" = yes | 
|  | 14645 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
|  | 14647 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14648 | if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14649 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14650 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14651 | if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14652 | ac_cv_have_long_long_format="cross -- assuming no" | 
|  | 14653 | if test x$GCC = xyes; then | 
|  | 14654 | save_CFLAGS=$CFLAGS | 
|  | 14655 | CFLAGS="$CFLAGS -Werror -Wformat" | 
|  | 14656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14657 | /* end confdefs.h.  */ | 
|  | 14658 |  | 
|  | 14659 | #include <stdio.h> | 
|  | 14660 | #include <stddef.h> | 
|  | 14661 |  | 
|  | 14662 | int | 
|  | 14663 | main () | 
|  | 14664 | { | 
|  | 14665 |  | 
|  | 14666 | char *buffer; | 
|  | 14667 | sprintf(buffer, "%lld", (long long)123); | 
|  | 14668 | sprintf(buffer, "%lld", (long long)-123); | 
|  | 14669 | sprintf(buffer, "%llu", (unsigned long long)123); | 
|  | 14670 |  | 
|  | 14671 | ; | 
|  | 14672 | return 0; | 
|  | 14673 | } | 
|  | 14674 | _ACEOF | 
|  | 14675 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14676 | ac_cv_have_long_long_format=yes | 
|  | 14677 |  | 
|  | 14678 | fi | 
|  | 14679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14680 | CFLAGS=$save_CFLAGS | 
|  | 14681 | fi | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14682 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14684 | /* end confdefs.h.  */ | 
|  | 14685 |  | 
|  | 14686 | #include <stdio.h> | 
|  | 14687 | #include <stddef.h> | 
|  | 14688 | #include <string.h> | 
|  | 14689 |  | 
|  | 14690 | #ifdef HAVE_SYS_TYPES_H | 
|  | 14691 | #include <sys/types.h> | 
|  | 14692 | #endif | 
|  | 14693 |  | 
|  | 14694 | int main() | 
|  | 14695 | { | 
|  | 14696 | char buffer[256]; | 
|  | 14697 |  | 
|  | 14698 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 14699 | return 1; | 
|  | 14700 | if (strcmp(buffer, "123")) | 
|  | 14701 | return 1; | 
|  | 14702 |  | 
|  | 14703 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 14704 | return 1; | 
|  | 14705 | if (strcmp(buffer, "-123")) | 
|  | 14706 | return 1; | 
|  | 14707 |  | 
|  | 14708 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 14709 | return 1; | 
|  | 14710 | if (strcmp(buffer, "123")) | 
|  | 14711 | return 1; | 
|  | 14712 |  | 
|  | 14713 | return 0; | 
|  | 14714 | } | 
|  | 14715 |  | 
|  | 14716 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14717 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14718 | ac_cv_have_long_long_format=yes | 
|  | 14719 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14720 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14721 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14723 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14724 | fi | 
|  | 14725 |  | 
|  | 14726 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14727 | fi | 
|  | 14728 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
|  | 14730 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14731 | fi | 
|  | 14732 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 14733 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14734 | then | 
|  | 14735 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14736 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14737 |  | 
|  | 14738 | fi | 
|  | 14739 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 14740 | if test $ac_sys_system = Darwin | 
|  | 14741 | then | 
|  | 14742 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 14743 | fi | 
|  | 14744 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14745 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 14747 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14748 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14749 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14750 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14751 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14752 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 14753 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14754 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14756 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14757 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14758 | #include <stdio.h> | 
|  | 14759 | #include <stddef.h> | 
|  | 14760 | #include <string.h> | 
|  | 14761 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14762 | #ifdef HAVE_SYS_TYPES_H | 
|  | 14763 | #include <sys/types.h> | 
|  | 14764 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14765 |  | 
|  | 14766 | #ifdef HAVE_SSIZE_T | 
|  | 14767 | typedef ssize_t Py_ssize_t; | 
|  | 14768 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 14769 | typedef long Py_ssize_t; | 
|  | 14770 | #else | 
|  | 14771 | typedef int Py_ssize_t; | 
|  | 14772 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14773 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14774 | int main() | 
|  | 14775 | { | 
|  | 14776 | char buffer[256]; | 
|  | 14777 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14778 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 14779 | return 1; | 
|  | 14780 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14781 | if (strcmp(buffer, "123")) | 
|  | 14782 | return 1; | 
|  | 14783 |  | 
|  | 14784 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 14785 | return 1; | 
|  | 14786 |  | 
|  | 14787 | if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14788 | return 1; | 
|  | 14789 |  | 
|  | 14790 | return 0; | 
|  | 14791 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14792 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14793 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14794 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14795 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14796 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14797 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14798 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14800 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 14801 | fi | 
|  | 14802 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14803 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 14805 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14806 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14807 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14808 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14809 |  | 
|  | 14810 | fi | 
|  | 14811 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14812 | 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] | 14813 | #ifdef HAVE_SYS_TYPES_H | 
|  | 14814 | #include <sys/types.h> | 
|  | 14815 | #endif | 
|  | 14816 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 14817 | #include <sys/socket.h> | 
|  | 14818 | #endif | 
|  | 14819 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14820 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14821 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14822 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14825 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14826 |  | 
|  | 14827 | fi | 
|  | 14828 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14829 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14830 | case $ac_sys_system in | 
|  | 14831 | AIX*) | 
|  | 14832 |  | 
|  | 14833 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 14834 | ;; | 
|  | 14835 | esac | 
|  | 14836 |  | 
|  | 14837 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14838 |  | 
|  | 14839 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14840 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 14841 | do | 
|  | 14842 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 14843 | done | 
|  | 14844 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14845 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14846 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 14848 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14849 | for dir in $SRCDIRS; do | 
|  | 14850 | if test ! -d $dir; then | 
|  | 14851 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14852 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14853 | done | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 14854 |  | 
|  | 14855 | # BEGIN_COMPUTED_GOTO | 
|  | 14856 | # Check for --with-computed-gotos | 
|  | 14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 14858 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
|  | 14859 |  | 
|  | 14860 | # Check whether --with-computed-gotos was given. | 
|  | 14861 | if test "${with_computed_gotos+set}" = set; then : | 
|  | 14862 | withval=$with_computed_gotos; | 
|  | 14863 | if test "$withval" = yes | 
|  | 14864 | then | 
|  | 14865 |  | 
|  | 14866 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 14867 |  | 
|  | 14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 14869 | $as_echo "yes" >&6; } | 
|  | 14870 | fi | 
|  | 14871 | if test "$withval" = no | 
|  | 14872 | then | 
|  | 14873 |  | 
|  | 14874 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 14875 |  | 
|  | 14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 14877 | $as_echo "no" >&6; } | 
|  | 14878 | fi | 
|  | 14879 |  | 
|  | 14880 | else | 
|  | 14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14882 | $as_echo "no value specified" >&6; } | 
|  | 14883 | fi | 
|  | 14884 |  | 
|  | 14885 |  | 
|  | 14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 14887 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 14888 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 14889 | $as_echo_n "(cached) " >&6 | 
|  | 14890 | else | 
|  | 14891 | if test "$cross_compiling" = yes; then : | 
|  | 14892 | if test "${with_computed_gotos+set}" = set; then | 
|  | 14893 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 14894 | else | 
|  | 14895 | ac_cv_computed_gotos=no | 
|  | 14896 | fi | 
|  | 14897 | else | 
|  | 14898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14899 | /* end confdefs.h.  */ | 
|  | 14900 |  | 
|  | 14901 | int main(int argc, char **argv) | 
|  | 14902 | { | 
|  | 14903 | static void *targets[1] = { &&LABEL1 }; | 
|  | 14904 | goto LABEL2; | 
|  | 14905 | LABEL1: | 
|  | 14906 | return 0; | 
|  | 14907 | LABEL2: | 
|  | 14908 | goto *targets[0]; | 
|  | 14909 | return 1; | 
|  | 14910 | } | 
|  | 14911 |  | 
|  | 14912 | _ACEOF | 
|  | 14913 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 14914 | ac_cv_computed_gotos=yes | 
|  | 14915 | else | 
|  | 14916 | ac_cv_computed_gotos=no | 
|  | 14917 | fi | 
|  | 14918 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14919 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 14920 | fi | 
|  | 14921 |  | 
|  | 14922 | fi | 
|  | 14923 |  | 
|  | 14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 14925 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 14926 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 14927 |  | 
|  | 14928 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 14929 |  | 
|  | 14930 | esac | 
|  | 14931 | # END_COMPUTED_GOTO | 
|  | 14932 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 14934 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14935 |  | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 14936 | # ensurepip option | 
|  | 14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 14938 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 14939 |  | 
|  | 14940 | # Check whether --with-ensurepip was given. | 
|  | 14941 | if test "${with_ensurepip+set}" = set; then : | 
|  | 14942 | withval=$with_ensurepip; | 
|  | 14943 | else | 
|  | 14944 | with_ensurepip=no | 
|  | 14945 | fi | 
|  | 14946 |  | 
|  | 14947 | case $with_ensurepip in #( | 
|  | 14948 | yes|upgrade) : | 
|  | 14949 | ENSUREPIP=upgrade ;; #( | 
|  | 14950 | install) : | 
|  | 14951 | ENSUREPIP=install ;; #( | 
|  | 14952 | no) : | 
|  | 14953 | ENSUREPIP=no ;; #( | 
|  | 14954 | *) : | 
|  | 14955 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 14956 | esac | 
|  | 14957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 14958 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 14959 |  | 
|  | 14960 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14961 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14962 | 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] | 14963 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14964 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 14965 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14967 | # This file is a shell script that caches the results of configure | 
|  | 14968 | # 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] | 14969 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 14970 | # It is not useful on other systems.  If it contains results you don't | 
|  | 14971 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14972 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | # config.status only pays attention to the cache file if you give it | 
|  | 14974 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14975 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14976 | # `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] | 14977 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 14978 | # following values. | 
|  | 14979 |  | 
|  | 14980 | _ACEOF | 
|  | 14981 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14982 | # The following way of writing the cache mishandles newlines in values, | 
|  | 14983 | # 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] | 14984 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14985 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 14986 | # 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] | 14987 | ( | 
|  | 14988 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 14989 | eval ac_val=\$$ac_var | 
|  | 14990 | case $ac_val in #( | 
|  | 14991 | *${as_nl}*) | 
|  | 14992 | case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14993 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 14994 | $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] | 14995 | esac | 
|  | 14996 | case $ac_var in #( | 
|  | 14997 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14998 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 14999 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15000 | esac ;; | 
|  | 15001 | esac | 
|  | 15002 | done | 
|  | 15003 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 | (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15005 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 15006 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15007 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 15008 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15010 | "s/'/'\\\\''/g; | 
|  | 15011 | 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] | 15012 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15013 | *) | 
|  | 15014 | # `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] | 15015 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15017 | esac | | 
|  | 15018 | sort | 
|  | 15019 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15021 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15023 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 15025 | t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15026 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 15027 | :end' >>confcache | 
|  | 15028 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 15029 | if test -w "$cache_file"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15030 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 15032 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15033 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 15034 | cat confcache >"$cache_file" | 
|  | 15035 | else | 
|  | 15036 | case $cache_file in #( | 
|  | 15037 | */* | ?:*) | 
|  | 15038 | mv -f confcache "$cache_file"$$ && | 
|  | 15039 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 15040 | *) | 
|  | 15041 | mv -f confcache "$cache_file" ;; | 
|  | 15042 | esac | 
|  | 15043 | fi | 
|  | 15044 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15045 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 15047 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15048 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15049 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15050 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15051 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15052 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 15053 | # Let make expand exec_prefix. | 
|  | 15054 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15055 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15056 | DEFS=-DHAVE_CONFIG_H | 
|  | 15057 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15058 | ac_libobjs= | 
|  | 15059 | ac_ltlibobjs= | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15060 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15061 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 15062 | # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15063 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15064 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15065 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 15066 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15067 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 15068 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15069 | done | 
|  | 15070 | LIBOBJS=$ac_libobjs | 
|  | 15071 |  | 
|  | 15072 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 15073 |  | 
|  | 15074 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15076 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15077 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15078 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15079 | ac_clean_files_save=$ac_clean_files | 
|  | 15080 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15081 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 15082 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 15083 | as_write_fail=0 | 
|  | 15084 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15085 | #! $SHELL | 
|  | 15086 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15087 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15088 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15090 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15092 | ac_cs_recheck=false | 
|  | 15093 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15094 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15095 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 15096 | export SHELL | 
|  | 15097 | _ASEOF | 
|  | 15098 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 15099 | ## -------------------- ## | 
|  | 15100 | ## M4sh Initialization. ## | 
|  | 15101 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15102 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15103 | # Be more Bourne compatible | 
|  | 15104 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15105 | 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] | 15106 | emulate sh | 
|  | 15107 | NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15108 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15109 | # is contrary to our usage.  Disable this feature. | 
|  | 15110 | alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15111 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15112 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15113 | case `(set -o) 2>/dev/null` in #( | 
|  | 15114 | *posix*) : | 
|  | 15115 | set -o posix ;; #( | 
|  | 15116 | *) : | 
|  | 15117 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15118 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15120 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15121 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15122 | as_nl=' | 
|  | 15123 | ' | 
|  | 15124 | export as_nl | 
|  | 15125 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 15126 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 15127 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 15128 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 15129 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 15130 | # but without wasting forks for bash or zsh. | 
|  | 15131 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 15132 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 15133 | as_echo='print -r --' | 
|  | 15134 | as_echo_n='print -rn --' | 
|  | 15135 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 15136 | as_echo='printf %s\n' | 
|  | 15137 | as_echo_n='printf %s' | 
|  | 15138 | else | 
|  | 15139 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 15140 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 15141 | as_echo_n='/usr/ucb/echo -n' | 
|  | 15142 | else | 
|  | 15143 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 15144 | as_echo_n_body='eval | 
|  | 15145 | arg=$1; | 
|  | 15146 | case $arg in #( | 
|  | 15147 | *"$as_nl"*) | 
|  | 15148 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 15149 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 15150 | esac; | 
|  | 15151 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 15152 | ' | 
|  | 15153 | export as_echo_n_body | 
|  | 15154 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 15155 | fi | 
|  | 15156 | export as_echo_body | 
|  | 15157 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 15158 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 |  | 
|  | 15160 | # The user is always right. | 
|  | 15161 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15162 | PATH_SEPARATOR=: | 
|  | 15163 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 15164 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 15165 | PATH_SEPARATOR=';' | 
|  | 15166 | } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15167 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15169 |  | 
|  | 15170 | # IFS | 
|  | 15171 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 15172 | # there to prevent editors from complaining about space-tab. | 
|  | 15173 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 15174 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15175 | IFS=" ""	$as_nl" | 
|  | 15176 |  | 
|  | 15177 | # 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] | 15178 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15179 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15180 | *[\\/]* ) as_myself=$0 ;; | 
|  | 15181 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | for as_dir in $PATH | 
|  | 15183 | do | 
|  | 15184 | IFS=$as_save_IFS | 
|  | 15185 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15186 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 15187 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15188 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15190 | ;; | 
|  | 15191 | esac | 
|  | 15192 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 15193 | # in which case we are not to be found in the path. | 
|  | 15194 | if test "x$as_myself" = x; then | 
|  | 15195 | as_myself=$0 | 
|  | 15196 | fi | 
|  | 15197 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15198 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 15199 | exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15200 | fi | 
|  | 15201 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15202 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 15203 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 15204 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 15205 | # trigger a bug in pdksh 5.2.14. | 
|  | 15206 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 15207 | do eval test x\${$as_var+set} = xset \ | 
|  | 15208 | && ( (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] | 15209 | done | 
|  | 15210 | PS1='$ ' | 
|  | 15211 | PS2='> ' | 
|  | 15212 | PS4='+ ' | 
|  | 15213 |  | 
|  | 15214 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15215 | LC_ALL=C | 
|  | 15216 | export LC_ALL | 
|  | 15217 | LANGUAGE=C | 
|  | 15218 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15220 | # CDPATH. | 
|  | 15221 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 15222 |  | 
|  | 15223 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15224 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 15225 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15226 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 15227 | # 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] | 15228 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15229 | as_fn_error () | 
|  | 15230 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15231 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 15232 | if test "$4"; then | 
|  | 15233 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 15234 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15235 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15236 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15237 | as_fn_exit $as_status | 
|  | 15238 | } # as_fn_error | 
|  | 15239 |  | 
|  | 15240 |  | 
|  | 15241 | # as_fn_set_status STATUS | 
|  | 15242 | # ----------------------- | 
|  | 15243 | # Set $? to STATUS, without forking. | 
|  | 15244 | as_fn_set_status () | 
|  | 15245 | { | 
|  | 15246 | return $1 | 
|  | 15247 | } # as_fn_set_status | 
|  | 15248 |  | 
|  | 15249 | # as_fn_exit STATUS | 
|  | 15250 | # ----------------- | 
|  | 15251 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 15252 | as_fn_exit () | 
|  | 15253 | { | 
|  | 15254 | set +e | 
|  | 15255 | as_fn_set_status $1 | 
|  | 15256 | exit $1 | 
|  | 15257 | } # as_fn_exit | 
|  | 15258 |  | 
|  | 15259 | # as_fn_unset VAR | 
|  | 15260 | # --------------- | 
|  | 15261 | # Portably unset VAR. | 
|  | 15262 | as_fn_unset () | 
|  | 15263 | { | 
|  | 15264 | { eval $1=; unset $1;} | 
|  | 15265 | } | 
|  | 15266 | as_unset=as_fn_unset | 
|  | 15267 | # as_fn_append VAR VALUE | 
|  | 15268 | # ---------------------- | 
|  | 15269 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 15270 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 15271 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 15272 | # implementations. | 
|  | 15273 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 15274 | eval 'as_fn_append () | 
|  | 15275 | { | 
|  | 15276 | eval $1+=\$2 | 
|  | 15277 | }' | 
|  | 15278 | else | 
|  | 15279 | as_fn_append () | 
|  | 15280 | { | 
|  | 15281 | eval $1=\$$1\$2 | 
|  | 15282 | } | 
|  | 15283 | fi # as_fn_append | 
|  | 15284 |  | 
|  | 15285 | # as_fn_arith ARG... | 
|  | 15286 | # ------------------ | 
|  | 15287 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 15288 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 15289 | # must be portable across $(()) and expr. | 
|  | 15290 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 15291 | eval 'as_fn_arith () | 
|  | 15292 | { | 
|  | 15293 | as_val=$(( $* )) | 
|  | 15294 | }' | 
|  | 15295 | else | 
|  | 15296 | as_fn_arith () | 
|  | 15297 | { | 
|  | 15298 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 15299 | } | 
|  | 15300 | fi # as_fn_arith | 
|  | 15301 |  | 
|  | 15302 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15303 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 15304 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 15305 | as_expr=expr | 
|  | 15306 | else | 
|  | 15307 | as_expr=false | 
|  | 15308 | fi | 
|  | 15309 |  | 
|  | 15310 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 15311 | as_basename=basename | 
|  | 15312 | else | 
|  | 15313 | as_basename=false | 
|  | 15314 | fi | 
|  | 15315 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15316 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 15317 | as_dirname=dirname | 
|  | 15318 | else | 
|  | 15319 | as_dirname=false | 
|  | 15320 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15321 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15322 | as_me=`$as_basename -- "$0" || | 
|  | 15323 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 15324 | X"$0" : 'X\(//\)$' \| \ | 
|  | 15325 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15326 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15327 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 15328 | s//\1/ | 
|  | 15329 | q | 
|  | 15330 | } | 
|  | 15331 | /^X\/\(\/\/\)$/{ | 
|  | 15332 | s//\1/ | 
|  | 15333 | q | 
|  | 15334 | } | 
|  | 15335 | /^X\/\(\/\).*/{ | 
|  | 15336 | s//\1/ | 
|  | 15337 | q | 
|  | 15338 | } | 
|  | 15339 | s/.*/./; q'` | 
|  | 15340 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15341 | # Avoid depending upon Character Ranges. | 
|  | 15342 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 15343 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 15344 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 15345 | as_cr_digits='0123456789' | 
|  | 15346 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15347 |  | 
|  | 15348 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15349 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15350 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15351 | case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15352 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15353 | xy)  ECHO_C='\c';; | 
|  | 15354 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 15355 | ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15356 | esac;; | 
|  | 15357 | *) | 
|  | 15358 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15360 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15362 | if test -d conf$$.dir; then | 
|  | 15363 | rm -f conf$$.dir/conf$$.file | 
|  | 15364 | else | 
|  | 15365 | rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15366 | mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15367 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15368 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 15369 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 15370 | as_ln_s='ln -s' | 
|  | 15371 | # ... but there are two gotchas: | 
|  | 15372 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 15373 | # 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] | 15374 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15375 | 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] | 15376 | as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15377 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 15378 | as_ln_s=ln | 
|  | 15379 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15380 | as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15381 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15382 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15383 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15385 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 15386 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15388 |  | 
|  | 15389 | # as_fn_mkdir_p | 
|  | 15390 | # ------------- | 
|  | 15391 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 15392 | as_fn_mkdir_p () | 
|  | 15393 | { | 
|  | 15394 |  | 
|  | 15395 | case $as_dir in #( | 
|  | 15396 | -*) as_dir=./$as_dir;; | 
|  | 15397 | esac | 
|  | 15398 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 15399 | as_dirs= | 
|  | 15400 | while :; do | 
|  | 15401 | case $as_dir in #( | 
|  | 15402 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 15403 | *) as_qdir=$as_dir;; | 
|  | 15404 | esac | 
|  | 15405 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 15406 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 15407 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 15408 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 15409 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 15410 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 15411 | $as_echo X"$as_dir" | | 
|  | 15412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 15413 | s//\1/ | 
|  | 15414 | q | 
|  | 15415 | } | 
|  | 15416 | /^X\(\/\/\)[^/].*/{ | 
|  | 15417 | s//\1/ | 
|  | 15418 | q | 
|  | 15419 | } | 
|  | 15420 | /^X\(\/\/\)$/{ | 
|  | 15421 | s//\1/ | 
|  | 15422 | q | 
|  | 15423 | } | 
|  | 15424 | /^X\(\/\).*/{ | 
|  | 15425 | s//\1/ | 
|  | 15426 | q | 
|  | 15427 | } | 
|  | 15428 | s/.*/./; q'` | 
|  | 15429 | test -d "$as_dir" && break | 
|  | 15430 | done | 
|  | 15431 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15432 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15433 |  | 
|  | 15434 |  | 
|  | 15435 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15436 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15437 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15438 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15439 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15440 | as_mkdir_p=false | 
|  | 15441 | fi | 
|  | 15442 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15443 |  | 
|  | 15444 | # as_fn_executable_p FILE | 
|  | 15445 | # ----------------------- | 
|  | 15446 | # Test if FILE is an executable regular file. | 
|  | 15447 | as_fn_executable_p () | 
|  | 15448 | { | 
|  | 15449 | test -f "$1" && test -x "$1" | 
|  | 15450 | } # as_fn_executable_p | 
|  | 15451 | as_test_x='test -x' | 
|  | 15452 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 |  | 
|  | 15454 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15455 | 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] | 15456 |  | 
|  | 15457 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15458 | 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] | 15459 |  | 
|  | 15460 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15462 | ## ----------------------------------- ## | 
|  | 15463 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 15464 | ## ----------------------------------- ## | 
|  | 15465 | _ASEOF | 
|  | 15466 | 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] | 15467 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15468 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 15469 | # 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] | 15470 | # 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] | 15471 | # values after options handling. | 
|  | 15472 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15473 | 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] | 15474 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 |  | 
|  | 15476 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 15477 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 15478 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 15479 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 15480 | $ $0 $@ | 
|  | 15481 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15482 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 15483 | " | 
|  | 15484 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | _ACEOF | 
|  | 15486 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15487 | case $ac_config_files in *" | 
|  | 15488 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 15489 | esac | 
|  | 15490 |  | 
|  | 15491 | case $ac_config_headers in *" | 
|  | 15492 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 15493 | esac | 
|  | 15494 |  | 
|  | 15495 |  | 
|  | 15496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15497 | # Files that config.status was made for. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15498 | config_files="$ac_config_files" | 
|  | 15499 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15501 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15502 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15503 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15505 | \`$as_me' instantiates files and other configuration actions | 
|  | 15506 | from templates according to the current configuration.  Unless the files | 
|  | 15507 | 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] | 15508 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15509 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 |  | 
|  | 15511 | -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15512 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15513 | --config     print configuration, then exit | 
|  | 15514 | -q, --quiet, --silent | 
|  | 15515 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | -d, --debug      don't remove temporary files | 
|  | 15517 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15518 | --file=FILE[:TEMPLATE] | 
|  | 15519 | instantiate the configuration file FILE | 
|  | 15520 | --header=FILE[:TEMPLATE] | 
|  | 15521 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15522 |  | 
|  | 15523 | Configuration files: | 
|  | 15524 | $config_files | 
|  | 15525 |  | 
|  | 15526 | Configuration headers: | 
|  | 15527 | $config_headers | 
|  | 15528 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15529 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15530 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15531 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15532 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 15533 | 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] | 15534 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15535 | python config.status 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15536 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15537 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15539 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | This config.status script is free software; the Free Software Foundation | 
|  | 15541 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15542 |  | 
|  | 15543 | ac_pwd='$ac_pwd' | 
|  | 15544 | srcdir='$srcdir' | 
|  | 15545 | INSTALL='$INSTALL' | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15546 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15547 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | _ACEOF | 
|  | 15549 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 15551 | # 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] | 15552 | ac_need_defaults=: | 
|  | 15553 | while test $# != 0 | 
|  | 15554 | do | 
|  | 15555 | case $1 in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15556 | --*=?*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15557 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 15558 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15559 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15561 | --*=) | 
|  | 15562 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 15563 | ac_optarg= | 
|  | 15564 | ac_shift=: | 
|  | 15565 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15566 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15567 | ac_option=$1 | 
|  | 15568 | ac_optarg=$2 | 
|  | 15569 | ac_shift=shift | 
|  | 15570 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | esac | 
|  | 15572 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15573 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15575 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 15576 | ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15577 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15578 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 15579 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 15580 | $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15581 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | debug=: ;; | 
|  | 15583 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15584 | $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15585 | case $ac_optarg in | 
|  | 15586 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15587 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15588 | esac | 
|  | 15589 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | ac_need_defaults=false;; | 
|  | 15591 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15592 | $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15593 | case $ac_optarg in | 
|  | 15594 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 15595 | esac | 
|  | 15596 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15598 | --he | --h) | 
|  | 15599 | # Conflict between --help and --header | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15600 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15601 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15602 | --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15603 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15604 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 15605 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 15606 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 |  | 
|  | 15608 | # This is an error. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15609 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15610 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15612 | *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15613 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15614 |  | 
|  | 15615 | esac | 
|  | 15616 | shift | 
|  | 15617 | done | 
|  | 15618 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15619 | ac_configure_extra_args= | 
|  | 15620 |  | 
|  | 15621 | if $ac_cs_silent; then | 
|  | 15622 | exec 6>/dev/null | 
|  | 15623 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 15624 | fi | 
|  | 15625 |  | 
|  | 15626 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15628 | if \$ac_cs_recheck; then | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15629 | 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] | 15630 | shift | 
|  | 15631 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 15632 | CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15633 | export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15634 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15635 | fi | 
|  | 15636 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15639 | exec 5>>config.log | 
|  | 15640 | { | 
|  | 15641 | echo | 
|  | 15642 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 15643 | ## Running $as_me. ## | 
|  | 15644 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15645 | $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15646 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15648 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15650 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15653 |  | 
|  | 15654 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | for ac_config_target in $ac_config_targets | 
|  | 15656 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15657 | case $ac_config_target in | 
|  | 15658 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 15659 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 15660 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
|  | 15661 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 15662 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 15663 | "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] | 15664 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 15665 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 15666 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15667 | "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] | 15668 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15669 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | esac | 
|  | 15671 | done | 
|  | 15672 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15673 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 15675 | # then the envvar interface is used.  Set only those that are not. | 
|  | 15676 | # We use the long form for the default assignment because of an extremely | 
|  | 15677 | # bizarre bug on SunOS 4.1.3. | 
|  | 15678 | if $ac_need_defaults; then | 
|  | 15679 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 15680 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 15681 | fi | 
|  | 15682 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15683 | # 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] | 15684 | # 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] | 15685 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15686 | # Hook for its removal unless debugging. | 
|  | 15687 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 15688 | # 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] | 15689 | $debug || | 
|  | 15690 | { | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15691 | tmp= ac_tmp= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15692 | trap 'exit_status=$? | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15693 | : "${ac_tmp:=$tmp}" | 
|  | 15694 | { 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] | 15695 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15696 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15699 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15701 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15702 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | }  || | 
|  | 15704 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15705 | tmp=./conf$$-$RANDOM | 
|  | 15706 | (umask 077 && mkdir "$tmp") | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15707 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15708 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15709 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15710 | # Set up the scripts for CONFIG_FILES section. | 
|  | 15711 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 15712 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15713 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15715 |  | 
|  | 15716 | ac_cr=`echo X | tr X '\015'` | 
|  | 15717 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 15718 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 15719 | # point, so we can use a bashism as a fallback. | 
|  | 15720 | if test "x$ac_cr" = x; then | 
|  | 15721 | eval ac_cr=\$\'\\r\' | 
|  | 15722 | fi | 
|  | 15723 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 15724 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15725 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15726 | else | 
|  | 15727 | ac_cs_awk_cr=$ac_cr | 
|  | 15728 | fi | 
|  | 15729 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15730 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | _ACEOF | 
|  | 15732 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15733 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15734 | { | 
|  | 15735 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 15736 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 15737 | echo "_ACEOF" | 
|  | 15738 | } >conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15739 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 15740 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15741 | ac_delim='%!_!# ' | 
|  | 15742 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15743 | . ./conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15744 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15745 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15746 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 15747 | if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15748 | break | 
|  | 15749 | elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15750 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15751 | else | 
|  | 15752 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15754 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15755 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15756 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15757 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15758 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15759 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15760 | sed -n ' | 
|  | 15761 | h | 
|  | 15762 | s/^/S["/; s/!.*/"]=/ | 
|  | 15763 | p | 
|  | 15764 | g | 
|  | 15765 | s/^[^!]*!// | 
|  | 15766 | :repl | 
|  | 15767 | t repl | 
|  | 15768 | s/'"$ac_delim"'$// | 
|  | 15769 | t delim | 
|  | 15770 | :nl | 
|  | 15771 | h | 
|  | 15772 | s/\(.\{148\}\)..*/\1/ | 
|  | 15773 | t more1 | 
|  | 15774 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 15775 | p | 
|  | 15776 | n | 
|  | 15777 | b repl | 
|  | 15778 | :more1 | 
|  | 15779 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 15780 | p | 
|  | 15781 | g | 
|  | 15782 | s/.\{148\}// | 
|  | 15783 | t nl | 
|  | 15784 | :delim | 
|  | 15785 | h | 
|  | 15786 | s/\(.\{148\}\)..*/\1/ | 
|  | 15787 | t more2 | 
|  | 15788 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 15789 | p | 
|  | 15790 | b | 
|  | 15791 | :more2 | 
|  | 15792 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 15793 | p | 
|  | 15794 | g | 
|  | 15795 | s/.\{148\}// | 
|  | 15796 | t delim | 
|  | 15797 | ' <conf$$subs.awk | sed ' | 
|  | 15798 | /^[^""]/{ | 
|  | 15799 | N | 
|  | 15800 | s/\n// | 
|  | 15801 | } | 
|  | 15802 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 15803 | rm -f conf$$subs.awk | 
|  | 15804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 15805 | _ACAWK | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15806 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15807 | for (key in S) S_is_set[key] = 1 | 
|  | 15808 | FS = "" | 
|  | 15809 |  | 
|  | 15810 | } | 
|  | 15811 | { | 
|  | 15812 | line = $ 0 | 
|  | 15813 | nfields = split(line, field, "@") | 
|  | 15814 | substed = 0 | 
|  | 15815 | len = length(field[1]) | 
|  | 15816 | for (i = 2; i < nfields; i++) { | 
|  | 15817 | key = field[i] | 
|  | 15818 | keylen = length(key) | 
|  | 15819 | if (S_is_set[key]) { | 
|  | 15820 | value = S[key] | 
|  | 15821 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 15822 | len += length(value) + length(field[++i]) | 
|  | 15823 | substed = 1 | 
|  | 15824 | } else | 
|  | 15825 | len += 1 + keylen | 
|  | 15826 | } | 
|  | 15827 |  | 
|  | 15828 | print line | 
|  | 15829 | } | 
|  | 15830 |  | 
|  | 15831 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15832 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15833 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 15834 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 15835 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 15836 | else | 
|  | 15837 | cat | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15838 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15839 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15840 | _ACEOF | 
|  | 15841 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15842 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 15843 | # ${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] | 15844 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 15845 | # (actually we leave an empty line to preserve line numbers). | 
|  | 15846 | if test "x$srcdir" = x.; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15847 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 15848 | h | 
|  | 15849 | s/// | 
|  | 15850 | s/^/:/ | 
|  | 15851 | s/[	 ]*$/:/ | 
|  | 15852 | s/:\$(srcdir):/:/g | 
|  | 15853 | s/:\${srcdir}:/:/g | 
|  | 15854 | s/:@srcdir@:/:/g | 
|  | 15855 | s/^:*// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15856 | s/:*$// | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15857 | x | 
|  | 15858 | s/\(=[	 ]*\).*/\1/ | 
|  | 15859 | G | 
|  | 15860 | s/\n// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15861 | s/^[^=]*=[	 ]*$// | 
|  | 15862 | }' | 
|  | 15863 | fi | 
|  | 15864 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15865 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | fi # test -n "$CONFIG_FILES" | 
|  | 15867 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15868 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 15869 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 15870 | # This happens for instance with `./config.status Makefile'. | 
|  | 15871 | if test -n "$CONFIG_HEADERS"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15872 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15873 | BEGIN { | 
|  | 15874 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15875 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15876 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 15877 | # here-document in config.status, that substitutes the proper values into | 
|  | 15878 | # config.h.in to produce config.h. | 
|  | 15879 |  | 
|  | 15880 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 15881 | # handling of long lines. | 
|  | 15882 | ac_delim='%!_!# ' | 
|  | 15883 | for ac_last_try in false false :; do | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15884 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 15885 | if test -z "$ac_tt"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15886 | break | 
|  | 15887 | elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15888 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15889 | else | 
|  | 15890 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 15891 | fi | 
|  | 15892 | done | 
|  | 15893 |  | 
|  | 15894 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 15895 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 15896 | # newline sequences. | 
|  | 15897 |  | 
|  | 15898 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 15899 | sed -n ' | 
|  | 15900 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 15901 | t rset | 
|  | 15902 | :rset | 
|  | 15903 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 15904 | t def | 
|  | 15905 | d | 
|  | 15906 | :def | 
|  | 15907 | s/\\$// | 
|  | 15908 | t bsnl | 
|  | 15909 | s/["\\]/\\&/g | 
|  | 15910 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 15911 | D["\1"]=" \3"/p | 
|  | 15912 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 15913 | d | 
|  | 15914 | :bsnl | 
|  | 15915 | s/["\\]/\\&/g | 
|  | 15916 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 15917 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 15918 | t cont | 
|  | 15919 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 15920 | t cont | 
|  | 15921 | d | 
|  | 15922 | :cont | 
|  | 15923 | n | 
|  | 15924 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 15925 | t clear | 
|  | 15926 | :clear | 
|  | 15927 | s/\\$// | 
|  | 15928 | t bsnlc | 
|  | 15929 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 15930 | d | 
|  | 15931 | :bsnlc | 
|  | 15932 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 15933 | b cont | 
|  | 15934 | ' <confdefs.h | sed ' | 
|  | 15935 | s/'"$ac_delim"'/"\\\ | 
|  | 15936 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 15937 |  | 
|  | 15938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 15939 | for (key in D) D_is_set[key] = 1 | 
|  | 15940 | FS = "" | 
|  | 15941 | } | 
|  | 15942 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 15943 | line = \$ 0 | 
|  | 15944 | split(line, arg, " ") | 
|  | 15945 | if (arg[1] == "#") { | 
|  | 15946 | defundef = arg[2] | 
|  | 15947 | mac1 = arg[3] | 
|  | 15948 | } else { | 
|  | 15949 | defundef = substr(arg[1], 2) | 
|  | 15950 | mac1 = arg[2] | 
|  | 15951 | } | 
|  | 15952 | split(mac1, mac2, "(") #) | 
|  | 15953 | macro = mac2[1] | 
|  | 15954 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 15955 | if (D_is_set[macro]) { | 
|  | 15956 | # Preserve the white space surrounding the "#". | 
|  | 15957 | print prefix "define", macro P[macro] D[macro] | 
|  | 15958 | next | 
|  | 15959 | } else { | 
|  | 15960 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 15961 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 15962 | # on some systems where configure will not decide to define it. | 
|  | 15963 | if (defundef == "undef") { | 
|  | 15964 | print "/*", prefix defundef, macro, "*/" | 
|  | 15965 | next | 
|  | 15966 | } | 
|  | 15967 | } | 
|  | 15968 | } | 
|  | 15969 | { print } | 
|  | 15970 | _ACAWK | 
|  | 15971 | _ACEOF | 
|  | 15972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15973 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15974 | fi # test -n "$CONFIG_HEADERS" | 
|  | 15975 |  | 
|  | 15976 |  | 
|  | 15977 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 15978 | shift | 
|  | 15979 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15980 | do | 
|  | 15981 | case $ac_tag in | 
|  | 15982 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 15983 | esac | 
|  | 15984 | case $ac_mode$ac_tag in | 
|  | 15985 | :[FHL]*:*);; | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15986 | :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] | 15987 | :[FH]-) ac_tag=-:-;; | 
|  | 15988 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 15989 | esac | 
|  | 15990 | ac_save_IFS=$IFS | 
|  | 15991 | IFS=: | 
|  | 15992 | set x $ac_tag | 
|  | 15993 | IFS=$ac_save_IFS | 
|  | 15994 | shift | 
|  | 15995 | ac_file=$1 | 
|  | 15996 | shift | 
|  | 15997 |  | 
|  | 15998 | case $ac_mode in | 
|  | 15999 | :L) ac_source=$1;; | 
|  | 16000 | :[FH]) | 
|  | 16001 | ac_file_inputs= | 
|  | 16002 | for ac_f | 
|  | 16003 | do | 
|  | 16004 | case $ac_f in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16005 | -) ac_f="$ac_tmp/stdin";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16006 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 16007 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 16008 | # because $ac_f cannot contain `:'. | 
|  | 16009 | test -f "$ac_f" || | 
|  | 16010 | case $ac_f in | 
|  | 16011 | [\\/$]*) false;; | 
|  | 16012 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 16013 | esac || | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16014 | 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] | 16015 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16016 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 16017 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16018 | done | 
|  | 16019 |  | 
|  | 16020 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 16021 | # use $as_me), people would be surprised to read: | 
|  | 16022 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16023 | configure_input='Generated from '` | 
|  | 16024 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 16025 | `' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16026 | if test x"$ac_file" != x-; then | 
|  | 16027 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 16029 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16030 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16031 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 16032 | case $configure_input in #( | 
|  | 16033 | *\&* | *\|* | *\\* ) | 
|  | 16034 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 16035 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 16036 | *) ac_sed_conf_input=$configure_input;; | 
|  | 16037 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16038 |  | 
|  | 16039 | case $ac_tag in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16040 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 16041 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16042 | esac | 
|  | 16043 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16044 | esac | 
|  | 16045 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16046 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16048 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 16049 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16050 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16051 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 16053 | s//\1/ | 
|  | 16054 | q | 
|  | 16055 | } | 
|  | 16056 | /^X\(\/\/\)[^/].*/{ | 
|  | 16057 | s//\1/ | 
|  | 16058 | q | 
|  | 16059 | } | 
|  | 16060 | /^X\(\/\/\)$/{ | 
|  | 16061 | s//\1/ | 
|  | 16062 | q | 
|  | 16063 | } | 
|  | 16064 | /^X\(\/\).*/{ | 
|  | 16065 | s//\1/ | 
|  | 16066 | q | 
|  | 16067 | } | 
|  | 16068 | s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16069 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | ac_builddir=. | 
|  | 16071 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16072 | case "$ac_dir" in | 
|  | 16073 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 16074 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16075 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16076 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16077 | 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] | 16078 | case $ac_top_builddir_sub in | 
|  | 16079 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 16080 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 16081 | esac ;; | 
|  | 16082 | esac | 
|  | 16083 | ac_abs_top_builddir=$ac_pwd | 
|  | 16084 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 16085 | # for backward compatibility: | 
|  | 16086 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16087 |  | 
|  | 16088 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16089 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16091 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 16092 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 16093 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16095 | ac_top_srcdir=$srcdir | 
|  | 16096 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 16097 | *) # Relative name. | 
|  | 16098 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 16099 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 16100 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16102 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16103 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16104 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16105 | case $ac_mode in | 
|  | 16106 | :F) | 
|  | 16107 | # | 
|  | 16108 | # CONFIG_FILE | 
|  | 16109 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16110 |  | 
|  | 16111 | case $INSTALL in | 
|  | 16112 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16113 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | esac | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 16115 | ac_MKDIR_P=$MKDIR_P | 
|  | 16116 | case $MKDIR_P in | 
|  | 16117 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 16118 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 16119 | esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 16120 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16121 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16123 | # If the template does not know about datarootdir, expand it. | 
|  | 16124 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 16125 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16126 | ac_sed_dataroot=' | 
|  | 16127 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16128 | p | 
|  | 16129 | q | 
|  | 16130 | } | 
|  | 16131 | /@datadir@/p | 
|  | 16132 | /@docdir@/p | 
|  | 16133 | /@infodir@/p | 
|  | 16134 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16135 | /@mandir@/p' | 
|  | 16136 | 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] | 16137 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 16138 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 16140 | $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] | 16141 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16143 | ac_datarootdir_hack=' | 
|  | 16144 | s&@datadir@&$datadir&g | 
|  | 16145 | s&@docdir@&$docdir&g | 
|  | 16146 | s&@infodir@&$infodir&g | 
|  | 16147 | s&@localedir@&$localedir&g | 
|  | 16148 | s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16149 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16150 | esac | 
|  | 16151 | _ACEOF | 
|  | 16152 |  | 
|  | 16153 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 16154 | # Shell code in configure.ac might set extrasub. | 
|  | 16155 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16156 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 16157 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | $extrasub | 
|  | 16159 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | :t | 
|  | 16162 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16163 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16164 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16165 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16166 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 16167 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 16168 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 16169 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 16170 | s&@builddir@&$ac_builddir&;t t | 
|  | 16171 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 16172 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 16173 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 16174 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16175 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16176 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16177 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 16178 | >$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] | 16179 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16180 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16181 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 16182 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 16183 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16184 | { $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] | 16185 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16186 | $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] | 16187 | 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] | 16188 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16189 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | case $ac_file in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16191 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 16192 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16193 | esac \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16194 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16195 | ;; | 
|  | 16196 | :H) | 
|  | 16197 | # | 
|  | 16198 | # CONFIG_HEADER | 
|  | 16199 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16201 | { | 
|  | 16202 | $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16203 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 16204 | } >"$ac_tmp/config.h" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16205 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16206 | 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] | 16207 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 16208 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16210 | rm -f "$ac_file" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16211 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16212 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16213 | fi | 
|  | 16214 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16215 | $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16216 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16217 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16218 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16219 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16220 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16221 |  | 
|  | 16222 | esac | 
|  | 16223 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 16224 |  | 
|  | 16225 | case $ac_file$ac_mode in | 
|  | 16226 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 16227 |  | 
|  | 16228 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16229 | done # for ac_tag | 
|  | 16230 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16231 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16232 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | ac_clean_files=$ac_clean_files_save | 
|  | 16235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16236 | test $ac_write_fail = 0 || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16237 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16238 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 |  | 
|  | 16240 | # configure is writing to config.log, and then calls config.status. | 
|  | 16241 | # config.status does its own redirection, appending to config.log. | 
|  | 16242 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 16243 | # by configure, so config.status won't be able to write to it; its | 
|  | 16244 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 16245 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 16246 | # appended to by config.status.  When coming back to configure, we | 
|  | 16247 | # need to make the FD available again. | 
|  | 16248 | if test "$no_create" != yes; then | 
|  | 16249 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16250 | ac_config_status_args= | 
|  | 16251 | test "$silent" = yes && | 
|  | 16252 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16253 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16254 | $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] | 16255 | exec 5>>config.log | 
|  | 16256 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 16257 | # would make configure fail if this is the last instruction. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16258 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16259 | fi | 
|  | 16260 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 16262 | $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] | 16263 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16264 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16265 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 16266 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16267 | if test ! -f Modules/Setup | 
|  | 16268 | then | 
|  | 16269 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 16270 | fi | 
|  | 16271 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 16272 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16273 | if test ! -f Modules/Setup.local | 
|  | 16274 | then | 
|  | 16275 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 16276 | fi | 
|  | 16277 |  | 
|  | 16278 | echo "creating Makefile" | 
|  | 16279 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 16280 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16281 | Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16282 |  | 
|  | 16283 | case $ac_sys_system in | 
|  | 16284 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16286 |  | 
|  | 16287 | Support for BeOS is deprecated as of Python 2.6. | 
|  | 16288 | See PEP 11 for the gory details. | 
|  | 16289 | " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16290 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16291 |  | 
|  | 16292 | Support for BeOS is deprecated as of Python 2.6. | 
|  | 16293 | See PEP 11 for the gory details. | 
|  | 16294 | " >&2;} | 
|  | 16295 | ;; | 
|  | 16296 | *) ;; | 
|  | 16297 | esac | 
|  | 16298 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16299 | mv config.c Modules |