| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame^] | 2 | # From configure.in HGVERSION. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.65 for python 3.3. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | 
|  | 11 | # Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12 | # | 
|  | 13 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation | 
|  | 15 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
|  | 17 | ## M4sh Initialization. ## | 
|  | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
|  | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 | emulate sh | 
|  | 24 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage.  Disable this feature. | 
|  | 27 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( | 
|  | 31 | *posix*) : | 
|  | 32 | set -o posix ;; #( | 
|  | 33 | *) : | 
|  | 34 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 |  | 
|  | 38 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 39 | as_nl=' | 
|  | 40 | ' | 
|  | 41 | export as_nl | 
|  | 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 47 | # but without wasting forks for bash or zsh. | 
|  | 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 50 | as_echo='print -r --' | 
|  | 51 | as_echo_n='print -rn --' | 
|  | 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 53 | as_echo='printf %s\n' | 
|  | 54 | as_echo_n='printf %s' | 
|  | 55 | else | 
|  | 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 58 | as_echo_n='/usr/ucb/echo -n' | 
|  | 59 | else | 
|  | 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 61 | as_echo_n_body='eval | 
|  | 62 | arg=$1; | 
|  | 63 | case $arg in #( | 
|  | 64 | *"$as_nl"*) | 
|  | 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 67 | esac; | 
|  | 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 69 | ' | 
|  | 70 | export as_echo_n_body | 
|  | 71 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 72 | fi | 
|  | 73 | export as_echo_body | 
|  | 74 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 75 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 |  | 
|  | 77 | # The user is always right. | 
|  | 78 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: | 
|  | 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 82 | PATH_SEPARATOR=';' | 
|  | 83 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 |  | 
|  | 87 | # IFS | 
|  | 88 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 89 | # there to prevent editors from complaining about space-tab. | 
|  | 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 91 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" ""	$as_nl" | 
|  | 93 |  | 
|  | 94 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 95 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; | 
|  | 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | for as_dir in $PATH | 
|  | 99 | do | 
|  | 100 | IFS=$as_save_IFS | 
|  | 101 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 103 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 105 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 106 | ;; | 
|  | 107 | esac | 
|  | 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 109 | # in which case we are not to be found in the path. | 
|  | 110 | if test "x$as_myself" = x; then | 
|  | 111 | as_myself=$0 | 
|  | 112 | fi | 
|  | 113 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 115 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 116 | fi | 
|  | 117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 119 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 120 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 121 | # trigger a bug in pdksh 5.2.14. | 
|  | 122 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 123 | do eval test x\${$as_var+set} = xset \ | 
|  | 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 125 | done | 
|  | 126 | PS1='$ ' | 
|  | 127 | PS2='> ' | 
|  | 128 | PS4='+ ' | 
|  | 129 |  | 
|  | 130 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 131 | LC_ALL=C | 
|  | 132 | export LC_ALL | 
|  | 133 | LANGUAGE=C | 
|  | 134 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 136 | # CDPATH. | 
|  | 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 138 |  | 
|  | 139 | if test "x$CONFIG_SHELL" = x; then | 
|  | 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 141 | emulate sh | 
|  | 142 | NULLCMD=: | 
|  | 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 144 | # is contrary to our usage.  Disable this feature. | 
|  | 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 146 | setopt NO_GLOB_SUBST | 
|  | 147 | else | 
|  | 148 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 149 | *posix*) : | 
|  | 150 | set -o posix ;; #( | 
|  | 151 | *) : | 
|  | 152 | ;; | 
|  | 153 | esac | 
|  | 154 | fi | 
|  | 155 | " | 
|  | 156 | as_required="as_fn_return () { (exit \$1); } | 
|  | 157 | as_fn_success () { as_fn_return 0; } | 
|  | 158 | as_fn_failure () { as_fn_return 1; } | 
|  | 159 | as_fn_ret_success () { return 0; } | 
|  | 160 | as_fn_ret_failure () { return 1; } | 
|  | 161 |  | 
|  | 162 | exitcode=0 | 
|  | 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 168 |  | 
|  | 169 | else | 
|  | 170 | exitcode=1; echo positional parameters were not saved. | 
|  | 171 | fi | 
|  | 172 | test x\$exitcode = x0 || exit 1" | 
|  | 173 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
|  | 177 | test \$(( 1 + 1 )) = 2 || exit 1" | 
|  | 178 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 179 | as_have_required=yes | 
|  | 180 | else | 
|  | 181 | as_have_required=no | 
|  | 182 | fi | 
|  | 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 184 |  | 
|  | 185 | else | 
|  | 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 187 | as_found=false | 
|  | 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 189 | do | 
|  | 190 | IFS=$as_save_IFS | 
|  | 191 | test -z "$as_dir" && as_dir=. | 
|  | 192 | as_found=: | 
|  | 193 | case $as_dir in #( | 
|  | 194 | /*) | 
|  | 195 | for as_base in sh bash ksh sh5; do | 
|  | 196 | # Try only shells that exist, to save several forks. | 
|  | 197 | as_shell=$as_dir/$as_base | 
|  | 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 200 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 202 | break 2 | 
|  | 203 | fi | 
|  | 204 | fi | 
|  | 205 | done;; | 
|  | 206 | esac | 
|  | 207 | as_found=false | 
|  | 208 | done | 
|  | 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 211 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 212 | fi; } | 
|  | 213 | IFS=$as_save_IFS | 
|  | 214 |  | 
|  | 215 |  | 
|  | 216 | if test "x$CONFIG_SHELL" != x; then : | 
|  | 217 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 218 | # neutralization value for shells without unset; and this also | 
|  | 219 | # works around shells that cannot unset nonexistent variables. | 
|  | 220 | BASH_ENV=/dev/null | 
|  | 221 | ENV=/dev/null | 
|  | 222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 223 | export CONFIG_SHELL | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 225 | fi | 
|  | 226 |  | 
|  | 227 | if test x$as_have_required = xno; then : | 
|  | 228 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 229 | $as_echo "$0: the shells that I found on your system." | 
|  | 230 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 231 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 232 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 233 | else | 
|  | 234 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
|  | 235 | $0: http://bugs.python.org/ about your system, including | 
|  | 236 | $0: any error possibly output before this message. Then | 
|  | 237 | $0: install a modern shell, or manually run the script | 
|  | 238 | $0: under such a shell if you do have one." | 
|  | 239 | fi | 
|  | 240 | exit 1 | 
|  | 241 | fi | 
|  | 242 | fi | 
|  | 243 | fi | 
|  | 244 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 245 | export SHELL | 
|  | 246 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 247 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 248 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 249 |  | 
|  | 250 | ## --------------------- ## | 
|  | 251 | ## M4sh Shell Functions. ## | 
|  | 252 | ## --------------------- ## | 
|  | 253 | # as_fn_unset VAR | 
|  | 254 | # --------------- | 
|  | 255 | # Portably unset VAR. | 
|  | 256 | as_fn_unset () | 
|  | 257 | { | 
|  | 258 | { eval $1=; unset $1;} | 
|  | 259 | } | 
|  | 260 | as_unset=as_fn_unset | 
|  | 261 |  | 
|  | 262 | # as_fn_set_status STATUS | 
|  | 263 | # ----------------------- | 
|  | 264 | # Set $? to STATUS, without forking. | 
|  | 265 | as_fn_set_status () | 
|  | 266 | { | 
|  | 267 | return $1 | 
|  | 268 | } # as_fn_set_status | 
|  | 269 |  | 
|  | 270 | # as_fn_exit STATUS | 
|  | 271 | # ----------------- | 
|  | 272 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 273 | as_fn_exit () | 
|  | 274 | { | 
|  | 275 | set +e | 
|  | 276 | as_fn_set_status $1 | 
|  | 277 | exit $1 | 
|  | 278 | } # as_fn_exit | 
|  | 279 |  | 
|  | 280 | # as_fn_mkdir_p | 
|  | 281 | # ------------- | 
|  | 282 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 283 | as_fn_mkdir_p () | 
|  | 284 | { | 
|  | 285 |  | 
|  | 286 | case $as_dir in #( | 
|  | 287 | -*) as_dir=./$as_dir;; | 
|  | 288 | esac | 
|  | 289 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 290 | as_dirs= | 
|  | 291 | while :; do | 
|  | 292 | case $as_dir in #( | 
|  | 293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 294 | *) as_qdir=$as_dir;; | 
|  | 295 | esac | 
|  | 296 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 297 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 299 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 300 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 302 | $as_echo X"$as_dir" | | 
|  | 303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 304 | s//\1/ | 
|  | 305 | q | 
|  | 306 | } | 
|  | 307 | /^X\(\/\/\)[^/].*/{ | 
|  | 308 | s//\1/ | 
|  | 309 | q | 
|  | 310 | } | 
|  | 311 | /^X\(\/\/\)$/{ | 
|  | 312 | s//\1/ | 
|  | 313 | q | 
|  | 314 | } | 
|  | 315 | /^X\(\/\).*/{ | 
|  | 316 | s//\1/ | 
|  | 317 | q | 
|  | 318 | } | 
|  | 319 | s/.*/./; q'` | 
|  | 320 | test -d "$as_dir" && break | 
|  | 321 | done | 
|  | 322 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 323 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 324 |  | 
|  | 325 |  | 
|  | 326 | } # as_fn_mkdir_p | 
|  | 327 | # as_fn_append VAR VALUE | 
|  | 328 | # ---------------------- | 
|  | 329 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 330 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 331 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 332 | # implementations. | 
|  | 333 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 334 | eval 'as_fn_append () | 
|  | 335 | { | 
|  | 336 | eval $1+=\$2 | 
|  | 337 | }' | 
|  | 338 | else | 
|  | 339 | as_fn_append () | 
|  | 340 | { | 
|  | 341 | eval $1=\$$1\$2 | 
|  | 342 | } | 
|  | 343 | fi # as_fn_append | 
|  | 344 |  | 
|  | 345 | # as_fn_arith ARG... | 
|  | 346 | # ------------------ | 
|  | 347 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 348 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 349 | # must be portable across $(()) and expr. | 
|  | 350 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 351 | eval 'as_fn_arith () | 
|  | 352 | { | 
|  | 353 | as_val=$(( $* )) | 
|  | 354 | }' | 
|  | 355 | else | 
|  | 356 | as_fn_arith () | 
|  | 357 | { | 
|  | 358 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 359 | } | 
|  | 360 | fi # as_fn_arith | 
|  | 361 |  | 
|  | 362 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 363 | # as_fn_error ERROR [LINENO LOG_FD] | 
|  | 364 | # --------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 365 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 366 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 367 | # script with status $?, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 368 | as_fn_error () | 
|  | 369 | { | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 370 | as_status=$?; test $as_status -eq 0 && as_status=1 | 
|  | 371 | if test "$3"; then | 
|  | 372 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 373 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 374 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 375 | $as_echo "$as_me: error: $1" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 376 | as_fn_exit $as_status | 
|  | 377 | } # as_fn_error | 
|  | 378 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 379 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 380 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 381 | as_expr=expr | 
|  | 382 | else | 
|  | 383 | as_expr=false | 
|  | 384 | fi | 
|  | 385 |  | 
|  | 386 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 387 | as_basename=basename | 
|  | 388 | else | 
|  | 389 | as_basename=false | 
|  | 390 | fi | 
|  | 391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 393 | as_dirname=dirname | 
|  | 394 | else | 
|  | 395 | as_dirname=false | 
|  | 396 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 397 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 398 | as_me=`$as_basename -- "$0" || | 
|  | 399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 400 | X"$0" : 'X\(//\)$' \| \ | 
|  | 401 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 402 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 403 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 404 | s//\1/ | 
|  | 405 | q | 
|  | 406 | } | 
|  | 407 | /^X\/\(\/\/\)$/{ | 
|  | 408 | s//\1/ | 
|  | 409 | q | 
|  | 410 | } | 
|  | 411 | /^X\/\(\/\).*/{ | 
|  | 412 | s//\1/ | 
|  | 413 | q | 
|  | 414 | } | 
|  | 415 | s/.*/./; q'` | 
|  | 416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | # Avoid depending upon Character Ranges. | 
|  | 418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 421 | as_cr_digits='0123456789' | 
|  | 422 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 423 |  | 
|  | 424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 426 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 427 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 428 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 429 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 430 | sed -n ' | 
|  | 431 | p | 
|  | 432 | /[$]LINENO/= | 
|  | 433 | ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 434 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 435 | s/[$]LINENO.*/&-/ | 
|  | 436 | t lineno | 
|  | 437 | b | 
|  | 438 | :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 | :loop | 
|  | 441 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 | s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 445 | chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 446 | { $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] | 447 |  | 
|  | 448 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 449 | # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 450 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 451 | . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | # Exit status is that of the last command. | 
|  | 453 | exit | 
|  | 454 | } | 
|  | 455 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 456 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 459 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 460 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 461 | xy)  ECHO_C='\c';; | 
|  | 462 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 463 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | esac;; | 
|  | 465 | *) | 
|  | 466 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 469 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 470 | if test -d conf$$.dir; then | 
|  | 471 | rm -f conf$$.dir/conf$$.file | 
|  | 472 | else | 
|  | 473 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 475 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 476 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 477 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 478 | as_ln_s='ln -s' | 
|  | 479 | # ... but there are two gotchas: | 
|  | 480 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 481 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 482 | # In both cases, we have to default to `cp -p'. | 
|  | 483 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 484 | as_ln_s='cp -p' | 
|  | 485 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 486 | as_ln_s=ln | 
|  | 487 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | else | 
|  | 491 | as_ln_s='cp -p' | 
|  | 492 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 493 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 494 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 496 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 497 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 498 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 499 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 500 | as_mkdir_p=false | 
|  | 501 | fi | 
|  | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | if test -x / >/dev/null 2>&1; then | 
|  | 504 | as_test_x='test -x' | 
|  | 505 | else | 
|  | 506 | if ls -dL / >/dev/null 2>&1; then | 
|  | 507 | as_ls_L_option=L | 
|  | 508 | else | 
|  | 509 | as_ls_L_option= | 
|  | 510 | fi | 
|  | 511 | as_test_x=' | 
|  | 512 | eval sh -c '\'' | 
|  | 513 | if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 514 | test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 515 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 516 | case $1 in #( | 
|  | 517 | -*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 519 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 520 | ???[sx]*):;;*)false;;esac;fi | 
|  | 521 | '\'' sh | 
|  | 522 | ' | 
|  | 523 | fi | 
|  | 524 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 525 |  | 
|  | 526 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 527 | 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] | 528 |  | 
|  | 529 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 530 | 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] | 531 |  | 
|  | 532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 533 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 534 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 |  | 
|  | 536 | # Name of the host. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 537 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | # so uname gets run too. | 
|  | 539 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 540 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 541 | # | 
|  | 542 | # Initializations. | 
|  | 543 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 545 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 547 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | cross_compiling=no | 
|  | 549 | subdirs= | 
|  | 550 | MFLAGS= | 
|  | 551 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 554 | PACKAGE_NAME='python' | 
|  | 555 | PACKAGE_TARNAME='python' | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='3.3' | 
|  | 557 | PACKAGE_STRING='python 3.3' | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 559 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 |  | 
|  | 561 | ac_unique_file="Include/object.h" | 
|  | 562 | # Factoring default headers for most tests. | 
|  | 563 | ac_includes_default="\ | 
|  | 564 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 565 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | # include <sys/types.h> | 
|  | 567 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 568 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # include <sys/stat.h> | 
|  | 570 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 571 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 572 | # include <stdlib.h> | 
|  | 573 | # include <stddef.h> | 
|  | 574 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 575 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | #  include <stdlib.h> | 
|  | 577 | # endif | 
|  | 578 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef HAVE_STRING_H | 
|  | 580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | #  include <memory.h> | 
|  | 582 | # endif | 
|  | 583 | # include <string.h> | 
|  | 584 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 585 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | # include <strings.h> | 
|  | 587 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 588 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 590 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 591 | #ifdef HAVE_STDINT_H | 
|  | 592 | # include <stdint.h> | 
|  | 593 | #endif | 
|  | 594 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 595 | # include <unistd.h> | 
|  | 596 | #endif" | 
|  | 597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 599 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 600 | THREADHEADERS | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 601 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 602 | LIBC | 
|  | 603 | LIBM | 
|  | 604 | HAVE_GETHOSTBYNAME | 
|  | 605 | HAVE_GETHOSTBYNAME_R | 
|  | 606 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 607 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 608 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 609 | LIBOBJS | 
|  | 610 | TRUE | 
|  | 611 | MACHDEP_OBJS | 
|  | 612 | DYNLOADFILE | 
|  | 613 | DLINCLDIR | 
|  | 614 | THREADOBJ | 
|  | 615 | LDLAST | 
|  | 616 | USE_THREAD_MODULE | 
|  | 617 | SIGNAL_OBJS | 
|  | 618 | USE_SIGNAL_MODULE | 
|  | 619 | LIBFFI_INCLUDEDIR | 
|  | 620 | PKG_CONFIG | 
|  | 621 | SHLIBS | 
|  | 622 | CFLAGSFORSHARED | 
|  | 623 | LINKFORSHARED | 
|  | 624 | CCSHARED | 
|  | 625 | BLDSHARED | 
|  | 626 | LDCXXSHARED | 
|  | 627 | LDSHARED | 
|  | 628 | SO | 
|  | 629 | LIBTOOL_CRUFT | 
|  | 630 | OTHER_LIBTOOL_OPT | 
|  | 631 | UNIVERSAL_ARCH_FLAGS | 
|  | 632 | BASECFLAGS | 
|  | 633 | OPT | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 634 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 635 | LN | 
|  | 636 | INSTALL_DATA | 
|  | 637 | INSTALL_SCRIPT | 
|  | 638 | INSTALL_PROGRAM | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 639 | HAS_PYTHON | 
|  | 640 | DISABLE_ASDLGEN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 641 | ARFLAGS | 
|  | 642 | AR | 
|  | 643 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 644 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 645 | GNULD | 
|  | 646 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 647 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 648 | RUNSHARED | 
|  | 649 | INSTSONAME | 
|  | 650 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 651 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | BLDLIBRARY | 
|  | 653 | DLLLIBRARY | 
|  | 654 | LDLIBRARY | 
|  | 655 | LIBRARY | 
|  | 656 | BUILDEXEEXT | 
|  | 657 | EGREP | 
|  | 658 | GREP | 
|  | 659 | CPP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 660 | NO_AS_NEEDED | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 661 | MAINCC | 
|  | 662 | CXX | 
|  | 663 | OBJEXT | 
|  | 664 | EXEEXT | 
|  | 665 | ac_ct_CC | 
|  | 666 | CPPFLAGS | 
|  | 667 | LDFLAGS | 
|  | 668 | CFLAGS | 
|  | 669 | CC | 
|  | 670 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 671 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 672 | SGI_ABI | 
|  | 673 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 674 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 675 | FRAMEWORKUNIXTOOLSPREFIX | 
|  | 676 | FRAMEWORKALTINSTALLLAST | 
|  | 677 | FRAMEWORKALTINSTALLFIRST | 
|  | 678 | FRAMEWORKINSTALLLAST | 
|  | 679 | FRAMEWORKINSTALLFIRST | 
|  | 680 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 681 | PYTHONFRAMEWORKPREFIX | 
|  | 682 | PYTHONFRAMEWORKDIR | 
|  | 683 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 684 | PYTHONFRAMEWORK | 
|  | 685 | LIPO_32BIT_FLAGS | 
|  | 686 | ARCH_RUN_32BIT | 
|  | 687 | UNIVERSALSDK | 
|  | 688 | CONFIG_ARGS | 
|  | 689 | SOVERSION | 
|  | 690 | VERSION | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame^] | 691 | HAS_HG | 
|  | 692 | HGBRANCH | 
|  | 693 | HGTAG | 
|  | 694 | HGVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | target_alias | 
|  | 696 | host_alias | 
|  | 697 | build_alias | 
|  | 698 | LIBS | 
|  | 699 | ECHO_T | 
|  | 700 | ECHO_N | 
|  | 701 | ECHO_C | 
|  | 702 | DEFS | 
|  | 703 | mandir | 
|  | 704 | localedir | 
|  | 705 | libdir | 
|  | 706 | psdir | 
|  | 707 | pdfdir | 
|  | 708 | dvidir | 
|  | 709 | htmldir | 
|  | 710 | infodir | 
|  | 711 | docdir | 
|  | 712 | oldincludedir | 
|  | 713 | includedir | 
|  | 714 | localstatedir | 
|  | 715 | sharedstatedir | 
|  | 716 | sysconfdir | 
|  | 717 | datadir | 
|  | 718 | datarootdir | 
|  | 719 | libexecdir | 
|  | 720 | sbindir | 
|  | 721 | bindir | 
|  | 722 | program_transform_name | 
|  | 723 | prefix | 
|  | 724 | exec_prefix | 
|  | 725 | PACKAGE_URL | 
|  | 726 | PACKAGE_BUGREPORT | 
|  | 727 | PACKAGE_STRING | 
|  | 728 | PACKAGE_VERSION | 
|  | 729 | PACKAGE_TARNAME | 
|  | 730 | PACKAGE_NAME | 
|  | 731 | PATH_SEPARATOR | 
|  | 732 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 733 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 734 | ac_user_opts=' | 
|  | 735 | enable_option_checking | 
|  | 736 | enable_universalsdk | 
|  | 737 | with_universal_archs | 
|  | 738 | with_framework_name | 
|  | 739 | enable_framework | 
|  | 740 | with_gcc | 
|  | 741 | with_cxx_main | 
|  | 742 | with_suffix | 
|  | 743 | enable_shared | 
|  | 744 | enable_profiling | 
|  | 745 | with_pydebug | 
|  | 746 | with_libs | 
|  | 747 | with_system_expat | 
|  | 748 | with_system_ffi | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 749 | enable_loadable_sqlite_extensions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 750 | with_dbmliborder | 
|  | 751 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 752 | with_threads | 
|  | 753 | with_thread | 
|  | 754 | enable_ipv6 | 
|  | 755 | with_doc_strings | 
|  | 756 | with_tsc | 
|  | 757 | with_pymalloc | 
|  | 758 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 759 | with_fpectl | 
|  | 760 | with_libm | 
|  | 761 | with_libc | 
|  | 762 | enable_big_digits | 
|  | 763 | with_wide_unicode | 
|  | 764 | with_computed_gotos | 
|  | 765 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 766 | ac_precious_vars='build_alias | 
|  | 767 | host_alias | 
|  | 768 | target_alias | 
|  | 769 | CC | 
|  | 770 | CFLAGS | 
|  | 771 | LDFLAGS | 
|  | 772 | LIBS | 
|  | 773 | CPPFLAGS | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 774 | CPP' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 775 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 776 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 777 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 778 | ac_init_help= | 
|  | 779 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 780 | ac_unrecognized_opts= | 
|  | 781 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 782 | # The variables have the same names as the options, with | 
|  | 783 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 784 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 785 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 786 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | no_recursion= | 
|  | 788 | prefix=NONE | 
|  | 789 | program_prefix=NONE | 
|  | 790 | program_suffix=NONE | 
|  | 791 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 792 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 793 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 795 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | x_includes=NONE | 
|  | 797 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 798 |  | 
|  | 799 | # Installation directory options. | 
|  | 800 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 801 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 802 | # by default will actually change. | 
|  | 803 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 804 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 805 | bindir='${exec_prefix}/bin' | 
|  | 806 | sbindir='${exec_prefix}/sbin' | 
|  | 807 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 808 | datarootdir='${prefix}/share' | 
|  | 809 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 810 | sysconfdir='${prefix}/etc' | 
|  | 811 | sharedstatedir='${prefix}/com' | 
|  | 812 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 813 | includedir='${prefix}/include' | 
|  | 814 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 815 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 816 | infodir='${datarootdir}/info' | 
|  | 817 | htmldir='${docdir}' | 
|  | 818 | dvidir='${docdir}' | 
|  | 819 | pdfdir='${docdir}' | 
|  | 820 | psdir='${docdir}' | 
|  | 821 | libdir='${exec_prefix}/lib' | 
|  | 822 | localedir='${datarootdir}/locale' | 
|  | 823 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 824 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 825 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 826 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 828 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | # If the previous option needs an argument, assign it. | 
|  | 830 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 831 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 832 | ac_prev= | 
|  | 833 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 834 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 836 | case $ac_option in | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 837 | *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 838 | *)	ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 839 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 841 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 842 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 843 | case $ac_dashdash$ac_option in | 
|  | 844 | --) | 
|  | 845 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 846 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 847 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 848 | ac_prev=bindir ;; | 
|  | 849 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 850 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 851 |  | 
|  | 852 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 854 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 855 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 858 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 859 | ac_prev=cache_file ;; | 
|  | 860 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 861 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | cache_file=$ac_optarg ;; | 
|  | 863 |  | 
|  | 864 | --config-cache | -C) | 
|  | 865 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 867 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 868 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 869 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 870 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 871 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 872 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 873 | | --dataroo | --dataro | --datar) | 
|  | 874 | ac_prev=datarootdir ;; | 
|  | 875 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 876 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 877 | datarootdir=$ac_optarg ;; | 
|  | 878 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 880 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 881 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 882 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 883 | as_fn_error "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 884 | ac_useropt_orig=$ac_useropt | 
|  | 885 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 886 | case $ac_user_opts in | 
|  | 887 | *" | 
|  | 888 | "enable_$ac_useropt" | 
|  | 889 | "*) ;; | 
|  | 890 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 891 | ac_unrecognized_sep=', ';; | 
|  | 892 | esac | 
|  | 893 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 894 |  | 
|  | 895 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 896 | ac_prev=docdir ;; | 
|  | 897 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 898 | docdir=$ac_optarg ;; | 
|  | 899 |  | 
|  | 900 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 901 | ac_prev=dvidir ;; | 
|  | 902 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 903 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 |  | 
|  | 905 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 906 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 907 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 908 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 909 | as_fn_error "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 910 | ac_useropt_orig=$ac_useropt | 
|  | 911 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 912 | case $ac_user_opts in | 
|  | 913 | *" | 
|  | 914 | "enable_$ac_useropt" | 
|  | 915 | "*) ;; | 
|  | 916 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 917 | ac_unrecognized_sep=', ';; | 
|  | 918 | esac | 
|  | 919 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 920 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 921 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 922 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 923 | | --exec | --exe | --ex) | 
|  | 924 | ac_prev=exec_prefix ;; | 
|  | 925 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 926 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 927 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 929 |  | 
|  | 930 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 931 | # Obsolete; use --with-gas. | 
|  | 932 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 933 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 934 | -help | --help | --hel | --he | -h) | 
|  | 935 | ac_init_help=long ;; | 
|  | 936 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 937 | ac_init_help=recursive ;; | 
|  | 938 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 939 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 |  | 
|  | 941 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 942 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 943 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 944 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 945 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 946 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 947 | ac_prev=htmldir ;; | 
|  | 948 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 949 | | --ht=*) | 
|  | 950 | htmldir=$ac_optarg ;; | 
|  | 951 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 952 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 953 | | --includ | --inclu | --incl | --inc) | 
|  | 954 | ac_prev=includedir ;; | 
|  | 955 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 956 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 958 |  | 
|  | 959 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 960 | ac_prev=infodir ;; | 
|  | 961 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 963 |  | 
|  | 964 | -libdir | --libdir | --libdi | --libd) | 
|  | 965 | ac_prev=libdir ;; | 
|  | 966 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 967 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 968 |  | 
|  | 969 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 970 | | --libexe | --libex | --libe) | 
|  | 971 | ac_prev=libexecdir ;; | 
|  | 972 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 973 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 976 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 977 | ac_prev=localedir ;; | 
|  | 978 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 979 | localedir=$ac_optarg ;; | 
|  | 980 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 981 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 982 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 983 | ac_prev=localstatedir ;; | 
|  | 984 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 985 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 987 |  | 
|  | 988 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 989 | ac_prev=mandir ;; | 
|  | 990 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 993 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | # Obsolete; use --without-fp. | 
|  | 995 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 996 |  | 
|  | 997 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 999 | no_create=yes ;; | 
|  | 1000 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1002 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1003 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1004 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1005 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1006 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1007 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1008 | ac_prev=oldincludedir ;; | 
|  | 1009 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1010 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1011 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1012 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1013 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1015 | ac_prev=prefix ;; | 
|  | 1016 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1017 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
|  | 1019 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1020 | | --program-pre | --program-pr | --program-p) | 
|  | 1021 | ac_prev=program_prefix ;; | 
|  | 1022 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1023 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |  | 
|  | 1026 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1027 | | --program-suf | --program-su | --program-s) | 
|  | 1028 | ac_prev=program_suffix ;; | 
|  | 1029 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1030 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1032 |  | 
|  | 1033 | -program-transform-name | --program-transform-name \ | 
|  | 1034 | | --program-transform-nam | --program-transform-na \ | 
|  | 1035 | | --program-transform-n | --program-transform- \ | 
|  | 1036 | | --program-transform | --program-transfor \ | 
|  | 1037 | | --program-transfo | --program-transf \ | 
|  | 1038 | | --program-trans | --program-tran \ | 
|  | 1039 | | --progr-tra | --program-tr | --program-t) | 
|  | 1040 | ac_prev=program_transform_name ;; | 
|  | 1041 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1042 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1043 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1044 | | --program-transform=* | --program-transfor=* \ | 
|  | 1045 | | --program-transfo=* | --program-transf=* \ | 
|  | 1046 | | --program-trans=* | --program-tran=* \ | 
|  | 1047 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1050 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1051 | ac_prev=pdfdir ;; | 
|  | 1052 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1053 | pdfdir=$ac_optarg ;; | 
|  | 1054 |  | 
|  | 1055 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1056 | ac_prev=psdir ;; | 
|  | 1057 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1058 | psdir=$ac_optarg ;; | 
|  | 1059 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1061 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1062 | silent=yes ;; | 
|  | 1063 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1064 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1065 | ac_prev=sbindir ;; | 
|  | 1066 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1067 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1069 |  | 
|  | 1070 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1071 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1072 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1073 | | --sha | --sh) | 
|  | 1074 | ac_prev=sharedstatedir ;; | 
|  | 1075 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1076 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1077 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1078 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1080 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | -site | --site | --sit) | 
|  | 1082 | ac_prev=site ;; | 
|  | 1083 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1084 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1085 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1087 | ac_prev=srcdir ;; | 
|  | 1088 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1089 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1090 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1091 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1092 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1093 | ac_prev=sysconfdir ;; | 
|  | 1094 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1095 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1097 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 |  | 
|  | 1103 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1104 | verbose=yes ;; | 
|  | 1105 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1107 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1108 |  | 
|  | 1109 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1110 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1111 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1112 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1113 | as_fn_error "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1114 | ac_useropt_orig=$ac_useropt | 
|  | 1115 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1116 | case $ac_user_opts in | 
|  | 1117 | *" | 
|  | 1118 | "with_$ac_useropt" | 
|  | 1119 | "*) ;; | 
|  | 1120 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1121 | ac_unrecognized_sep=', ';; | 
|  | 1122 | esac | 
|  | 1123 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 |  | 
|  | 1125 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1126 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1128 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1129 | as_fn_error "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1130 | ac_useropt_orig=$ac_useropt | 
|  | 1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1132 | case $ac_user_opts in | 
|  | 1133 | *" | 
|  | 1134 | "with_$ac_useropt" | 
|  | 1135 | "*) ;; | 
|  | 1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1137 | ac_unrecognized_sep=', ';; | 
|  | 1138 | esac | 
|  | 1139 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1141 | --x) | 
|  | 1142 | # Obsolete; use --with-x. | 
|  | 1143 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 |  | 
|  | 1145 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1146 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1147 | ac_prev=x_includes ;; | 
|  | 1148 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1149 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1151 |  | 
|  | 1152 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1153 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1154 | ac_prev=x_libraries ;; | 
|  | 1155 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1156 | | --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] | 1157 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1158 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1159 | -*) as_fn_error "unrecognized option: \`$ac_option' | 
|  | 1160 | Try \`$0 --help' for more information." | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 | ;; | 
|  | 1162 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | *=*) | 
|  | 1164 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1165 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1166 | case $ac_envvar in #( | 
|  | 1167 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1168 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1169 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1170 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | export $ac_envvar ;; | 
|  | 1172 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1173 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1175 | $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] | 1176 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1177 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1178 | : ${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] | 1179 | ;; | 
|  | 1180 |  | 
|  | 1181 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1182 | done | 
|  | 1183 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1186 | as_fn_error "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 | fi | 
|  | 1188 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1189 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1190 | case $enable_option_checking in | 
|  | 1191 | no) ;; | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1192 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1193 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1194 | esac | 
|  | 1195 | fi | 
|  | 1196 |  | 
|  | 1197 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1198 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1199 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1200 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1201 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1202 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1203 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 | # Remove trailing slashes. | 
|  | 1205 | case $ac_val in | 
|  | 1206 | */ ) | 
|  | 1207 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1208 | eval $ac_var=\$ac_val;; | 
|  | 1209 | esac | 
|  | 1210 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1211 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1212 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1213 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | esac | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1215 | 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] | 1216 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1218 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1219 | # used to hold the argument of --host etc. | 
|  | 1220 | # FIXME: To remove some day. | 
|  | 1221 | build=$build_alias | 
|  | 1222 | host=$host_alias | 
|  | 1223 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1224 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1225 | # FIXME: To remove some day. | 
|  | 1226 | if test "x$host_alias" != x; then | 
|  | 1227 | if test "x$build_alias" = x; then | 
|  | 1228 | cross_compiling=maybe | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1229 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
|  | 1230 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1232 | cross_compiling=yes | 
|  | 1233 | fi | 
|  | 1234 | fi | 
|  | 1235 |  | 
|  | 1236 | ac_tool_prefix= | 
|  | 1237 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1238 |  | 
|  | 1239 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1240 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1241 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1242 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1243 | ac_ls_di=`ls -di .` && | 
|  | 1244 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1245 | as_fn_error "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1246 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1247 | as_fn_error "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1248 |  | 
|  | 1249 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1250 | # Find the source files, if location was not specified. | 
|  | 1251 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1252 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1253 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1255 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1256 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1257 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1258 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1259 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1260 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1261 | s//\1/ | 
|  | 1262 | q | 
|  | 1263 | } | 
|  | 1264 | /^X\(\/\/\)[^/].*/{ | 
|  | 1265 | s//\1/ | 
|  | 1266 | q | 
|  | 1267 | } | 
|  | 1268 | /^X\(\/\/\)$/{ | 
|  | 1269 | s//\1/ | 
|  | 1270 | q | 
|  | 1271 | } | 
|  | 1272 | /^X\(\/\).*/{ | 
|  | 1273 | s//\1/ | 
|  | 1274 | q | 
|  | 1275 | } | 
|  | 1276 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1277 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1278 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | srcdir=.. | 
|  | 1280 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | else | 
|  | 1282 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1283 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1284 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1285 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1286 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1287 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1288 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1289 | ac_abs_confdir=`( | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1290 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1291 | pwd)` | 
|  | 1292 | # When building in place, set srcdir=. | 
|  | 1293 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1294 | srcdir=. | 
|  | 1295 | fi | 
|  | 1296 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1297 | # Double slashes in file names in object file debugging info | 
|  | 1298 | # mess up M-x gdb in Emacs. | 
|  | 1299 | case $srcdir in | 
|  | 1300 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1301 | esac | 
|  | 1302 | for ac_var in $ac_precious_vars; do | 
|  | 1303 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1304 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1305 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1306 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1307 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | # | 
|  | 1310 | # Report the --help message. | 
|  | 1311 | # | 
|  | 1312 | if test "$ac_init_help" = "long"; then | 
|  | 1313 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1314 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1315 | cat <<_ACEOF | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1316 | \`configure' configures python 3.3 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 |  | 
|  | 1318 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1319 |  | 
|  | 1320 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1321 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1322 |  | 
|  | 1323 | Defaults for the options are specified in brackets. | 
|  | 1324 |  | 
|  | 1325 | Configuration: | 
|  | 1326 | -h, --help              display this help and exit | 
|  | 1327 | --help=short        display options specific to this package | 
|  | 1328 | --help=recursive    display the short help of all the included packages | 
|  | 1329 | -V, --version           display version information and exit | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1330 | -q, --quiet, --silent   do not print \`checking...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1331 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1332 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1333 | -n, --no-create         do not create output files | 
|  | 1334 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1335 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | Installation directories: | 
|  | 1337 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1338 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1339 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1340 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 |  | 
|  | 1342 | By default, \`make install' will install all the files in | 
|  | 1343 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1344 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1345 | for instance \`--prefix=\$HOME'. | 
|  | 1346 |  | 
|  | 1347 | For better control, use the options below. | 
|  | 1348 |  | 
|  | 1349 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1350 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1351 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1352 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1353 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1354 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1355 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1356 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1357 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1358 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1359 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1360 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1361 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1362 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1363 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1364 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1365 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1366 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1367 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1368 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | _ACEOF | 
|  | 1370 |  | 
|  | 1371 | cat <<\_ACEOF | 
|  | 1372 | _ACEOF | 
|  | 1373 | fi | 
|  | 1374 |  | 
|  | 1375 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1376 | case $ac_init_help in | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1377 | short | recursive ) echo "Configuration of python 3.3:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1378 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1379 | cat <<\_ACEOF | 
|  | 1380 |  | 
|  | 1381 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1382 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1384 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1385 | --enable-universalsdk[=SDKDIR] | 
| Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1386 | Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1387 | --enable-framework[=INSTALLDIR] | 
|  | 1388 | Build (MacOSX|Darwin) framework | 
|  | 1389 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1390 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1391 | --enable-loadable-sqlite-extensions | 
|  | 1392 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1393 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1394 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1395 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1396 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 |  | 
|  | 1398 | Optional Packages: | 
|  | 1399 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1400 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1401 | --with-universal-archs=ARCH | 
|  | 1402 | select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1403 | "64-bit", "3-way", "intel" or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1404 | --with-framework-name=FRAMEWORK | 
|  | 1405 | specify an alternate name of the framework built | 
|  | 1406 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1407 | --without-gcc           never use gcc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1408 | --with-cxx-main=<compiler> | 
|  | 1409 | compile main() and link python executable with C++ | 
|  | 1410 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1411 | --with-suffix=.exe      set executable suffix | 
|  | 1412 | --with-pydebug          build with Py_DEBUG defined | 
|  | 1413 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1414 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1415 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1416 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1417 | --with-dbmliborder=db1:db2:... | 
|  | 1418 | order to check db backends for dbm. Valid value is a | 
|  | 1419 | colon separated string with the backend names | 
|  | 1420 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1421 | --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1422 | --with(out)-threads[=DIRECTORY] | 
|  | 1423 | disable/enable thread support | 
|  | 1424 | --with(out)-thread[=DIRECTORY] | 
|  | 1425 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1426 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1427 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1428 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1429 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1430 | --with-fpectl           enable SIGFPE catching | 
|  | 1431 | --with-libm=STRING      math library | 
|  | 1432 | --with-libc=STRING      C library | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1433 | --with-wide-unicode     Use 4-byte Unicode characters (default is 2 bytes) | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1434 | --with(out)-computed-gotos | 
|  | 1435 | Use computed gotos in evaluation loop (enabled by | 
|  | 1436 | default on supported compilers) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1437 |  | 
|  | 1438 | Some influential environment variables: | 
|  | 1439 | CC          C compiler command | 
|  | 1440 | CFLAGS      C compiler flags | 
|  | 1441 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1442 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1443 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1444 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1445 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | CPP         C preprocessor | 
|  | 1447 |  | 
|  | 1448 | Use these variables to override the choices made by `configure' or to help | 
|  | 1449 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1450 |  | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1451 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1453 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | fi | 
|  | 1455 |  | 
|  | 1456 | if test "$ac_init_help" = "recursive"; then | 
|  | 1457 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1459 | test -d "$ac_dir" || | 
|  | 1460 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1461 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | ac_builddir=. | 
|  | 1463 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1464 | case "$ac_dir" in | 
|  | 1465 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1466 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1467 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1468 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1469 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1470 | case $ac_top_builddir_sub in | 
|  | 1471 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1472 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1473 | esac ;; | 
|  | 1474 | esac | 
|  | 1475 | ac_abs_top_builddir=$ac_pwd | 
|  | 1476 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1477 | # for backward compatibility: | 
|  | 1478 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1479 |  | 
|  | 1480 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1481 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1483 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1484 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1485 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1487 | ac_top_srcdir=$srcdir | 
|  | 1488 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1489 | *) # Relative name. | 
|  | 1490 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1491 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1492 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1493 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1494 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1495 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1496 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1497 | # Check for guested configure. | 
|  | 1498 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1499 | echo && | 
|  | 1500 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1501 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1502 | echo && | 
|  | 1503 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1505 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1506 | fi || ac_status=$? | 
|  | 1507 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | done | 
|  | 1509 | fi | 
|  | 1510 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1511 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | if $ac_init_version; then | 
|  | 1513 | cat <<\_ACEOF | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1514 | python configure 3.3 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1515 | generated by GNU Autoconf 2.65 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1517 | Copyright (C) 2009 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | This configure script is free software; the Free Software Foundation | 
|  | 1519 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1520 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1521 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1523 |  | 
|  | 1524 | ## ------------------------ ## | 
|  | 1525 | ## Autoconf initialization. ## | 
|  | 1526 | ## ------------------------ ## | 
|  | 1527 |  | 
|  | 1528 | # ac_fn_c_try_compile LINENO | 
|  | 1529 | # -------------------------- | 
|  | 1530 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1531 | ac_fn_c_try_compile () | 
|  | 1532 | { | 
|  | 1533 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1534 | rm -f conftest.$ac_objext | 
|  | 1535 | if { { ac_try="$ac_compile" | 
|  | 1536 | case "(($ac_try" in | 
|  | 1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1538 | *) ac_try_echo=$ac_try;; | 
|  | 1539 | esac | 
|  | 1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1541 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1542 | (eval "$ac_compile") 2>conftest.err | 
|  | 1543 | ac_status=$? | 
|  | 1544 | if test -s conftest.err; then | 
|  | 1545 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1546 | cat conftest.er1 >&5 | 
|  | 1547 | mv -f conftest.er1 conftest.err | 
|  | 1548 | fi | 
|  | 1549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1550 | test $ac_status = 0; } && { | 
|  | 1551 | test -z "$ac_c_werror_flag" || | 
|  | 1552 | test ! -s conftest.err | 
|  | 1553 | } && test -s conftest.$ac_objext; then : | 
|  | 1554 | ac_retval=0 | 
|  | 1555 | else | 
|  | 1556 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1557 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1558 |  | 
|  | 1559 | ac_retval=1 | 
|  | 1560 | fi | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1561 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1562 | as_fn_set_status $ac_retval | 
|  | 1563 |  | 
|  | 1564 | } # ac_fn_c_try_compile | 
|  | 1565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1566 | # ac_fn_c_try_link LINENO | 
|  | 1567 | # ----------------------- | 
|  | 1568 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1569 | ac_fn_c_try_link () | 
|  | 1570 | { | 
|  | 1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1572 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1573 | if { { ac_try="$ac_link" | 
|  | 1574 | case "(($ac_try" in | 
|  | 1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1576 | *) ac_try_echo=$ac_try;; | 
|  | 1577 | esac | 
|  | 1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1579 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1580 | (eval "$ac_link") 2>conftest.err | 
|  | 1581 | ac_status=$? | 
|  | 1582 | if test -s conftest.err; then | 
|  | 1583 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1584 | cat conftest.er1 >&5 | 
|  | 1585 | mv -f conftest.er1 conftest.err | 
|  | 1586 | fi | 
|  | 1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1588 | test $ac_status = 0; } && { | 
|  | 1589 | test -z "$ac_c_werror_flag" || | 
|  | 1590 | test ! -s conftest.err | 
|  | 1591 | } && test -s conftest$ac_exeext && { | 
|  | 1592 | test "$cross_compiling" = yes || | 
|  | 1593 | $as_test_x conftest$ac_exeext | 
|  | 1594 | }; then : | 
|  | 1595 | ac_retval=0 | 
|  | 1596 | else | 
|  | 1597 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1599 |  | 
|  | 1600 | ac_retval=1 | 
|  | 1601 | fi | 
|  | 1602 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1603 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1604 | # interfere with the next link command; also delete a directory that is | 
|  | 1605 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1606 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1607 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1608 | as_fn_set_status $ac_retval | 
|  | 1609 |  | 
|  | 1610 | } # ac_fn_c_try_link | 
|  | 1611 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1612 | # ac_fn_c_try_cpp LINENO | 
|  | 1613 | # ---------------------- | 
|  | 1614 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1615 | ac_fn_c_try_cpp () | 
|  | 1616 | { | 
|  | 1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1618 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1619 | case "(($ac_try" in | 
|  | 1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1621 | *) ac_try_echo=$ac_try;; | 
|  | 1622 | esac | 
|  | 1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1624 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1625 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1626 | ac_status=$? | 
|  | 1627 | if test -s conftest.err; then | 
|  | 1628 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1629 | cat conftest.er1 >&5 | 
|  | 1630 | mv -f conftest.er1 conftest.err | 
|  | 1631 | fi | 
|  | 1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1633 | test $ac_status = 0; } >/dev/null && { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1634 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1635 | test ! -s conftest.err | 
|  | 1636 | }; then : | 
|  | 1637 | ac_retval=0 | 
|  | 1638 | else | 
|  | 1639 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1640 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1641 |  | 
|  | 1642 | ac_retval=1 | 
|  | 1643 | fi | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1644 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1645 | as_fn_set_status $ac_retval | 
|  | 1646 |  | 
|  | 1647 | } # ac_fn_c_try_cpp | 
|  | 1648 |  | 
|  | 1649 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1650 | # ------------------------------------------------------- | 
|  | 1651 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1652 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1653 | # accordingly. | 
|  | 1654 | ac_fn_c_check_header_mongrel () | 
|  | 1655 | { | 
|  | 1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1657 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1659 | $as_echo_n "checking for $2... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1660 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1661 | $as_echo_n "(cached) " >&6 | 
|  | 1662 | fi | 
|  | 1663 | eval ac_res=\$$3 | 
|  | 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1665 | $as_echo "$ac_res" >&6; } | 
|  | 1666 | else | 
|  | 1667 | # Is the header compilable? | 
|  | 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1669 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1671 | /* end confdefs.h.  */ | 
|  | 1672 | $4 | 
|  | 1673 | #include <$2> | 
|  | 1674 | _ACEOF | 
|  | 1675 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1676 | ac_header_compiler=yes | 
|  | 1677 | else | 
|  | 1678 | ac_header_compiler=no | 
|  | 1679 | fi | 
|  | 1680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1682 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1683 |  | 
|  | 1684 | # Is the header present? | 
|  | 1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1686 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1688 | /* end confdefs.h.  */ | 
|  | 1689 | #include <$2> | 
|  | 1690 | _ACEOF | 
|  | 1691 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1692 | ac_header_preproc=yes | 
|  | 1693 | else | 
|  | 1694 | ac_header_preproc=no | 
|  | 1695 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1696 | rm -f conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1698 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1699 |  | 
|  | 1700 | # So?  What about this header? | 
|  | 1701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1702 | yes:no: ) | 
|  | 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1704 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1706 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1707 | ;; | 
|  | 1708 | no:yes:* ) | 
|  | 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1710 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1712 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1714 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1716 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1718 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1719 | ( cat <<\_ASBOX | 
|  | 1720 | ## -------------------------------------- ## | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1721 | ## Report this to http://bugs.python.org/ ## | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1722 | ## -------------------------------------- ## | 
|  | 1723 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1724 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1725 | ;; | 
|  | 1726 | esac | 
|  | 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1728 | $as_echo_n "checking for $2... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1729 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1730 | $as_echo_n "(cached) " >&6 | 
|  | 1731 | else | 
|  | 1732 | eval "$3=\$ac_header_compiler" | 
|  | 1733 | fi | 
|  | 1734 | eval ac_res=\$$3 | 
|  | 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1736 | $as_echo "$ac_res" >&6; } | 
|  | 1737 | fi | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1738 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1739 |  | 
|  | 1740 | } # ac_fn_c_check_header_mongrel | 
|  | 1741 |  | 
|  | 1742 | # ac_fn_c_try_run LINENO | 
|  | 1743 | # ---------------------- | 
|  | 1744 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1745 | # that executables *can* be run. | 
|  | 1746 | ac_fn_c_try_run () | 
|  | 1747 | { | 
|  | 1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1749 | if { { ac_try="$ac_link" | 
|  | 1750 | case "(($ac_try" in | 
|  | 1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1752 | *) ac_try_echo=$ac_try;; | 
|  | 1753 | esac | 
|  | 1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1755 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1756 | (eval "$ac_link") 2>&5 | 
|  | 1757 | ac_status=$? | 
|  | 1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1759 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1760 | { { case "(($ac_try" in | 
|  | 1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1762 | *) ac_try_echo=$ac_try;; | 
|  | 1763 | esac | 
|  | 1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1765 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1766 | (eval "$ac_try") 2>&5 | 
|  | 1767 | ac_status=$? | 
|  | 1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1769 | test $ac_status = 0; }; }; then : | 
|  | 1770 | ac_retval=0 | 
|  | 1771 | else | 
|  | 1772 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1773 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1774 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1775 |  | 
|  | 1776 | ac_retval=$ac_status | 
|  | 1777 | fi | 
|  | 1778 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1779 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1780 | as_fn_set_status $ac_retval | 
|  | 1781 |  | 
|  | 1782 | } # ac_fn_c_try_run | 
|  | 1783 |  | 
|  | 1784 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1785 | # ------------------------------------------------------- | 
|  | 1786 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1787 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1788 | ac_fn_c_check_header_compile () | 
|  | 1789 | { | 
|  | 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1792 | $as_echo_n "checking for $2... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1793 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1794 | $as_echo_n "(cached) " >&6 | 
|  | 1795 | else | 
|  | 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1797 | /* end confdefs.h.  */ | 
|  | 1798 | $4 | 
|  | 1799 | #include <$2> | 
|  | 1800 | _ACEOF | 
|  | 1801 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1802 | eval "$3=yes" | 
|  | 1803 | else | 
|  | 1804 | eval "$3=no" | 
|  | 1805 | fi | 
|  | 1806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1807 | fi | 
|  | 1808 | eval ac_res=\$$3 | 
|  | 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1810 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1811 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1812 |  | 
|  | 1813 | } # ac_fn_c_check_header_compile | 
|  | 1814 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1815 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1816 | # ------------------------------------------- | 
|  | 1817 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1818 | # variable VAR accordingly. | 
|  | 1819 | ac_fn_c_check_type () | 
|  | 1820 | { | 
|  | 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1823 | $as_echo_n "checking for $2... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1824 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1825 | $as_echo_n "(cached) " >&6 | 
|  | 1826 | else | 
|  | 1827 | eval "$3=no" | 
|  | 1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1829 | /* end confdefs.h.  */ | 
|  | 1830 | $4 | 
|  | 1831 | int | 
|  | 1832 | main () | 
|  | 1833 | { | 
|  | 1834 | if (sizeof ($2)) | 
|  | 1835 | return 0; | 
|  | 1836 | ; | 
|  | 1837 | return 0; | 
|  | 1838 | } | 
|  | 1839 | _ACEOF | 
|  | 1840 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1842 | /* end confdefs.h.  */ | 
|  | 1843 | $4 | 
|  | 1844 | int | 
|  | 1845 | main () | 
|  | 1846 | { | 
|  | 1847 | if (sizeof (($2))) | 
|  | 1848 | return 0; | 
|  | 1849 | ; | 
|  | 1850 | return 0; | 
|  | 1851 | } | 
|  | 1852 | _ACEOF | 
|  | 1853 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1854 |  | 
|  | 1855 | else | 
|  | 1856 | eval "$3=yes" | 
|  | 1857 | fi | 
|  | 1858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1859 | fi | 
|  | 1860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1861 | fi | 
|  | 1862 | eval ac_res=\$$3 | 
|  | 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1864 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1865 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1866 |  | 
|  | 1867 | } # ac_fn_c_check_type | 
|  | 1868 |  | 
|  | 1869 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
|  | 1870 | # ------------------------------------ | 
|  | 1871 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
|  | 1872 | # accordingly. | 
|  | 1873 | ac_fn_c_find_uintX_t () | 
|  | 1874 | { | 
|  | 1875 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
|  | 1877 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1878 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1879 | $as_echo_n "(cached) " >&6 | 
|  | 1880 | else | 
|  | 1881 | eval "$3=no" | 
|  | 1882 | # Order is important - never check a type that is potentially smaller | 
|  | 1883 | # than half of the expected target width. | 
|  | 1884 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
|  | 1885 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
|  | 1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1887 | /* end confdefs.h.  */ | 
|  | 1888 | $ac_includes_default | 
|  | 1889 | int | 
|  | 1890 | main () | 
|  | 1891 | { | 
|  | 1892 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
|  | 1893 | test_array [0] = 0 | 
|  | 1894 |  | 
|  | 1895 | ; | 
|  | 1896 | return 0; | 
|  | 1897 | } | 
|  | 1898 | _ACEOF | 
|  | 1899 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1900 | case $ac_type in #( | 
|  | 1901 | uint$2_t) : | 
|  | 1902 | eval "$3=yes" ;; #( | 
|  | 1903 | *) : | 
|  | 1904 | eval "$3=\$ac_type" ;; | 
|  | 1905 | esac | 
|  | 1906 | fi | 
|  | 1907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1908 | eval as_val=\$$3 | 
|  | 1909 | if test "x$as_val" = x""no; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1910 |  | 
|  | 1911 | else | 
|  | 1912 | break | 
|  | 1913 | fi | 
|  | 1914 | done | 
|  | 1915 | fi | 
|  | 1916 | eval ac_res=\$$3 | 
|  | 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1918 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1919 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 |  | 
|  | 1921 | } # ac_fn_c_find_uintX_t | 
|  | 1922 |  | 
|  | 1923 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
|  | 1924 | # ----------------------------------- | 
|  | 1925 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
|  | 1926 | # accordingly. | 
|  | 1927 | ac_fn_c_find_intX_t () | 
|  | 1928 | { | 
|  | 1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
|  | 1931 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1932 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | $as_echo_n "(cached) " >&6 | 
|  | 1934 | else | 
|  | 1935 | eval "$3=no" | 
|  | 1936 | # Order is important - never check a type that is potentially smaller | 
|  | 1937 | # than half of the expected target width. | 
|  | 1938 | for ac_type in int$2_t 'int' 'long int' \ | 
|  | 1939 | 'long long int' 'short int' 'signed char'; do | 
|  | 1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1941 | /* end confdefs.h.  */ | 
|  | 1942 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1943 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1944 | int | 
|  | 1945 | main () | 
|  | 1946 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1947 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1948 | test_array [0] = 0 | 
|  | 1949 |  | 
|  | 1950 | ; | 
|  | 1951 | return 0; | 
|  | 1952 | } | 
|  | 1953 | _ACEOF | 
|  | 1954 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1956 | /* end confdefs.h.  */ | 
|  | 1957 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1958 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1959 | int | 
|  | 1960 | main () | 
|  | 1961 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1962 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1963 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
|  | 1964 | test_array [0] = 0 | 
|  | 1965 |  | 
|  | 1966 | ; | 
|  | 1967 | return 0; | 
|  | 1968 | } | 
|  | 1969 | _ACEOF | 
|  | 1970 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1971 |  | 
|  | 1972 | else | 
|  | 1973 | case $ac_type in #( | 
|  | 1974 | int$2_t) : | 
|  | 1975 | eval "$3=yes" ;; #( | 
|  | 1976 | *) : | 
|  | 1977 | eval "$3=\$ac_type" ;; | 
|  | 1978 | esac | 
|  | 1979 | fi | 
|  | 1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1981 | fi | 
|  | 1982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 1983 | eval as_val=\$$3 | 
|  | 1984 | if test "x$as_val" = x""no; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1985 |  | 
|  | 1986 | else | 
|  | 1987 | break | 
|  | 1988 | fi | 
|  | 1989 | done | 
|  | 1990 | fi | 
|  | 1991 | eval ac_res=\$$3 | 
|  | 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1993 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1994 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1995 |  | 
|  | 1996 | } # ac_fn_c_find_intX_t | 
|  | 1997 |  | 
|  | 1998 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1999 | # -------------------------------------------- | 
|  | 2000 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2001 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2002 | # computed | 
|  | 2003 | ac_fn_c_compute_int () | 
|  | 2004 | { | 
|  | 2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2006 | if test "$cross_compiling" = yes; then | 
|  | 2007 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2009 | /* end confdefs.h.  */ | 
|  | 2010 | $4 | 
|  | 2011 | int | 
|  | 2012 | main () | 
|  | 2013 | { | 
|  | 2014 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
|  | 2015 | test_array [0] = 0 | 
|  | 2016 |  | 
|  | 2017 | ; | 
|  | 2018 | return 0; | 
|  | 2019 | } | 
|  | 2020 | _ACEOF | 
|  | 2021 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2022 | ac_lo=0 ac_mid=0 | 
|  | 2023 | while :; do | 
|  | 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2025 | /* end confdefs.h.  */ | 
|  | 2026 | $4 | 
|  | 2027 | int | 
|  | 2028 | main () | 
|  | 2029 | { | 
|  | 2030 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2031 | test_array [0] = 0 | 
|  | 2032 |  | 
|  | 2033 | ; | 
|  | 2034 | return 0; | 
|  | 2035 | } | 
|  | 2036 | _ACEOF | 
|  | 2037 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2038 | ac_hi=$ac_mid; break | 
|  | 2039 | else | 
|  | 2040 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2041 | if test $ac_lo -le $ac_mid; then | 
|  | 2042 | ac_lo= ac_hi= | 
|  | 2043 | break | 
|  | 2044 | fi | 
|  | 2045 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2046 | fi | 
|  | 2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2048 | done | 
|  | 2049 | else | 
|  | 2050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2051 | /* end confdefs.h.  */ | 
|  | 2052 | $4 | 
|  | 2053 | int | 
|  | 2054 | main () | 
|  | 2055 | { | 
|  | 2056 | static int test_array [1 - 2 * !(($2) < 0)]; | 
|  | 2057 | test_array [0] = 0 | 
|  | 2058 |  | 
|  | 2059 | ; | 
|  | 2060 | return 0; | 
|  | 2061 | } | 
|  | 2062 | _ACEOF | 
|  | 2063 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2064 | ac_hi=-1 ac_mid=-1 | 
|  | 2065 | while :; do | 
|  | 2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2067 | /* end confdefs.h.  */ | 
|  | 2068 | $4 | 
|  | 2069 | int | 
|  | 2070 | main () | 
|  | 2071 | { | 
|  | 2072 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
|  | 2073 | test_array [0] = 0 | 
|  | 2074 |  | 
|  | 2075 | ; | 
|  | 2076 | return 0; | 
|  | 2077 | } | 
|  | 2078 | _ACEOF | 
|  | 2079 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2080 | ac_lo=$ac_mid; break | 
|  | 2081 | else | 
|  | 2082 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2083 | if test $ac_mid -le $ac_hi; then | 
|  | 2084 | ac_lo= ac_hi= | 
|  | 2085 | break | 
|  | 2086 | fi | 
|  | 2087 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2088 | fi | 
|  | 2089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2090 | done | 
|  | 2091 | else | 
|  | 2092 | ac_lo= ac_hi= | 
|  | 2093 | fi | 
|  | 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2095 | fi | 
|  | 2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2097 | # Binary search between lo and hi bounds. | 
|  | 2098 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2099 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2101 | /* end confdefs.h.  */ | 
|  | 2102 | $4 | 
|  | 2103 | int | 
|  | 2104 | main () | 
|  | 2105 | { | 
|  | 2106 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2107 | test_array [0] = 0 | 
|  | 2108 |  | 
|  | 2109 | ; | 
|  | 2110 | return 0; | 
|  | 2111 | } | 
|  | 2112 | _ACEOF | 
|  | 2113 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2114 | ac_hi=$ac_mid | 
|  | 2115 | else | 
|  | 2116 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2117 | fi | 
|  | 2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2119 | done | 
|  | 2120 | case $ac_lo in #(( | 
|  | 2121 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2122 | '') ac_retval=1 ;; | 
|  | 2123 | esac | 
|  | 2124 | else | 
|  | 2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2126 | /* end confdefs.h.  */ | 
|  | 2127 | $4 | 
|  | 2128 | static long int longval () { return $2; } | 
|  | 2129 | static unsigned long int ulongval () { return $2; } | 
|  | 2130 | #include <stdio.h> | 
|  | 2131 | #include <stdlib.h> | 
|  | 2132 | int | 
|  | 2133 | main () | 
|  | 2134 | { | 
|  | 2135 |  | 
|  | 2136 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2137 | if (! f) | 
|  | 2138 | return 1; | 
|  | 2139 | if (($2) < 0) | 
|  | 2140 | { | 
|  | 2141 | long int i = longval (); | 
|  | 2142 | if (i != ($2)) | 
|  | 2143 | return 1; | 
|  | 2144 | fprintf (f, "%ld", i); | 
|  | 2145 | } | 
|  | 2146 | else | 
|  | 2147 | { | 
|  | 2148 | unsigned long int i = ulongval (); | 
|  | 2149 | if (i != ($2)) | 
|  | 2150 | return 1; | 
|  | 2151 | fprintf (f, "%lu", i); | 
|  | 2152 | } | 
|  | 2153 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2154 | on some platforms.  */ | 
|  | 2155 | return ferror (f) || fclose (f) != 0; | 
|  | 2156 |  | 
|  | 2157 | ; | 
|  | 2158 | return 0; | 
|  | 2159 | } | 
|  | 2160 | _ACEOF | 
|  | 2161 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2162 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2163 | else | 
|  | 2164 | ac_retval=1 | 
|  | 2165 | fi | 
|  | 2166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2167 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2168 | rm -f conftest.val | 
|  | 2169 |  | 
|  | 2170 | fi | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2171 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2172 | as_fn_set_status $ac_retval | 
|  | 2173 |  | 
|  | 2174 | } # ac_fn_c_compute_int | 
|  | 2175 |  | 
|  | 2176 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2177 | # ---------------------------------- | 
|  | 2178 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2179 | ac_fn_c_check_func () | 
|  | 2180 | { | 
|  | 2181 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2183 | $as_echo_n "checking for $2... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2184 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2185 | $as_echo_n "(cached) " >&6 | 
|  | 2186 | else | 
|  | 2187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2188 | /* end confdefs.h.  */ | 
|  | 2189 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2190 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2191 | #define $2 innocuous_$2 | 
|  | 2192 |  | 
|  | 2193 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2194 | which can conflict with char $2 (); below. | 
|  | 2195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2196 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2197 |  | 
|  | 2198 | #ifdef __STDC__ | 
|  | 2199 | # include <limits.h> | 
|  | 2200 | #else | 
|  | 2201 | # include <assert.h> | 
|  | 2202 | #endif | 
|  | 2203 |  | 
|  | 2204 | #undef $2 | 
|  | 2205 |  | 
|  | 2206 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2207 | Use char because int might match the return type of a GCC | 
|  | 2208 | builtin and then its argument prototype would still apply.  */ | 
|  | 2209 | #ifdef __cplusplus | 
|  | 2210 | extern "C" | 
|  | 2211 | #endif | 
|  | 2212 | char $2 (); | 
|  | 2213 | /* The GNU C library defines this for functions which it implements | 
|  | 2214 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2215 | something starting with __ and the normal name is an alias.  */ | 
|  | 2216 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2217 | choke me | 
|  | 2218 | #endif | 
|  | 2219 |  | 
|  | 2220 | int | 
|  | 2221 | main () | 
|  | 2222 | { | 
|  | 2223 | return $2 (); | 
|  | 2224 | ; | 
|  | 2225 | return 0; | 
|  | 2226 | } | 
|  | 2227 | _ACEOF | 
|  | 2228 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2229 | eval "$3=yes" | 
|  | 2230 | else | 
|  | 2231 | eval "$3=no" | 
|  | 2232 | fi | 
|  | 2233 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2234 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2235 | fi | 
|  | 2236 | eval ac_res=\$$3 | 
|  | 2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2238 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2239 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2240 |  | 
|  | 2241 | } # ac_fn_c_check_func | 
|  | 2242 |  | 
|  | 2243 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2244 | # ---------------------------------------------------- | 
|  | 2245 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2246 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2247 | ac_fn_c_check_member () | 
|  | 2248 | { | 
|  | 2249 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2251 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2252 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2253 | $as_echo_n "(cached) " >&6 | 
|  | 2254 | else | 
|  | 2255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2256 | /* end confdefs.h.  */ | 
|  | 2257 | $5 | 
|  | 2258 | int | 
|  | 2259 | main () | 
|  | 2260 | { | 
|  | 2261 | static $2 ac_aggr; | 
|  | 2262 | if (ac_aggr.$3) | 
|  | 2263 | return 0; | 
|  | 2264 | ; | 
|  | 2265 | return 0; | 
|  | 2266 | } | 
|  | 2267 | _ACEOF | 
|  | 2268 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2269 | eval "$4=yes" | 
|  | 2270 | else | 
|  | 2271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2272 | /* end confdefs.h.  */ | 
|  | 2273 | $5 | 
|  | 2274 | int | 
|  | 2275 | main () | 
|  | 2276 | { | 
|  | 2277 | static $2 ac_aggr; | 
|  | 2278 | if (sizeof ac_aggr.$3) | 
|  | 2279 | return 0; | 
|  | 2280 | ; | 
|  | 2281 | return 0; | 
|  | 2282 | } | 
|  | 2283 | _ACEOF | 
|  | 2284 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2285 | eval "$4=yes" | 
|  | 2286 | else | 
|  | 2287 | eval "$4=no" | 
|  | 2288 | fi | 
|  | 2289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2290 | fi | 
|  | 2291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2292 | fi | 
|  | 2293 | eval ac_res=\$$4 | 
|  | 2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2295 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2296 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2297 |  | 
|  | 2298 | } # ac_fn_c_check_member | 
|  | 2299 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2300 | # ac_fn_c_check_decl LINENO SYMBOL VAR | 
|  | 2301 | # ------------------------------------ | 
|  | 2302 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2303 | ac_fn_c_check_decl () | 
|  | 2304 | { | 
|  | 2305 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | 
|  | 2307 | $as_echo_n "checking whether $2 is declared... " >&6; } | 
|  | 2308 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2309 | $as_echo_n "(cached) " >&6 | 
|  | 2310 | else | 
|  | 2311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2312 | /* end confdefs.h.  */ | 
|  | 2313 | $4 | 
|  | 2314 | int | 
|  | 2315 | main () | 
|  | 2316 | { | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2317 | #ifndef $2 | 
|  | 2318 | (void) $2; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2319 | #endif | 
|  | 2320 |  | 
|  | 2321 | ; | 
|  | 2322 | return 0; | 
|  | 2323 | } | 
|  | 2324 | _ACEOF | 
|  | 2325 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2326 | eval "$3=yes" | 
|  | 2327 | else | 
|  | 2328 | eval "$3=no" | 
|  | 2329 | fi | 
|  | 2330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2331 | fi | 
|  | 2332 | eval ac_res=\$$3 | 
|  | 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2334 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2335 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2336 |  | 
|  | 2337 | } # ac_fn_c_check_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2338 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | This file contains any messages produced by compilers while | 
|  | 2340 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2341 |  | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 2342 | It was created by python $as_me 3.3, which was | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2343 | generated by GNU Autoconf 2.65.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 |  | 
|  | 2345 | $ $0 $@ | 
|  | 2346 |  | 
|  | 2347 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2348 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | { | 
|  | 2350 | cat <<_ASUNAME | 
|  | 2351 | ## --------- ## | 
|  | 2352 | ## Platform. ## | 
|  | 2353 | ## --------- ## | 
|  | 2354 |  | 
|  | 2355 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2356 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2357 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2358 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2359 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2360 |  | 
|  | 2361 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2362 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2363 |  | 
|  | 2364 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2365 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2366 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2367 | /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] | 2368 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2369 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2370 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2371 |  | 
|  | 2372 | _ASUNAME | 
|  | 2373 |  | 
|  | 2374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2375 | for as_dir in $PATH | 
|  | 2376 | do | 
|  | 2377 | IFS=$as_save_IFS | 
|  | 2378 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2379 | $as_echo "PATH: $as_dir" | 
|  | 2380 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2381 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2382 |  | 
|  | 2383 | } >&5 | 
|  | 2384 |  | 
|  | 2385 | cat >&5 <<_ACEOF | 
|  | 2386 |  | 
|  | 2387 |  | 
|  | 2388 | ## ----------- ## | 
|  | 2389 | ## Core tests. ## | 
|  | 2390 | ## ----------- ## | 
|  | 2391 |  | 
|  | 2392 | _ACEOF | 
|  | 2393 |  | 
|  | 2394 |  | 
|  | 2395 | # Keep a trace of the command line. | 
|  | 2396 | # 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] | 2397 | # 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] | 2398 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2399 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | ac_configure_args0= | 
|  | 2402 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | ac_must_keep_next=false | 
|  | 2404 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2405 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 | for ac_arg | 
|  | 2407 | do | 
|  | 2408 | case $ac_arg in | 
|  | 2409 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2410 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2411 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2412 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2413 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2414 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2415 | esac | 
|  | 2416 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2417 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2418 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2419 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2420 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2421 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2423 | case $ac_arg in | 
|  | 2424 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2425 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2426 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2427 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2428 | case "$ac_configure_args0 " in | 
|  | 2429 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2430 | esac | 
|  | 2431 | ;; | 
|  | 2432 | -* ) ac_must_keep_next=true ;; | 
|  | 2433 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2434 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2435 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | ;; | 
|  | 2437 | esac | 
|  | 2438 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2440 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2441 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 |  | 
|  | 2443 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2444 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2445 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2446 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2447 | # 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] | 2448 | trap 'exit_status=$? | 
|  | 2449 | # Save into config.log some information that might help in debugging. | 
|  | 2450 | { | 
|  | 2451 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2453 | cat <<\_ASBOX | 
|  | 2454 | ## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2455 | ## Cache variables. ## | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2456 | ## ---------------- ## | 
|  | 2457 | _ASBOX | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | echo | 
|  | 2459 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2460 | ( | 
|  | 2461 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2462 | eval ac_val=\$$ac_var | 
|  | 2463 | case $ac_val in #( | 
|  | 2464 | *${as_nl}*) | 
|  | 2465 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2466 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2467 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | esac | 
|  | 2469 | case $ac_var in #( | 
|  | 2470 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2471 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2472 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | esac ;; | 
|  | 2474 | esac | 
|  | 2475 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2477 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2478 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2480 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2481 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2482 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2483 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2485 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | esac | | 
|  | 2487 | sort | 
|  | 2488 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2491 | cat <<\_ASBOX | 
|  | 2492 | ## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2493 | ## Output variables. ## | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2494 | ## ----------------- ## | 
|  | 2495 | _ASBOX | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2496 | echo | 
|  | 2497 | for ac_var in $ac_subst_vars | 
|  | 2498 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2499 | eval ac_val=\$$ac_var | 
|  | 2500 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2501 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2502 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2503 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | done | sort | 
|  | 2505 | echo | 
|  | 2506 |  | 
|  | 2507 | if test -n "$ac_subst_files"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2508 | cat <<\_ASBOX | 
|  | 2509 | ## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2510 | ## File substitutions. ## | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2511 | ## ------------------- ## | 
|  | 2512 | _ASBOX | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2513 | echo | 
|  | 2514 | for ac_var in $ac_subst_files | 
|  | 2515 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2516 | eval ac_val=\$$ac_var | 
|  | 2517 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2518 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2519 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2520 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2521 | done | sort | 
|  | 2522 | echo | 
|  | 2523 | fi | 
|  | 2524 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | if test -s confdefs.h; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2526 | cat <<\_ASBOX | 
|  | 2527 | ## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | ## confdefs.h. ## | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2529 | ## ----------- ## | 
|  | 2530 | _ASBOX | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2532 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | echo | 
|  | 2534 | fi | 
|  | 2535 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2536 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2537 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2539 | rm -f core *.core core.conftest.* && | 
|  | 2540 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2542 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2544 | 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] | 2545 | done | 
|  | 2546 | ac_signal=0 | 
|  | 2547 |  | 
|  | 2548 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2551 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | # Predefined preprocessor variables. | 
|  | 2554 |  | 
|  | 2555 | cat >>confdefs.h <<_ACEOF | 
|  | 2556 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2557 | _ACEOF | 
|  | 2558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | cat >>confdefs.h <<_ACEOF | 
|  | 2560 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2561 | _ACEOF | 
|  | 2562 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | cat >>confdefs.h <<_ACEOF | 
|  | 2564 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2565 | _ACEOF | 
|  | 2566 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | cat >>confdefs.h <<_ACEOF | 
|  | 2568 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2569 | _ACEOF | 
|  | 2570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | cat >>confdefs.h <<_ACEOF | 
|  | 2572 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2573 | _ACEOF | 
|  | 2574 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF | 
|  | 2576 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2577 | _ACEOF | 
|  | 2578 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 |  | 
|  | 2580 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2581 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2582 | ac_site_file1=NONE | 
|  | 2583 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2584 | if test -n "$CONFIG_SITE"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2585 | ac_site_file1=$CONFIG_SITE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2586 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2587 | ac_site_file1=$prefix/share/config.site | 
|  | 2588 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2590 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2591 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2592 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2593 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2594 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2595 | test "x$ac_site_file" = xNONE && continue | 
|  | 2596 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2598 | $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] | 2599 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2600 | . "$ac_site_file" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2601 | fi | 
|  | 2602 | done | 
|  | 2603 |  | 
|  | 2604 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2605 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2606 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2607 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2609 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2611 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2612 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | esac | 
|  | 2614 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2615 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2617 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | >$cache_file | 
|  | 2619 | fi | 
|  | 2620 |  | 
|  | 2621 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2622 | # value. | 
|  | 2623 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2624 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2626 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2628 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2629 | case $ac_old_set,$ac_new_set in | 
|  | 2630 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2632 | $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] | 2633 | ac_cache_corrupted=: ;; | 
|  | 2634 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2636 | $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] | 2637 | ac_cache_corrupted=: ;; | 
|  | 2638 | ,);; | 
|  | 2639 | *) | 
|  | 2640 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2641 | # differences in whitespace do not lead to failure. | 
|  | 2642 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2643 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2644 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2646 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2647 | ac_cache_corrupted=: | 
|  | 2648 | else | 
|  | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2650 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2651 | eval $ac_var=\$ac_old_val | 
|  | 2652 | fi | 
|  | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2654 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2656 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2657 | fi;; | 
|  | 2658 | esac | 
|  | 2659 | # Pass precious variables to config.status. | 
|  | 2660 | if test "$ac_new_set" = set; then | 
|  | 2661 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2662 | *\'*) 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] | 2663 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2664 | esac | 
|  | 2665 | case " $ac_configure_args " in | 
|  | 2666 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | esac | 
|  | 2669 | fi | 
|  | 2670 | done | 
|  | 2671 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2673 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2675 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2676 | 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] | 2677 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2678 | ## -------------------- ## | 
|  | 2679 | ## Main body of script. ## | 
|  | 2680 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2681 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2682 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2683 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2687 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2688 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2689 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame^] | 2690 |  | 
|  | 2691 |  | 
|  | 2692 |  | 
|  | 2693 |  | 
|  | 2694 | if test -e $srcdir/.hg/00changelog.i | 
|  | 2695 | then | 
|  | 2696 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 2697 | set dummy hg; ac_word=$2 | 
|  | 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2699 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 2700 | if test "${ac_cv_prog_HAS_HG+set}" = set; then : | 
|  | 2701 | $as_echo_n "(cached) " >&6 | 
|  | 2702 | else | 
|  | 2703 | if test -n "$HAS_HG"; then | 
|  | 2704 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 2705 | else | 
|  | 2706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2707 | for as_dir in $PATH | 
|  | 2708 | do | 
|  | 2709 | IFS=$as_save_IFS | 
|  | 2710 | test -z "$as_dir" && as_dir=. | 
|  | 2711 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 2713 | ac_cv_prog_HAS_HG="found" | 
|  | 2714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2715 | break 2 | 
|  | 2716 | fi | 
|  | 2717 | done | 
|  | 2718 | done | 
|  | 2719 | IFS=$as_save_IFS | 
|  | 2720 |  | 
|  | 2721 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 2722 | fi | 
|  | 2723 | fi | 
|  | 2724 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 2725 | if test -n "$HAS_HG"; then | 
|  | 2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 2727 | $as_echo "$HAS_HG" >&6; } | 
|  | 2728 | else | 
|  | 2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2730 | $as_echo "no" >&6; } | 
|  | 2731 | fi | 
|  | 2732 |  | 
|  | 2733 |  | 
|  | 2734 | else | 
|  | 2735 | HAS_HG=no-repository | 
|  | 2736 | fi | 
|  | 2737 | if test $HAS_HG = found | 
|  | 2738 | then | 
|  | 2739 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 2740 | HGTAG="hg id -t \$(srcdir)" | 
|  | 2741 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 2742 | else | 
|  | 2743 | HGVERSION="" | 
|  | 2744 | HGTAG="" | 
|  | 2745 | HGBRANCH="" | 
|  | 2746 | fi | 
|  | 2747 |  | 
|  | 2748 |  | 
|  | 2749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2750 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2751 |  | 
|  | 2752 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2753 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2754 | if test "$prefix" != "/"; then | 
|  | 2755 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2756 | fi | 
|  | 2757 |  | 
|  | 2758 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2759 |  | 
|  | 2760 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2761 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2762 | # with other autoconf-based packages that include Python.h | 
|  | 2763 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2764 | rm confdefs.h | 
|  | 2765 | mv confdefs.h.new confdefs.h | 
|  | 2766 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2767 |  | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 2768 | VERSION=3.3 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2769 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2770 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2771 |  | 
|  | 2772 | SOVERSION=1.0 | 
|  | 2773 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2774 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2775 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2776 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2777 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2778 |  | 
|  | 2779 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2780 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2781 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2782 | # them. | 
|  | 2783 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2784 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2785 |  | 
|  | 2786 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2787 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2788 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2789 | # them. | 
|  | 2790 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2791 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2792 |  | 
|  | 2793 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2794 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2795 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2796 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2797 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2798 |  | 
|  | 2799 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2800 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2801 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2802 | # them. | 
|  | 2803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2804 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2805 |  | 
|  | 2806 |  | 
|  | 2807 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2808 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2809 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2810 | # Arguments passed to configure. | 
|  | 2811 |  | 
|  | 2812 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 2815 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2816 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2817 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2818 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2819 | case $enableval in | 
|  | 2820 | yes) | 
|  | 2821 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2822 | if test ! -d "${enableval}" | 
|  | 2823 | then | 
|  | 2824 | enableval=/ | 
|  | 2825 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2826 | ;; | 
|  | 2827 | esac | 
|  | 2828 | case $enableval in | 
|  | 2829 | no) | 
|  | 2830 | UNIVERSALSDK= | 
|  | 2831 | enable_universalsdk= | 
|  | 2832 | ;; | 
|  | 2833 | *) | 
|  | 2834 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2835 | if test ! -d "${UNIVERSALSDK}" | 
|  | 2836 | then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 2837 | as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2838 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2839 | ;; | 
|  | 2840 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2842 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2843 | else | 
|  | 2844 |  | 
|  | 2845 | UNIVERSALSDK= | 
|  | 2846 | enable_universalsdk= | 
|  | 2847 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2848 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2849 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2850 | if test -n "${UNIVERSALSDK}" | 
|  | 2851 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 2853 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2856 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2857 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2858 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2859 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2860 |  | 
|  | 2861 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2862 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2863 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 2865 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2866 |  | 
|  | 2867 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2868 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2869 | withval=$with_universal_archs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 2871 | $as_echo "$withval" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2872 | UNIVERSAL_ARCHS="$withval" | 
|  | 2873 |  | 
|  | 2874 | else | 
|  | 2875 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
|  | 2877 | $as_echo "32-bit" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2878 |  | 
|  | 2879 | fi | 
|  | 2880 |  | 
|  | 2881 |  | 
|  | 2882 |  | 
|  | 2883 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2884 |  | 
|  | 2885 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2886 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2887 | withval=$with_framework_name; | 
|  | 2888 | PYTHONFRAMEWORK=${withval} | 
|  | 2889 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 2890 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 2891 |  | 
|  | 2892 | else | 
|  | 2893 |  | 
|  | 2894 | PYTHONFRAMEWORK=Python | 
|  | 2895 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 2896 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 2897 |  | 
|  | 2898 | fi | 
|  | 2899 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2900 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2901 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2902 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2903 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2904 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2905 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2906 | esac | 
|  | 2907 | case $enableval in | 
|  | 2908 | no) | 
|  | 2909 | PYTHONFRAMEWORK= | 
|  | 2910 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 2911 | PYTHONFRAMEWORKPREFIX= | 
|  | 2912 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2913 | FRAMEWORKINSTALLFIRST= | 
|  | 2914 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2915 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2916 | FRAMEWORKALTINSTALLLAST= | 
|  | 2917 | if test "x${prefix}" = "xNONE"; then | 
|  | 2918 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 2919 | else | 
|  | 2920 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2921 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2922 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2923 | ;; | 
|  | 2924 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2925 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2926 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2927 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2928 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2929 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 2930 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2931 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2932 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2933 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2934 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2935 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2936 | else | 
|  | 2937 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2938 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2939 |  | 
|  | 2940 | case "${enableval}" in | 
|  | 2941 | /System*) | 
|  | 2942 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2943 | if test "${prefix}" = "NONE" ; then | 
|  | 2944 | # See below | 
|  | 2945 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 2946 | fi | 
|  | 2947 | ;; | 
|  | 2948 |  | 
|  | 2949 | /Library*) | 
|  | 2950 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2951 | ;; | 
|  | 2952 |  | 
|  | 2953 | */Library/Frameworks) | 
|  | 2954 | MDIR="`dirname "${enableval}"`" | 
|  | 2955 | MDIR="`dirname "${MDIR}"`" | 
|  | 2956 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 2957 |  | 
|  | 2958 | if test "${prefix}" = "NONE"; then | 
|  | 2959 | # User hasn't specified the | 
|  | 2960 | # --prefix option, but wants to install | 
|  | 2961 | # the framework in a non-default location, | 
|  | 2962 | # ensure that the compatibility links get | 
|  | 2963 | # installed relative to that prefix as well | 
|  | 2964 | # instead of in /usr/local. | 
|  | 2965 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 2966 | fi | 
|  | 2967 | ;; | 
|  | 2968 |  | 
|  | 2969 | *) | 
|  | 2970 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2971 | ;; | 
|  | 2972 | esac | 
|  | 2973 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2974 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2975 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2976 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2977 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2978 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2979 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2980 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2981 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2982 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 2983 |  | 
|  | 2984 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 2985 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2986 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2988 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2990 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2991 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2992 | PYTHONFRAMEWORKPREFIX= | 
|  | 2993 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2994 | FRAMEWORKINSTALLFIRST= | 
|  | 2995 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2996 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2997 | FRAMEWORKALTINSTALLLAST= | 
|  | 2998 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2999 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3000 | else | 
|  | 3001 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3002 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3003 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3004 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3005 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3006 | fi | 
|  | 3007 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3008 |  | 
|  | 3009 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3010 |  | 
|  | 3011 |  | 
|  | 3012 |  | 
|  | 3013 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3014 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3015 |  | 
|  | 3016 |  | 
|  | 3017 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3018 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3019 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3020 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3021 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3022 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3023 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3024 | # Set name for machine-dependent library files | 
|  | 3025 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3027 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3028 | if test -z "$MACHDEP" | 
|  | 3029 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3030 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3031 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3032 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3033 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3034 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3035 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3036 | fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3037 | ac_md_system=`echo $ac_sys_system | | 
|  | 3038 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3039 | ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 3040 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3041 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3042 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3043 | case $MACHDEP in | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3044 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3045 | darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3046 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3047 | '')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3048 | esac | 
|  | 3049 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3050 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3051 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3052 | # disable features if it is defined, without any means to access these | 
|  | 3053 | # features as extensions. For these systems, we skip the definition of | 
|  | 3054 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3055 | # some feature, make sure there is no alternative way to access this | 
|  | 3056 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3057 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3058 | # wildcard, and that the wildcard does not include future systems | 
|  | 3059 | # (which may remove their limitations). | 
|  | 3060 | case $ac_sys_system/$ac_sys_release in | 
|  | 3061 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3062 | # 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] | 3063 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3064 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3065 | # OpenBSD 4.6, but is fixed in 4.7. | 
|  | 3066 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3067 | define_xopen_source=no | 
|  | 3068 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3069 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3070 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3072 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3073 |  | 
|  | 3074 | ;; | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3075 | OpenBSD/4.[789]) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3076 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3077 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3078 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3080 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3081 |  | 
|  | 3082 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3083 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3084 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3085 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3086 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3087 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3088 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3089 | # request to enable features supported by the standard as a request | 
|  | 3090 | # to disable features not supported by the standard.  The best way | 
|  | 3091 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3092 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3093 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3094 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3095 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3096 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3097 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3098 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3099 | define_xopen_source=no;; | 
|  | 3100 | # 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] | 3101 | # 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] | 3102 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3103 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3104 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3105 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3106 | FreeBSD/4.*) | 
|  | 3107 | define_xopen_source=no;; | 
|  | 3108 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3109 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3110 | # identifies itself as Darwin/7.* | 
|  | 3111 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3112 | # disables platform specific features beyond repair. | 
|  | 3113 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3114 | # has no effect, don't bother defining them | 
|  | 3115 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3116 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3117 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3118 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3119 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3120 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3121 | # 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] | 3122 | AIX/4) | 
|  | 3123 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3124 | AIX/5) | 
|  | 3125 | if test `uname -r` -eq 1; then | 
|  | 3126 | define_xopen_source=no | 
|  | 3127 | fi | 
|  | 3128 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3129 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3130 | # defining NI_NUMERICHOST. | 
|  | 3131 | QNX/6.3.2) | 
|  | 3132 | define_xopen_source=no | 
|  | 3133 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3134 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3135 | esac | 
|  | 3136 |  | 
|  | 3137 | if test $define_xopen_source = yes | 
|  | 3138 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3140 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3141 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3142 |  | 
|  | 3143 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3144 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3145 | # several APIs are not declared. Since this is also needed in some | 
|  | 3146 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3147 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3148 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3149 |  | 
|  | 3150 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3151 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3152 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3153 |  | 
|  | 3154 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3155 | fi | 
|  | 3156 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3157 | # | 
|  | 3158 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3159 | # ISA on the command line.  Depending on the values of these switches, | 
|  | 3160 | # different and often incompatable code will be generated. | 
|  | 3161 | # | 
|  | 3162 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3163 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3164 | # variable is also adjusted. | 
|  | 3165 | # | 
|  | 3166 |  | 
|  | 3167 | if test ! -z "$SGI_ABI" | 
|  | 3168 | then | 
|  | 3169 | CC="cc $SGI_ABI" | 
|  | 3170 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3171 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3172 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3174 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3175 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3176 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3177 | # it may influence the way we can build extensions, so distutils | 
|  | 3178 | # needs to check it | 
|  | 3179 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3180 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3181 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3182 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3183 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
|  | 3185 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3186 | ac_sys_machine=`uname -m` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
|  | 3188 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3189 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3190 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3191 |  | 
|  | 3192 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3193 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3194 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3195 | # when running configure or make.  The build should not break if they do. | 
|  | 3196 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3197 |  | 
|  | 3198 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3199 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3201 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3203 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3204 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3205 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3206 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3207 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3208 | without_gcc=yes;; | 
|  | 3209 | yes)	CC=gcc | 
|  | 3210 | without_gcc=no;; | 
|  | 3211 | *)	CC=$withval | 
|  | 3212 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3213 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3214 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3216 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3217 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3218 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3219 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3220 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3221 | fi | 
|  | 3222 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3224 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3225 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3226 | # If the user switches compilers, we can't believe the cache | 
|  | 3227 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3228 | then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3229 | as_fn_error "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3230 | (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] | 3231 | fi | 
|  | 3232 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3233 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3234 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3235 | # we set -g later. | 
|  | 3236 | if test -z "$CFLAGS"; then | 
|  | 3237 | CFLAGS= | 
|  | 3238 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | ac_ext=c | 
|  | 3240 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3244 | if test -n "$ac_tool_prefix"; then | 
|  | 3245 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3246 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3248 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3249 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3250 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3251 | else | 
|  | 3252 | if test -n "$CC"; then | 
|  | 3253 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3254 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3256 | for as_dir in $PATH | 
|  | 3257 | do | 
|  | 3258 | IFS=$as_save_IFS | 
|  | 3259 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3260 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3263 | $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] | 3264 | break 2 | 
|  | 3265 | fi | 
|  | 3266 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3267 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3268 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3269 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3270 | fi | 
|  | 3271 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3272 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3273 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3275 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3276 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3278 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3279 | fi | 
|  | 3280 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3281 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3282 | fi | 
|  | 3283 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3284 | ac_ct_CC=$CC | 
|  | 3285 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3286 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3288 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3289 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3290 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3291 | else | 
|  | 3292 | if test -n "$ac_ct_CC"; then | 
|  | 3293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3294 | else | 
|  | 3295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3296 | for as_dir in $PATH | 
|  | 3297 | do | 
|  | 3298 | IFS=$as_save_IFS | 
|  | 3299 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3300 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3303 | $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] | 3304 | break 2 | 
|  | 3305 | fi | 
|  | 3306 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3307 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3308 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3309 |  | 
|  | 3310 | fi | 
|  | 3311 | fi | 
|  | 3312 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3313 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3315 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3316 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3318 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3319 | fi | 
|  | 3320 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3321 | if test "x$ac_ct_CC" = x; then | 
|  | 3322 | CC="" | 
|  | 3323 | else | 
|  | 3324 | case $cross_compiling:$ac_tool_warned in | 
|  | 3325 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3327 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3328 | ac_tool_warned=yes ;; | 
|  | 3329 | esac | 
|  | 3330 | CC=$ac_ct_CC | 
|  | 3331 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 | else | 
|  | 3333 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3334 | fi | 
|  | 3335 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3336 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3337 | if test -n "$ac_tool_prefix"; then | 
|  | 3338 | # 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] | 3339 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3341 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3342 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3343 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3344 | else | 
|  | 3345 | if test -n "$CC"; then | 
|  | 3346 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3347 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3349 | for as_dir in $PATH | 
|  | 3350 | do | 
|  | 3351 | IFS=$as_save_IFS | 
|  | 3352 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3353 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3356 | $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] | 3357 | break 2 | 
|  | 3358 | fi | 
|  | 3359 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3360 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3361 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3362 |  | 
|  | 3363 | fi | 
|  | 3364 | fi | 
|  | 3365 | CC=$ac_cv_prog_CC | 
|  | 3366 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3368 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3371 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | fi | 
|  | 3373 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3374 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | fi | 
|  | 3377 | if test -z "$CC"; then | 
|  | 3378 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3379 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3381 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3382 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3383 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3384 | else | 
|  | 3385 | if test -n "$CC"; then | 
|  | 3386 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3387 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3388 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3390 | for as_dir in $PATH | 
|  | 3391 | do | 
|  | 3392 | IFS=$as_save_IFS | 
|  | 3393 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3394 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3396 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3397 | ac_prog_rejected=yes | 
|  | 3398 | continue | 
|  | 3399 | fi | 
|  | 3400 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3401 | $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] | 3402 | break 2 | 
|  | 3403 | fi | 
|  | 3404 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3405 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3406 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3408 | if test $ac_prog_rejected = yes; then | 
|  | 3409 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3410 | set dummy $ac_cv_prog_CC | 
|  | 3411 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3412 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3413 | # We chose a different compiler from the bogus one. | 
|  | 3414 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3415 | # first if we set CC to just the basename; use the full file name. | 
|  | 3416 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3417 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3418 | fi | 
|  | 3419 | fi | 
|  | 3420 | fi | 
|  | 3421 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3423 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3425 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3426 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3428 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3429 | fi | 
|  | 3430 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | fi | 
|  | 3433 | if test -z "$CC"; then | 
|  | 3434 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3435 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3436 | do | 
|  | 3437 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3438 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3440 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3441 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3442 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3443 | else | 
|  | 3444 | if test -n "$CC"; then | 
|  | 3445 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3446 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3448 | for as_dir in $PATH | 
|  | 3449 | do | 
|  | 3450 | IFS=$as_save_IFS | 
|  | 3451 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3452 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3455 | $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] | 3456 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3457 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3459 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3460 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 |  | 
|  | 3462 | fi | 
|  | 3463 | fi | 
|  | 3464 | CC=$ac_cv_prog_CC | 
|  | 3465 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3467 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3470 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3471 | fi | 
|  | 3472 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3473 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | test -n "$CC" && break | 
|  | 3475 | done | 
|  | 3476 | fi | 
|  | 3477 | if test -z "$CC"; then | 
|  | 3478 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3479 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | do | 
|  | 3481 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3482 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3484 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3485 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3486 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | else | 
|  | 3488 | if test -n "$ac_ct_CC"; then | 
|  | 3489 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3490 | else | 
|  | 3491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3492 | for as_dir in $PATH | 
|  | 3493 | do | 
|  | 3494 | IFS=$as_save_IFS | 
|  | 3495 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3496 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3499 | $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] | 3500 | break 2 | 
|  | 3501 | fi | 
|  | 3502 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3503 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3504 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3505 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3506 | fi | 
|  | 3507 | fi | 
|  | 3508 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3509 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3511 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3514 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3516 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3517 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | test -n "$ac_ct_CC" && break | 
|  | 3519 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3520 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3521 | if test "x$ac_ct_CC" = x; then | 
|  | 3522 | CC="" | 
|  | 3523 | else | 
|  | 3524 | case $cross_compiling:$ac_tool_warned in | 
|  | 3525 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3527 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3528 | ac_tool_warned=yes ;; | 
|  | 3529 | esac | 
|  | 3530 | CC=$ac_ct_CC | 
|  | 3531 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | fi | 
|  | 3533 |  | 
|  | 3534 | fi | 
|  | 3535 |  | 
|  | 3536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3537 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3539 | as_fn_error "no acceptable C compiler found in \$PATH | 
|  | 3540 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 |  | 
|  | 3542 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3543 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3544 | set X $ac_compile | 
|  | 3545 | ac_compiler=$2 | 
|  | 3546 | for ac_option in --version -v -V -qversion; do | 
|  | 3547 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3548 | case "(($ac_try" in | 
|  | 3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3550 | *) ac_try_echo=$ac_try;; | 
|  | 3551 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3553 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3554 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3556 | if test -s conftest.err; then | 
|  | 3557 | sed '10a\ | 
|  | 3558 | ... rest of stderr output deleted ... | 
|  | 3559 | 10q' conftest.err >conftest.er1 | 
|  | 3560 | cat conftest.er1 >&5 | 
|  | 3561 | fi | 
|  | 3562 | rm -f conftest.er1 conftest.err | 
|  | 3563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3564 | test $ac_status = 0; } | 
|  | 3565 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3568 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3569 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | int | 
|  | 3571 | main () | 
|  | 3572 | { | 
|  | 3573 |  | 
|  | 3574 | ; | 
|  | 3575 | return 0; | 
|  | 3576 | } | 
|  | 3577 | _ACEOF | 
|  | 3578 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3579 | 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] | 3580 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3581 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3582 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3584 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3585 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3586 |  | 
|  | 3587 | # The possible output files: | 
|  | 3588 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3589 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3590 | ac_rmfiles= | 
|  | 3591 | for ac_file in $ac_files | 
|  | 3592 | do | 
|  | 3593 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3594 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3595 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3596 | esac | 
|  | 3597 | done | 
|  | 3598 | rm -f $ac_rmfiles | 
|  | 3599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3600 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3601 | case "(($ac_try" in | 
|  | 3602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3603 | *) ac_try_echo=$ac_try;; | 
|  | 3604 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3606 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3607 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3610 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3611 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3612 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3613 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3614 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3615 | # Autoconf. | 
|  | 3616 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3617 | do | 
|  | 3618 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3620 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3621 | ;; | 
|  | 3622 | [ab].out ) | 
|  | 3623 | # We found the default executable, but exeext='' is most | 
|  | 3624 | # certainly right. | 
|  | 3625 | break;; | 
|  | 3626 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3627 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3628 | then :; else | 
|  | 3629 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3630 | fi | 
|  | 3631 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3632 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3633 | # argument, so we may need to know it at that point already. | 
|  | 3634 | # Even if this section looks crufty: it has the advantage of | 
|  | 3635 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3636 | break;; | 
|  | 3637 | * ) | 
|  | 3638 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | esac | 
|  | 3640 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3641 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3642 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3643 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3644 | ac_file='' | 
|  | 3645 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3646 | if test -z "$ac_file"; then : | 
|  | 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3648 | $as_echo "no" >&6; } | 
|  | 3649 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3650 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3652 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3653 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3654 | { as_fn_set_status 77 | 
|  | 3655 | as_fn_error "C compiler cannot create executables | 
|  | 3656 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3657 | else | 
|  | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3659 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3660 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 3662 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 3664 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3665 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3666 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3667 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3668 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 3670 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 3671 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3672 | case "(($ac_try" in | 
|  | 3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3674 | *) ac_try_echo=$ac_try;; | 
|  | 3675 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3677 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3678 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3681 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3682 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 3683 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 3684 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 3685 | # `rm'. | 
|  | 3686 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 3687 | test -f "$ac_file" || continue | 
|  | 3688 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3689 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3690 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3691 | break;; | 
|  | 3692 | * ) break;; | 
|  | 3693 | esac | 
|  | 3694 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3695 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3696 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3698 | as_fn_error "cannot compute suffix of executables: cannot compile and link | 
|  | 3699 | See \`config.log' for more details." "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3701 | rm -f conftest conftest$ac_cv_exeext | 
|  | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 3703 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3704 |  | 
|  | 3705 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | EXEEXT=$ac_cv_exeext | 
|  | 3707 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 3709 | /* end confdefs.h.  */ | 
|  | 3710 | #include <stdio.h> | 
|  | 3711 | int | 
|  | 3712 | main () | 
|  | 3713 | { | 
|  | 3714 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 3715 | return ferror (f) || fclose (f) != 0; | 
|  | 3716 |  | 
|  | 3717 | ; | 
|  | 3718 | return 0; | 
|  | 3719 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3720 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3721 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 3722 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 3723 | # the compiler is broken, or we cross compile. | 
|  | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 3725 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 3726 | if test "$cross_compiling" != yes; then | 
|  | 3727 | { { ac_try="$ac_link" | 
|  | 3728 | case "(($ac_try" in | 
|  | 3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3730 | *) ac_try_echo=$ac_try;; | 
|  | 3731 | esac | 
|  | 3732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3733 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3734 | (eval "$ac_link") 2>&5 | 
|  | 3735 | ac_status=$? | 
|  | 3736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3737 | test $ac_status = 0; } | 
|  | 3738 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 3739 | { { case "(($ac_try" in | 
|  | 3740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3741 | *) ac_try_echo=$ac_try;; | 
|  | 3742 | esac | 
|  | 3743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3744 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3745 | (eval "$ac_try") 2>&5 | 
|  | 3746 | ac_status=$? | 
|  | 3747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3748 | test $ac_status = 0; }; }; then | 
|  | 3749 | cross_compiling=no | 
|  | 3750 | else | 
|  | 3751 | if test "$cross_compiling" = maybe; then | 
|  | 3752 | cross_compiling=yes | 
|  | 3753 | else | 
|  | 3754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3756 | as_fn_error "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3757 | If you meant to cross compile, use \`--host'. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3758 | See \`config.log' for more details." "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3759 | fi | 
|  | 3760 | fi | 
|  | 3761 | fi | 
|  | 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 3763 | $as_echo "$cross_compiling" >&6; } | 
|  | 3764 |  | 
|  | 3765 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 3766 | ac_clean_files=$ac_clean_files_save | 
|  | 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 3768 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3769 | if test "${ac_cv_objext+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3770 | $as_echo_n "(cached) " >&6 | 
|  | 3771 | else | 
|  | 3772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3773 | /* end confdefs.h.  */ | 
|  | 3774 |  | 
|  | 3775 | int | 
|  | 3776 | main () | 
|  | 3777 | { | 
|  | 3778 |  | 
|  | 3779 | ; | 
|  | 3780 | return 0; | 
|  | 3781 | } | 
|  | 3782 | _ACEOF | 
|  | 3783 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3784 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3785 | case "(($ac_try" in | 
|  | 3786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3787 | *) ac_try_echo=$ac_try;; | 
|  | 3788 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3790 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3791 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3794 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 3796 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3798 | *.$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] | 3799 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 3800 | break;; | 
|  | 3801 | esac | 
|  | 3802 | done | 
|  | 3803 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3804 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3805 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3808 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 3809 | as_fn_error "cannot compute suffix of object files: cannot compile | 
|  | 3810 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3812 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 3815 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | OBJEXT=$ac_cv_objext | 
|  | 3817 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 3819 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3820 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3821 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3824 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | int | 
|  | 3827 | main () | 
|  | 3828 | { | 
|  | 3829 | #ifndef __GNUC__ | 
|  | 3830 | choke me | 
|  | 3831 | #endif | 
|  | 3832 |  | 
|  | 3833 | ; | 
|  | 3834 | return 0; | 
|  | 3835 | } | 
|  | 3836 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3837 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | ac_compiler_gnu=yes | 
|  | 3839 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3840 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3842 | 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] | 3843 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 3844 |  | 
|  | 3845 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 3847 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 3848 | if test $ac_compiler_gnu = yes; then | 
|  | 3849 | GCC=yes | 
|  | 3850 | else | 
|  | 3851 | GCC= | 
|  | 3852 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 3854 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 3856 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3857 | if test "${ac_cv_prog_cc_g+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3860 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 3861 | ac_c_werror_flag=yes | 
|  | 3862 | ac_cv_prog_cc_g=no | 
|  | 3863 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3865 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | int | 
|  | 3868 | main () | 
|  | 3869 | { | 
|  | 3870 |  | 
|  | 3871 | ; | 
|  | 3872 | return 0; | 
|  | 3873 | } | 
|  | 3874 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3876 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3877 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3878 | CFLAGS="" | 
|  | 3879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3880 | /* end confdefs.h.  */ | 
|  | 3881 |  | 
|  | 3882 | int | 
|  | 3883 | main () | 
|  | 3884 | { | 
|  | 3885 |  | 
|  | 3886 | ; | 
|  | 3887 | return 0; | 
|  | 3888 | } | 
|  | 3889 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3890 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3891 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3892 | else | 
|  | 3893 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3894 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3896 | /* end confdefs.h.  */ | 
|  | 3897 |  | 
|  | 3898 | int | 
|  | 3899 | main () | 
|  | 3900 | { | 
|  | 3901 |  | 
|  | 3902 | ; | 
|  | 3903 | return 0; | 
|  | 3904 | } | 
|  | 3905 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3906 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3907 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3908 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3912 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3914 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 3915 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 3917 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3918 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3920 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 3921 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3922 | CFLAGS="-g -O2" | 
|  | 3923 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3924 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3925 | fi | 
|  | 3926 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3927 | if test "$GCC" = yes; then | 
|  | 3928 | CFLAGS="-O2" | 
|  | 3929 | else | 
|  | 3930 | CFLAGS= | 
|  | 3931 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3932 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 3934 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3935 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3936 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3937 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3938 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3939 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3941 | /* end confdefs.h.  */ | 
|  | 3942 | #include <stdarg.h> | 
|  | 3943 | #include <stdio.h> | 
|  | 3944 | #include <sys/types.h> | 
|  | 3945 | #include <sys/stat.h> | 
|  | 3946 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 3947 | struct buf { int x; }; | 
|  | 3948 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 3949 | static char *e (p, i) | 
|  | 3950 | char **p; | 
|  | 3951 | int i; | 
|  | 3952 | { | 
|  | 3953 | return p[i]; | 
|  | 3954 | } | 
|  | 3955 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 3956 | { | 
|  | 3957 | char *s; | 
|  | 3958 | va_list v; | 
|  | 3959 | va_start (v,p); | 
|  | 3960 | s = g (p, va_arg (v,int)); | 
|  | 3961 | va_end (v); | 
|  | 3962 | return s; | 
|  | 3963 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3964 |  | 
|  | 3965 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 3966 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 3967 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3968 | 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] | 3969 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 3970 | array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3971 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3972 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 3973 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3974 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 3975 | inside strings and character constants.  */ | 
|  | 3976 | #define FOO(x) 'x' | 
|  | 3977 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 3978 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3979 | int test (int i, double x); | 
|  | 3980 | struct s1 {int (*f) (int a);}; | 
|  | 3981 | struct s2 {int (*f) (double a);}; | 
|  | 3982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 3983 | int argc; | 
|  | 3984 | char **argv; | 
|  | 3985 | int | 
|  | 3986 | main () | 
|  | 3987 | { | 
|  | 3988 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 3989 | ; | 
|  | 3990 | return 0; | 
|  | 3991 | } | 
|  | 3992 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3993 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 3994 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3995 | do | 
|  | 3996 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3997 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3998 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3999 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4000 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4001 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4002 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4003 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4004 | CC=$ac_save_CC | 
|  | 4005 |  | 
|  | 4006 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4007 | # AC_CACHE_VAL | 
|  | 4008 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4009 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4011 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4012 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4014 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4015 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4016 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4018 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4019 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4020 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4021 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4022 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4023 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4024 | ac_ext=c | 
|  | 4025 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4029 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4030 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4031 |  | 
|  | 4032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4034 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4035 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4036 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4037 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4038 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4039 |  | 
|  | 4040 | case $withval in | 
|  | 4041 | no)	with_cxx_main=no | 
|  | 4042 | MAINCC='$(CC)';; | 
|  | 4043 | yes)	with_cxx_main=yes | 
|  | 4044 | MAINCC='$(CXX)';; | 
|  | 4045 | *)	with_cxx_main=yes | 
|  | 4046 | MAINCC=$withval | 
|  | 4047 | if test -z "$CXX" | 
|  | 4048 | then | 
|  | 4049 | CXX=$withval | 
|  | 4050 | fi;; | 
|  | 4051 | esac | 
|  | 4052 | else | 
|  | 4053 |  | 
|  | 4054 | with_cxx_main=no | 
|  | 4055 | MAINCC='$(CC)' | 
|  | 4056 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4057 | fi | 
|  | 4058 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4060 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4061 |  | 
|  | 4062 | preset_cxx="$CXX" | 
|  | 4063 | if test -z "$CXX" | 
|  | 4064 | then | 
|  | 4065 | case "$CC" in | 
|  | 4066 | gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4067 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4069 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4070 | if test "${ac_cv_path_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4071 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4072 | else | 
|  | 4073 | case $CXX in | 
|  | 4074 | [\\/]* | ?:[\\/]*) | 
|  | 4075 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4076 | ;; | 
|  | 4077 | *) | 
|  | 4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4079 | for as_dir in notfound | 
|  | 4080 | do | 
|  | 4081 | IFS=$as_save_IFS | 
|  | 4082 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4083 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4085 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4087 | break 2 | 
|  | 4088 | fi | 
|  | 4089 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4090 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4091 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4092 |  | 
|  | 4093 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
|  | 4094 | ;; | 
|  | 4095 | esac | 
|  | 4096 | fi | 
|  | 4097 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4098 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4100 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4103 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4104 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4105 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4106 | ;; | 
|  | 4107 | cc)     # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4108 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4110 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4111 | if test "${ac_cv_path_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4112 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4113 | else | 
|  | 4114 | case $CXX in | 
|  | 4115 | [\\/]* | ?:[\\/]*) | 
|  | 4116 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4117 | ;; | 
|  | 4118 | *) | 
|  | 4119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4120 | for as_dir in notfound | 
|  | 4121 | do | 
|  | 4122 | IFS=$as_save_IFS | 
|  | 4123 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4124 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4126 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4128 | break 2 | 
|  | 4129 | fi | 
|  | 4130 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4131 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4132 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4133 |  | 
|  | 4134 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
|  | 4135 | ;; | 
|  | 4136 | esac | 
|  | 4137 | fi | 
|  | 4138 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4139 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4141 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4142 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4144 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4145 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4146 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4147 | ;; | 
|  | 4148 | esac | 
|  | 4149 | if test "$CXX" = "notfound" | 
|  | 4150 | then | 
|  | 4151 | CXX="" | 
|  | 4152 | fi | 
|  | 4153 | fi | 
|  | 4154 | if test -z "$CXX" | 
|  | 4155 | then | 
|  | 4156 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 4157 | do | 
|  | 4158 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4159 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4161 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4162 | if test "${ac_cv_prog_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4163 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4164 | else | 
|  | 4165 | if test -n "$CXX"; then | 
|  | 4166 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 4167 | else | 
|  | 4168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4169 | for as_dir in $PATH | 
|  | 4170 | do | 
|  | 4171 | IFS=$as_save_IFS | 
|  | 4172 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4173 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4175 | ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4177 | break 2 | 
|  | 4178 | fi | 
|  | 4179 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4180 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4181 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4182 |  | 
|  | 4183 | fi | 
|  | 4184 | fi | 
|  | 4185 | CXX=$ac_cv_prog_CXX | 
|  | 4186 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4188 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4191 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4192 | fi | 
|  | 4193 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4194 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4195 | test -n "$CXX" && break | 
|  | 4196 | done | 
|  | 4197 | test -n "$CXX" || CXX="notfound" | 
|  | 4198 |  | 
|  | 4199 | if test "$CXX" = "notfound" | 
|  | 4200 | then | 
|  | 4201 | CXX="" | 
|  | 4202 | fi | 
|  | 4203 | fi | 
|  | 4204 | if test "$preset_cxx" != "$CXX" | 
|  | 4205 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4207 |  | 
|  | 4208 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4209 | If this is not intended, then set CXX on the configure command line. | 
|  | 4210 | " >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | $as_echo "$as_me: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4212 |  | 
|  | 4213 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4214 | If this is not intended, then set CXX on the configure command line. | 
|  | 4215 | " >&2;} | 
|  | 4216 | fi | 
|  | 4217 |  | 
|  | 4218 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 4220 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 4221 | save_LDFLAGS="$LDFLAGS" | 
|  | 4222 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4225 | /* end confdefs.h.  */ | 
|  | 4226 |  | 
|  | 4227 | int | 
|  | 4228 | main () | 
|  | 4229 | { | 
|  | 4230 |  | 
|  | 4231 | ; | 
|  | 4232 | return 0; | 
|  | 4233 | } | 
|  | 4234 | _ACEOF | 
|  | 4235 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 4236 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4238 | $as_echo "yes" >&6; } | 
|  | 4239 | else | 
|  | 4240 | NO_AS_NEEDED="" | 
|  | 4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4242 | $as_echo "no" >&6; } | 
|  | 4243 | fi | 
|  | 4244 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 4245 | conftest$ac_exeext conftest.$ac_ext | 
|  | 4246 | LDFLAGS="$save_LDFLAGS" | 
|  | 4247 |  | 
|  | 4248 |  | 
|  | 4249 |  | 
|  | 4250 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | ac_ext=c | 
|  | 4252 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4257 | $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] | 4258 | # On Suns, sometimes $CPP names a directory. | 
|  | 4259 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4260 | CPP= | 
|  | 4261 | fi | 
|  | 4262 | if test -z "$CPP"; then | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4263 | if test "${ac_cv_prog_CPP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4264 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4265 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 | # Double quotes because CPP needs to be expanded | 
|  | 4267 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4268 | do | 
|  | 4269 | ac_preproc_ok=false | 
|  | 4270 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4271 | do | 
|  | 4272 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4273 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4274 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4275 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4276 | # 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] | 4277 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4279 | /* end confdefs.h.  */ | 
|  | 4280 | #ifdef __STDC__ | 
|  | 4281 | # include <limits.h> | 
|  | 4282 | #else | 
|  | 4283 | # include <assert.h> | 
|  | 4284 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4285 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4286 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4287 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4289 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | # Broken: fails on valid input. | 
|  | 4291 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4292 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4293 | rm -f conftest.err conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4294 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4295 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4296 | # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4298 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | #include <ac_nonexistent.h> | 
|  | 4300 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4301 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4302 | # Broken: success on invalid input. | 
|  | 4303 | continue | 
|  | 4304 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | # Passes both tests. | 
|  | 4306 | ac_preproc_ok=: | 
|  | 4307 | break | 
|  | 4308 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4309 | rm -f conftest.err conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 |  | 
|  | 4311 | done | 
|  | 4312 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4313 | rm -f conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4314 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4315 | break | 
|  | 4316 | fi | 
|  | 4317 |  | 
|  | 4318 | done | 
|  | 4319 | ac_cv_prog_CPP=$CPP | 
|  | 4320 |  | 
|  | 4321 | fi | 
|  | 4322 | CPP=$ac_cv_prog_CPP | 
|  | 4323 | else | 
|  | 4324 | ac_cv_prog_CPP=$CPP | 
|  | 4325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4327 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4328 | ac_preproc_ok=false | 
|  | 4329 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4330 | do | 
|  | 4331 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4332 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4333 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4334 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4335 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4336 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4338 | /* end confdefs.h.  */ | 
|  | 4339 | #ifdef __STDC__ | 
|  | 4340 | # include <limits.h> | 
|  | 4341 | #else | 
|  | 4342 | # include <assert.h> | 
|  | 4343 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4344 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4345 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4346 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4348 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4349 | # Broken: fails on valid input. | 
|  | 4350 | continue | 
|  | 4351 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4352 | rm -f conftest.err conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4353 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4354 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4355 | # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4357 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4358 | #include <ac_nonexistent.h> | 
|  | 4359 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4360 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4361 | # Broken: success on invalid input. | 
|  | 4362 | continue | 
|  | 4363 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4364 | # Passes both tests. | 
|  | 4365 | ac_preproc_ok=: | 
|  | 4366 | break | 
|  | 4367 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4368 | rm -f conftest.err conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4369 |  | 
|  | 4370 | done | 
|  | 4371 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4372 | rm -f conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4373 | if $ac_preproc_ok; then : | 
|  | 4374 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4375 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4376 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4377 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4378 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | 
|  | 4379 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4380 | fi | 
|  | 4381 |  | 
|  | 4382 | ac_ext=c | 
|  | 4383 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4387 |  | 
|  | 4388 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4390 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4391 | if test "${ac_cv_path_GREP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4392 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4393 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4394 | if test -z "$GREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4395 | ac_path_GREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4396 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4398 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4399 | do | 
|  | 4400 | IFS=$as_save_IFS | 
|  | 4401 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4402 | for ac_prog in grep ggrep; do | 
|  | 4403 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4404 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4405 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
|  | 4406 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4407 | # Check for GNU $ac_path_GREP | 
|  | 4408 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4409 | *GNU*) | 
|  | 4410 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4411 | *) | 
|  | 4412 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4413 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4414 | while : | 
|  | 4415 | do | 
|  | 4416 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4417 | mv "conftest.tmp" "conftest.in" | 
|  | 4418 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4419 | $as_echo 'GREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4420 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4421 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4422 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4423 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4424 | # Best one so far, save it but keep looking for a better one | 
|  | 4425 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4426 | ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4427 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4428 | # 10*(2^10) chars as input seems more than enough | 
|  | 4429 | test $ac_count -gt 10 && break | 
|  | 4430 | done | 
|  | 4431 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4432 | esac | 
|  | 4433 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4434 | $ac_path_GREP_found && break 3 | 
|  | 4435 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4436 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4437 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4438 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4439 | if test -z "$ac_cv_path_GREP"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4440 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4441 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4442 | else | 
|  | 4443 | ac_cv_path_GREP=$GREP | 
|  | 4444 | fi | 
|  | 4445 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4446 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4448 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4449 | GREP="$ac_cv_path_GREP" | 
|  | 4450 |  | 
|  | 4451 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 4453 | $as_echo_n "checking for egrep... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4454 | if test "${ac_cv_path_EGREP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4455 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4456 | else | 
|  | 4457 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4458 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4459 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4460 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4461 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4462 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4464 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4465 | do | 
|  | 4466 | IFS=$as_save_IFS | 
|  | 4467 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4468 | for ac_prog in egrep; do | 
|  | 4469 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4470 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4471 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
|  | 4472 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4473 | # Check for GNU $ac_path_EGREP | 
|  | 4474 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4475 | *GNU*) | 
|  | 4476 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4477 | *) | 
|  | 4478 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4479 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4480 | while : | 
|  | 4481 | do | 
|  | 4482 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4483 | mv "conftest.tmp" "conftest.in" | 
|  | 4484 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4485 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4486 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4487 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4488 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4489 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4490 | # Best one so far, save it but keep looking for a better one | 
|  | 4491 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4492 | ac_path_EGREP_max=$ac_count | 
|  | 4493 | fi | 
|  | 4494 | # 10*(2^10) chars as input seems more than enough | 
|  | 4495 | test $ac_count -gt 10 && break | 
|  | 4496 | done | 
|  | 4497 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4498 | esac | 
|  | 4499 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4500 | $ac_path_EGREP_found && break 3 | 
|  | 4501 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4502 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4503 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4504 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4505 | if test -z "$ac_cv_path_EGREP"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4506 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4508 | else | 
|  | 4509 | ac_cv_path_EGREP=$EGREP | 
|  | 4510 | fi | 
|  | 4511 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4512 | fi | 
|  | 4513 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 4515 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4516 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4517 |  | 
|  | 4518 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 4520 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4521 | if test "${ac_cv_header_stdc+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4522 | $as_echo_n "(cached) " >&6 | 
|  | 4523 | else | 
|  | 4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4525 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4526 | #include <stdlib.h> | 
|  | 4527 | #include <stdarg.h> | 
|  | 4528 | #include <string.h> | 
|  | 4529 | #include <float.h> | 
|  | 4530 |  | 
|  | 4531 | int | 
|  | 4532 | main () | 
|  | 4533 | { | 
|  | 4534 |  | 
|  | 4535 | ; | 
|  | 4536 | return 0; | 
|  | 4537 | } | 
|  | 4538 | _ACEOF | 
|  | 4539 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4540 | ac_cv_header_stdc=yes | 
|  | 4541 | else | 
|  | 4542 | ac_cv_header_stdc=no | 
|  | 4543 | fi | 
|  | 4544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4545 |  | 
|  | 4546 | if test $ac_cv_header_stdc = yes; then | 
|  | 4547 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4549 | /* end confdefs.h.  */ | 
|  | 4550 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4551 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4552 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4554 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4555 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4556 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4557 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4558 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4559 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4561 | fi | 
|  | 4562 |  | 
|  | 4563 | if test $ac_cv_header_stdc = yes; then | 
|  | 4564 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4566 | /* end confdefs.h.  */ | 
|  | 4567 | #include <stdlib.h> | 
|  | 4568 |  | 
|  | 4569 | _ACEOF | 
|  | 4570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4571 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 4572 |  | 
|  | 4573 | else | 
|  | 4574 | ac_cv_header_stdc=no | 
|  | 4575 | fi | 
|  | 4576 | rm -f conftest* | 
|  | 4577 |  | 
|  | 4578 | fi | 
|  | 4579 |  | 
|  | 4580 | if test $ac_cv_header_stdc = yes; then | 
|  | 4581 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 4582 | if test "$cross_compiling" = yes; then : | 
|  | 4583 | : | 
|  | 4584 | else | 
|  | 4585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4586 | /* end confdefs.h.  */ | 
|  | 4587 | #include <ctype.h> | 
|  | 4588 | #include <stdlib.h> | 
|  | 4589 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4590 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4591 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4592 | #else | 
|  | 4593 | # define ISLOWER(c) \ | 
|  | 4594 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4595 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4596 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 4597 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4598 | #endif | 
|  | 4599 |  | 
|  | 4600 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4601 | int | 
|  | 4602 | main () | 
|  | 4603 | { | 
|  | 4604 | int i; | 
|  | 4605 | for (i = 0; i < 256; i++) | 
|  | 4606 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 4607 | || toupper (i) != TOUPPER (i)) | 
|  | 4608 | return 2; | 
|  | 4609 | return 0; | 
|  | 4610 | } | 
|  | 4611 | _ACEOF | 
|  | 4612 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 4613 |  | 
|  | 4614 | else | 
|  | 4615 | ac_cv_header_stdc=no | 
|  | 4616 | fi | 
|  | 4617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4618 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 4619 | fi | 
|  | 4620 |  | 
|  | 4621 | fi | 
|  | 4622 | fi | 
|  | 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 4624 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 4625 | if test $ac_cv_header_stdc = yes; then | 
|  | 4626 |  | 
|  | 4627 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 4628 |  | 
|  | 4629 | fi | 
|  | 4630 |  | 
|  | 4631 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 4632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4633 | inttypes.h stdint.h unistd.h | 
|  | 4634 | do : | 
|  | 4635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4636 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 4637 | " | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 4638 | eval as_val=\$$as_ac_Header | 
|  | 4639 | if test "x$as_val" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4640 | cat >>confdefs.h <<_ACEOF | 
|  | 4641 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 4642 | _ACEOF | 
|  | 4643 |  | 
|  | 4644 | fi | 
|  | 4645 |  | 
|  | 4646 | done | 
|  | 4647 |  | 
|  | 4648 |  | 
|  | 4649 |  | 
|  | 4650 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4651 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4652 | MINIX=yes | 
|  | 4653 | else | 
|  | 4654 | MINIX= | 
|  | 4655 | fi | 
|  | 4656 |  | 
|  | 4657 |  | 
|  | 4658 | if test "$MINIX" = yes; then | 
|  | 4659 |  | 
|  | 4660 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 4661 |  | 
|  | 4662 |  | 
|  | 4663 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 4664 |  | 
|  | 4665 |  | 
|  | 4666 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 4667 |  | 
|  | 4668 | fi | 
|  | 4669 |  | 
|  | 4670 |  | 
|  | 4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 4672 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4673 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4674 | $as_echo_n "(cached) " >&6 | 
|  | 4675 | else | 
|  | 4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4677 | /* end confdefs.h.  */ | 
|  | 4678 |  | 
|  | 4679 | #	  define __EXTENSIONS__ 1 | 
|  | 4680 | $ac_includes_default | 
|  | 4681 | int | 
|  | 4682 | main () | 
|  | 4683 | { | 
|  | 4684 |  | 
|  | 4685 | ; | 
|  | 4686 | return 0; | 
|  | 4687 | } | 
|  | 4688 | _ACEOF | 
|  | 4689 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4690 | ac_cv_safe_to_define___extensions__=yes | 
|  | 4691 | else | 
|  | 4692 | ac_cv_safe_to_define___extensions__=no | 
|  | 4693 | fi | 
|  | 4694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4695 | fi | 
|  | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 4697 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 4698 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 4699 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 4700 |  | 
|  | 4701 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 4702 |  | 
|  | 4703 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 4704 |  | 
|  | 4705 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 4706 |  | 
|  | 4707 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 4708 |  | 
|  | 4709 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4710 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4711 | # Check for unsupported systems | 
|  | 4712 | case $ac_sys_system/$ac_sys_release in | 
|  | 4713 | atheos*|Linux*/1*) | 
|  | 4714 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 4715 | echo See README for details. | 
|  | 4716 | exit 1;; | 
|  | 4717 | esac | 
|  | 4718 |  | 
|  | 4719 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 4721 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4722 |  | 
|  | 4723 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4724 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4725 | withval=$with_suffix; | 
|  | 4726 | case $withval in | 
|  | 4727 | no)	EXEEXT=;; | 
|  | 4728 | yes)	EXEEXT=.exe;; | 
|  | 4729 | *)	EXEEXT=$withval;; | 
|  | 4730 | esac | 
|  | 4731 | fi | 
|  | 4732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 4734 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4735 |  | 
|  | 4736 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 4737 | # case we give a warning if no ext is given | 
|  | 4738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 4740 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4741 | if test ! -d CaseSensitiveTestDir; then | 
|  | 4742 | mkdir CaseSensitiveTestDir | 
|  | 4743 | fi | 
|  | 4744 |  | 
|  | 4745 | if test -d casesensitivetestdir | 
|  | 4746 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4748 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4749 | BUILDEXEEXT=.exe | 
|  | 4750 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4752 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4753 | BUILDEXEEXT=$EXEEXT | 
|  | 4754 | fi | 
|  | 4755 | rmdir CaseSensitiveTestDir | 
|  | 4756 |  | 
|  | 4757 | case $MACHDEP in | 
|  | 4758 | bsdos*) | 
|  | 4759 | case $CC in | 
|  | 4760 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 4761 | esac;; | 
|  | 4762 | esac | 
|  | 4763 |  | 
|  | 4764 | case $ac_sys_system in | 
|  | 4765 | hp*|HP*) | 
|  | 4766 | case $CC in | 
|  | 4767 | cc|*/cc) CC="$CC -Ae";; | 
|  | 4768 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4769 | esac | 
|  | 4770 |  | 
|  | 4771 |  | 
|  | 4772 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 4774 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4775 | if test -z "$LIBRARY" | 
|  | 4776 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4777 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4778 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 4780 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4781 |  | 
|  | 4782 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 4783 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 4784 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 4785 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 4786 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 4787 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 4788 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 4789 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 4790 | # | 
|  | 4791 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 4792 | # | 
|  | 4793 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 4794 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4795 | # | 
|  | 4796 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 4797 | # with the ABI build flags appended. | 
|  | 4798 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4799 |  | 
|  | 4800 |  | 
|  | 4801 |  | 
|  | 4802 |  | 
|  | 4803 |  | 
|  | 4804 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4805 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4806 | LDLIBRARY="$LIBRARY" | 
|  | 4807 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4808 | INSTSONAME='$(LDLIBRARY)' | 
|  | 4809 | DLLLIBRARY='' | 
|  | 4810 | LDLIBRARYDIR='' | 
|  | 4811 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4812 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4813 |  | 
|  | 4814 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 4815 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 4816 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 4817 | # python might then depend on the C++ runtime | 
|  | 4818 | # This is altered for AIX in order to build the export list before | 
|  | 4819 | # linking. | 
|  | 4820 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 4822 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4823 | if test -z "$LINKCC" | 
|  | 4824 | then | 
|  | 4825 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 4826 | case $ac_sys_system in | 
|  | 4827 | AIX*) | 
|  | 4828 | exp_extra="\"\"" | 
|  | 4829 | if test $ac_sys_release -ge 5 -o \ | 
|  | 4830 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 4831 | exp_extra="." | 
|  | 4832 | fi | 
|  | 4833 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4834 | QNX*) | 
|  | 4835 | # qcc must be used because the other compilers do not | 
|  | 4836 | # support -N. | 
|  | 4837 | LINKCC=qcc;; | 
|  | 4838 | esac | 
|  | 4839 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 4841 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4842 |  | 
|  | 4843 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 4844 | # make sure we default having it set to "no": this is used by | 
|  | 4845 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 4846 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 4847 | # in the same bahaviour as before. | 
|  | 4848 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 4850 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4851 | ac_prog=ld | 
|  | 4852 | if test "$GCC" = yes; then | 
|  | 4853 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 4854 | fi | 
|  | 4855 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 4856 | *GNU*) | 
|  | 4857 | GNULD=yes;; | 
|  | 4858 | *) | 
|  | 4859 | GNULD=no;; | 
|  | 4860 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 4862 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4863 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 4865 | $as_echo_n "checking for inline... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4866 | if test "${ac_cv_c_inline+set}" = set; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4867 | $as_echo_n "(cached) " >&6 | 
|  | 4868 | else | 
|  | 4869 | ac_cv_c_inline=no | 
|  | 4870 | for ac_kw in inline __inline__ __inline; do | 
|  | 4871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4872 | /* end confdefs.h.  */ | 
|  | 4873 | #ifndef __cplusplus | 
|  | 4874 | typedef int foo_t; | 
|  | 4875 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 4876 | $ac_kw foo_t foo () {return 0; } | 
|  | 4877 | #endif | 
|  | 4878 |  | 
|  | 4879 | _ACEOF | 
|  | 4880 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4881 | ac_cv_c_inline=$ac_kw | 
|  | 4882 | fi | 
|  | 4883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4884 | test "$ac_cv_c_inline" != no && break | 
|  | 4885 | done | 
|  | 4886 |  | 
|  | 4887 | fi | 
|  | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 4889 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 4890 |  | 
|  | 4891 | case $ac_cv_c_inline in | 
|  | 4892 | inline | yes) ;; | 
|  | 4893 | *) | 
|  | 4894 | case $ac_cv_c_inline in | 
|  | 4895 | no) ac_val=;; | 
|  | 4896 | *) ac_val=$ac_cv_c_inline;; | 
|  | 4897 | esac | 
|  | 4898 | cat >>confdefs.h <<_ACEOF | 
|  | 4899 | #ifndef __cplusplus | 
|  | 4900 | #define inline $ac_val | 
|  | 4901 | #endif | 
|  | 4902 | _ACEOF | 
|  | 4903 | ;; | 
|  | 4904 | esac | 
|  | 4905 |  | 
|  | 4906 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4907 |  | 
|  | 4908 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4909 |  | 
|  | 4910 |  | 
|  | 4911 | fi | 
|  | 4912 |  | 
|  | 4913 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 4915 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4916 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4917 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4918 | enableval=$enable_shared; | 
|  | 4919 | fi | 
|  | 4920 |  | 
|  | 4921 |  | 
|  | 4922 | if test -z "$enable_shared" | 
|  | 4923 | then | 
|  | 4924 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4925 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4926 | enable_shared="yes";; | 
|  | 4927 | *) | 
|  | 4928 | enable_shared="no";; | 
|  | 4929 | esac | 
|  | 4930 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 4932 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 4935 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4936 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4937 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4938 | enableval=$enable_profiling; ac_save_cc="$CC" | 
|  | 4939 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4940 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4941 | ac_enable_profiling="no" | 
|  | 4942 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4944 | /* end confdefs.h.  */ | 
|  | 4945 | int main() { return 0; } | 
|  | 4946 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4947 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4948 | ac_enable_profiling="yes" | 
|  | 4949 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4950 | ac_enable_profiling="no" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4951 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4952 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4953 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4954 | fi | 
|  | 4955 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4956 | CC="$ac_save_cc" | 
|  | 4957 | fi | 
|  | 4958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
|  | 4960 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4961 |  | 
|  | 4962 | case "$ac_enable_profiling" in | 
|  | 4963 | "yes") | 
|  | 4964 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 4965 | LDFLAGS="-pg $LDFLAGS" | 
|  | 4966 | ;; | 
|  | 4967 | esac | 
|  | 4968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 4970 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4971 |  | 
|  | 4972 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 4973 | # library that we build, but we do not want to link against it (we | 
|  | 4974 | # will find it with a -framework option). For this reason there is an | 
|  | 4975 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 4976 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 4977 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 4978 | if test "$enable_framework" | 
|  | 4979 | then | 
|  | 4980 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 4981 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
|  | 4982 | BLDLIBRARY='' | 
|  | 4983 | else | 
|  | 4984 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4985 | fi | 
|  | 4986 |  | 
|  | 4987 | # Other platforms follow | 
|  | 4988 | if test $enable_shared = "yes"; then | 
|  | 4989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4990 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4991 |  | 
|  | 4992 | case $ac_sys_system in | 
|  | 4993 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4994 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 4995 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4996 | ;; | 
|  | 4997 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4998 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 4999 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5000 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 5001 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5002 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5003 | then | 
|  | 5004 | PY3LIBRARY=libpython3.so | 
|  | 5005 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5006 | ;; | 
|  | 5007 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5008 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5009 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5010 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 5011 | case $ac_sys_system in | 
|  | 5012 | FreeBSD*) | 
|  | 5013 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
|  | 5014 | ;; | 
|  | 5015 | esac | 
|  | 5016 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5017 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5018 | then | 
|  | 5019 | PY3LIBRARY=libpython3.so | 
|  | 5020 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5021 | ;; | 
|  | 5022 | hp*|HP*) | 
|  | 5023 | case `uname -m` in | 
|  | 5024 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5025 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5026 | ;; | 
|  | 5027 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5028 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5029 | ;; | 
|  | 5030 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5031 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5032 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
|  | 5033 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5034 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5035 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 5036 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5037 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
|  | 5038 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5039 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5040 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5041 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
|  | 5042 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5043 |  | 
|  | 5044 | esac | 
|  | 5045 | else # shared is disabled | 
|  | 5046 | case $ac_sys_system in | 
|  | 5047 | CYGWIN*) | 
|  | 5048 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5049 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5050 | ;; | 
|  | 5051 | esac | 
|  | 5052 | fi | 
|  | 5053 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 5055 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5056 |  | 
|  | 5057 | if test -n "$ac_tool_prefix"; then | 
|  | 5058 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5059 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5061 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5062 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5063 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5064 | else | 
|  | 5065 | if test -n "$RANLIB"; then | 
|  | 5066 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5067 | else | 
|  | 5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5069 | for as_dir in $PATH | 
|  | 5070 | do | 
|  | 5071 | IFS=$as_save_IFS | 
|  | 5072 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5073 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5075 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5077 | break 2 | 
|  | 5078 | fi | 
|  | 5079 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5080 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5081 | IFS=$as_save_IFS | 
|  | 5082 |  | 
|  | 5083 | fi | 
|  | 5084 | fi | 
|  | 5085 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5086 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5088 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5089 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5091 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5092 | fi | 
|  | 5093 |  | 
|  | 5094 |  | 
|  | 5095 | fi | 
|  | 5096 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 5097 | ac_ct_RANLIB=$RANLIB | 
|  | 5098 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 5099 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5101 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5102 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5103 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5104 | else | 
|  | 5105 | if test -n "$ac_ct_RANLIB"; then | 
|  | 5106 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 5107 | else | 
|  | 5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5109 | for as_dir in $PATH | 
|  | 5110 | do | 
|  | 5111 | IFS=$as_save_IFS | 
|  | 5112 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5113 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5115 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5117 | break 2 | 
|  | 5118 | fi | 
|  | 5119 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5120 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5121 | IFS=$as_save_IFS | 
|  | 5122 |  | 
|  | 5123 | fi | 
|  | 5124 | fi | 
|  | 5125 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 5126 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 5128 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5129 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5131 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5132 | fi | 
|  | 5133 |  | 
|  | 5134 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 5135 | RANLIB=":" | 
|  | 5136 | else | 
|  | 5137 | case $cross_compiling:$ac_tool_warned in | 
|  | 5138 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5141 | ac_tool_warned=yes ;; | 
|  | 5142 | esac | 
|  | 5143 | RANLIB=$ac_ct_RANLIB | 
|  | 5144 | fi | 
|  | 5145 | else | 
|  | 5146 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 5147 | fi | 
|  | 5148 |  | 
|  | 5149 |  | 
|  | 5150 | for ac_prog in ar aal | 
|  | 5151 | do | 
|  | 5152 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5153 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5155 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5156 | if test "${ac_cv_prog_AR+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5157 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5158 | else | 
|  | 5159 | if test -n "$AR"; then | 
|  | 5160 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 5161 | else | 
|  | 5162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5163 | for as_dir in $PATH | 
|  | 5164 | do | 
|  | 5165 | IFS=$as_save_IFS | 
|  | 5166 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5167 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5169 | ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5171 | break 2 | 
|  | 5172 | fi | 
|  | 5173 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5174 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5175 | IFS=$as_save_IFS | 
|  | 5176 |  | 
|  | 5177 | fi | 
|  | 5178 | fi | 
|  | 5179 | AR=$ac_cv_prog_AR | 
|  | 5180 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 5182 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5185 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5186 | fi | 
|  | 5187 |  | 
|  | 5188 |  | 
|  | 5189 | test -n "$AR" && break | 
|  | 5190 | done | 
|  | 5191 | test -n "$AR" || AR="ar" | 
|  | 5192 |  | 
|  | 5193 |  | 
|  | 5194 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 5195 |  | 
|  | 5196 | if test -z "$ARFLAGS" | 
|  | 5197 | then | 
|  | 5198 | ARFLAGS="rc" | 
|  | 5199 | fi | 
|  | 5200 |  | 
|  | 5201 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 5202 | DISABLE_ASDLGEN="" | 
|  | 5203 | # Extract the first word of "python", so it can be a program name with args. | 
|  | 5204 | set dummy python; ac_word=$2 | 
|  | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5206 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5207 | if test "${ac_cv_prog_HAS_PYTHON+set}" = set; then : | 
|  | 5208 | $as_echo_n "(cached) " >&6 | 
|  | 5209 | else | 
|  | 5210 | if test -n "$HAS_PYTHON"; then | 
|  | 5211 | ac_cv_prog_HAS_PYTHON="$HAS_PYTHON" # Let the user override the test. | 
|  | 5212 | else | 
|  | 5213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5214 | for as_dir in $PATH | 
|  | 5215 | do | 
|  | 5216 | IFS=$as_save_IFS | 
|  | 5217 | test -z "$as_dir" && as_dir=. | 
|  | 5218 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5220 | ac_cv_prog_HAS_PYTHON="found" | 
|  | 5221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5222 | break 2 | 
|  | 5223 | fi | 
|  | 5224 | done | 
|  | 5225 | done | 
|  | 5226 | IFS=$as_save_IFS | 
|  | 5227 |  | 
|  | 5228 | test -z "$ac_cv_prog_HAS_PYTHON" && ac_cv_prog_HAS_PYTHON="not-found" | 
|  | 5229 | fi | 
|  | 5230 | fi | 
|  | 5231 | HAS_PYTHON=$ac_cv_prog_HAS_PYTHON | 
|  | 5232 | if test -n "$HAS_PYTHON"; then | 
|  | 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PYTHON" >&5 | 
|  | 5234 | $as_echo "$HAS_PYTHON" >&6; } | 
|  | 5235 | else | 
|  | 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5237 | $as_echo "no" >&6; } | 
|  | 5238 | fi | 
|  | 5239 |  | 
|  | 5240 |  | 
|  | 5241 | if test $HAS_HG != found -o $HAS_PYTHON != found | 
|  | 5242 | then | 
|  | 5243 | DISABLE_ASDLGEN="@echo hg: $HAS_HG, python: $HAS_PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" | 
|  | 5244 | fi | 
|  | 5245 |  | 
|  | 5246 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5247 | case $MACHDEP in | 
|  | 5248 | bsdos*|hp*|HP*) | 
|  | 5249 | # install -d does not work on BSDI or HP-UX | 
|  | 5250 | if test -z "$INSTALL" | 
|  | 5251 | then | 
|  | 5252 | INSTALL="${srcdir}/install-sh -c" | 
|  | 5253 | fi | 
|  | 5254 | esac | 
|  | 5255 | ac_aux_dir= | 
|  | 5256 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 5257 | for ac_t in install-sh install.sh shtool; do | 
|  | 5258 | if test -f "$ac_dir/$ac_t"; then | 
|  | 5259 | ac_aux_dir=$ac_dir | 
|  | 5260 | ac_install_sh="$ac_aux_dir/$ac_t -c" | 
|  | 5261 | break 2 | 
|  | 5262 | fi | 
|  | 5263 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5264 | done | 
|  | 5265 | if test -z "$ac_aux_dir"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 5266 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5267 | fi | 
|  | 5268 |  | 
|  | 5269 | # These three variables are undocumented and unsupported, | 
|  | 5270 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 5271 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 5272 | # whose full name contains unusual characters. | 
|  | 5273 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 5274 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 5275 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 5276 |  | 
|  | 5277 |  | 
|  | 5278 | # Find a good install program.  We prefer a C program (faster), | 
|  | 5279 | # so one script is as good as another.  But avoid the broken or | 
|  | 5280 | # incompatible versions: | 
|  | 5281 | # SysV /etc/install, /usr/sbin/install | 
|  | 5282 | # SunOS /usr/etc/install | 
|  | 5283 | # IRIX /sbin/install | 
|  | 5284 | # AIX /bin/install | 
|  | 5285 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 5286 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 5287 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 5288 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 5289 | # OS/2's system install, which has a completely different semantic | 
|  | 5290 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5291 | # Reject install programs that cannot install multiple files. | 
|  | 5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 5293 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5294 | if test -z "$INSTALL"; then | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5295 | if test "${ac_cv_path_install+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5296 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5297 | else | 
|  | 5298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5299 | for as_dir in $PATH | 
|  | 5300 | do | 
|  | 5301 | IFS=$as_save_IFS | 
|  | 5302 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5303 | # Account for people who put trailing slashes in PATH elements. | 
|  | 5304 | case $as_dir/ in #(( | 
|  | 5305 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5306 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5307 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5308 | /usr/ucb/* ) ;; | 
|  | 5309 | *) | 
|  | 5310 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 5311 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 5312 | # by default. | 
|  | 5313 | for ac_prog in ginstall scoinst install; do | 
|  | 5314 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5315 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
|  | 5316 | if test $ac_prog = install && | 
|  | 5317 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5318 | # AIX install.  It has an incompatible calling convention. | 
|  | 5319 | : | 
|  | 5320 | elif test $ac_prog = install && | 
|  | 5321 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5322 | # program-specific install script used by HP pwplus--don't use. | 
|  | 5323 | : | 
|  | 5324 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5325 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 5326 | echo one > conftest.one | 
|  | 5327 | echo two > conftest.two | 
|  | 5328 | mkdir conftest.dir | 
|  | 5329 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 5330 | test -s conftest.one && test -s conftest.two && | 
|  | 5331 | test -s conftest.dir/conftest.one && | 
|  | 5332 | test -s conftest.dir/conftest.two | 
|  | 5333 | then | 
|  | 5334 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 5335 | break 3 | 
|  | 5336 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5337 | fi | 
|  | 5338 | fi | 
|  | 5339 | done | 
|  | 5340 | done | 
|  | 5341 | ;; | 
|  | 5342 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5343 |  | 
|  | 5344 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5345 | IFS=$as_save_IFS | 
|  | 5346 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5347 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5348 |  | 
|  | 5349 | fi | 
|  | 5350 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5351 | INSTALL=$ac_cv_path_install | 
|  | 5352 | else | 
|  | 5353 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 5354 | # value for INSTALL within a source directory, because that will | 
|  | 5355 | # break other packages using the cache if that directory is | 
|  | 5356 | # removed, or if the value is a relative name. | 
|  | 5357 | INSTALL=$ac_install_sh | 
|  | 5358 | fi | 
|  | 5359 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 5361 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5362 |  | 
|  | 5363 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 5364 | # It thinks the first close brace ends the variable substitution. | 
|  | 5365 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 5366 |  | 
|  | 5367 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 5368 |  | 
|  | 5369 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 5370 |  | 
|  | 5371 |  | 
|  | 5372 | # Not every filesystem supports hard links | 
|  | 5373 |  | 
|  | 5374 | if test -z "$LN" ; then | 
|  | 5375 | case $ac_sys_system in | 
|  | 5376 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5377 | *) LN=ln;; | 
|  | 5378 | esac | 
|  | 5379 | fi | 
|  | 5380 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5381 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5382 |  | 
|  | 5383 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5384 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5385 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 5387 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5388 |  | 
|  | 5389 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5390 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5391 | withval=$with_pydebug; | 
|  | 5392 | if test "$withval" != no | 
|  | 5393 | then | 
|  | 5394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5395 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5396 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5398 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5399 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5400 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5401 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5402 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5403 | fi | 
|  | 5404 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5406 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5407 | fi | 
|  | 5408 |  | 
|  | 5409 |  | 
|  | 5410 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 5411 | # merged with this chunk of code? | 
|  | 5412 |  | 
|  | 5413 | # Optimizer/debugger flags | 
|  | 5414 | # ------------------------ | 
|  | 5415 | # (The following bit of code is complicated enough - please keep things | 
|  | 5416 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 5417 |  | 
|  | 5418 | # There are two parallel sets of case statements below, one that checks to | 
|  | 5419 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 5420 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 5421 | # user set OPT. | 
|  | 5422 |  | 
|  | 5423 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 5424 | # it on the command line | 
|  | 5425 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5426 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5427 | then | 
|  | 5428 | case $GCC in | 
|  | 5429 | yes) | 
|  | 5430 | if test "$CC" != 'g++' ; then | 
|  | 5431 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 5432 | fi | 
|  | 5433 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 5434 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 5435 | WRAP="-fwrapv" | 
|  | 5436 | fi | 
|  | 5437 | case $ac_cv_prog_cc_g in | 
|  | 5438 | yes) | 
|  | 5439 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 5440 | # Optimization messes up debuggers, so turn it off for | 
|  | 5441 | # debug builds. | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5442 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5443 | else | 
|  | 5444 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 5445 | fi | 
|  | 5446 | ;; | 
|  | 5447 | *) | 
|  | 5448 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 5449 | ;; | 
|  | 5450 | esac | 
|  | 5451 | case $ac_sys_system in | 
|  | 5452 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 5453 | ;; | 
|  | 5454 | esac | 
|  | 5455 | ;; | 
|  | 5456 |  | 
|  | 5457 | *) | 
|  | 5458 | OPT="-O" | 
|  | 5459 | ;; | 
|  | 5460 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5461 | fi | 
|  | 5462 |  | 
|  | 5463 |  | 
|  | 5464 |  | 
|  | 5465 | # The -arch flags for universal builds on OSX | 
|  | 5466 | UNIVERSAL_ARCH_FLAGS= | 
|  | 5467 |  | 
|  | 5468 |  | 
|  | 5469 | # tweak BASECFLAGS based on compiler and platform | 
|  | 5470 | case $GCC in | 
|  | 5471 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5472 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 5473 | # GCC produce warnings for legal Python code.  Enable | 
|  | 5474 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 5475 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 5477 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5478 | ac_save_cc="$CC" | 
|  | 5479 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5480 | save_CFLAGS="$CFLAGS" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5481 | if test "${ac_cv_no_strict_aliasing+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5482 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5483 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5485 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5486 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5487 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5488 | int | 
|  | 5489 | main () | 
|  | 5490 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5491 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5492 | ; | 
|  | 5493 | return 0; | 
|  | 5494 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5495 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5496 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5497 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5498 |  | 
|  | 5499 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 5500 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 5501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5502 | /* end confdefs.h.  */ | 
|  | 5503 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5504 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5505 | int | 
|  | 5506 | main () | 
|  | 5507 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5508 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5509 | ; | 
|  | 5510 | return 0; | 
|  | 5511 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5512 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5513 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5514 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5515 |  | 
|  | 5516 | ac_cv_no_strict_aliasing=no | 
|  | 5517 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5518 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5519 |  | 
|  | 5520 | ac_cv_no_strict_aliasing=yes | 
|  | 5521 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5522 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5524 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5525 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5526 |  | 
|  | 5527 | ac_cv_no_strict_aliasing=no | 
|  | 5528 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5529 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5531 | fi | 
|  | 5532 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5533 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5534 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 5536 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5537 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5538 | then | 
|  | 5539 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 5540 | fi | 
|  | 5541 |  | 
|  | 5542 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 5543 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 5544 | # the standard. | 
|  | 5545 | case $ac_sys_machine in | 
|  | 5546 | alpha*) | 
|  | 5547 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 5548 | ;; | 
|  | 5549 | esac | 
|  | 5550 |  | 
|  | 5551 | case $ac_sys_system in | 
|  | 5552 | SCO_SV*) | 
|  | 5553 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 5554 | ;; | 
|  | 5555 | # is there any other compiler on Darwin besides gcc? | 
|  | 5556 | Darwin*) | 
|  | 5557 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 5558 | # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5559 | if test "${CC}" = gcc | 
|  | 5560 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
|  | 5562 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5563 | case "${UNIVERSALSDK}" in | 
|  | 5564 | */MacOSX10.4u.sdk) | 
|  | 5565 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 5566 | # compiler is gcc, otherwise the user will get very | 
|  | 5567 | # confusing error messages when building on OSX 10.6 | 
|  | 5568 | CC=gcc-4.0 | 
|  | 5569 | CPP=cpp-4.0 | 
|  | 5570 | ;; | 
|  | 5571 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5573 | $as_echo "$CC" >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5574 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5575 |  | 
|  | 5576 |  | 
|  | 5577 | if test "${enable_universalsdk}"; then | 
|  | 5578 | UNIVERSAL_ARCH_FLAGS="" | 
|  | 5579 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
|  | 5580 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 5581 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5582 | LIPO_32BIT_FLAGS="" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5583 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
|  | 5584 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5585 | LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5586 | ARCH_RUN_32BIT="true" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5587 |  | 
|  | 5588 | elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
|  | 5589 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5590 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5591 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5592 |  | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5593 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
|  | 5594 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5595 | LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5596 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5597 |  | 
|  | 5598 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
|  | 5599 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5600 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5601 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5602 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5603 | else | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 5604 | as_fn_error "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5605 |  | 
|  | 5606 | fi | 
|  | 5607 |  | 
|  | 5608 |  | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5609 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 5610 | if test "${UNIVERSALSDK}" != "/" | 
|  | 5611 | then | 
|  | 5612 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 5613 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5614 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5615 | fi | 
|  | 5616 | fi | 
|  | 5617 |  | 
|  | 5618 | # Calculate the right deployment target for this build. | 
|  | 5619 | # | 
|  | 5620 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
|  | 5621 | if test ${cur_target} '>' 10.2; then | 
|  | 5622 | cur_target=10.3 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5623 | if test ${enable_universalsdk}; then | 
|  | 5624 | if test "${UNIVERSAL_ARCHS}" = "all"; then | 
|  | 5625 | # Ensure that the default platform for a | 
|  | 5626 | # 4-way universal build is OSX 10.5, | 
|  | 5627 | # that's the first OS release where | 
|  | 5628 | # 4-way builds make sense. | 
|  | 5629 | cur_target='10.5' | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5630 |  | 
|  | 5631 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
|  | 5632 | cur_target='10.5' | 
|  | 5633 |  | 
|  | 5634 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
|  | 5635 | cur_target='10.5' | 
|  | 5636 |  | 
|  | 5637 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
|  | 5638 | cur_target='10.5' | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5639 | fi | 
|  | 5640 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5641 | if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5642 | # On Intel macs default to a deployment | 
|  | 5643 | # target of 10.4, that's the first OSX | 
|  | 5644 | # release with Intel support. | 
|  | 5645 | cur_target="10.4" | 
|  | 5646 | fi | 
|  | 5647 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5648 | fi | 
|  | 5649 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
|  | 5650 |  | 
|  | 5651 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 5652 | # environment with a value that is the same as what we'll use | 
|  | 5653 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 5654 | # environment during configure and build time. | 
|  | 5655 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 5656 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 5657 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 5658 |  | 
|  | 5659 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5660 | esac | 
|  | 5661 | ;; | 
|  | 5662 |  | 
|  | 5663 | *) | 
|  | 5664 | case $ac_sys_system in | 
|  | 5665 | OpenUNIX*|UnixWare*) | 
|  | 5666 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 5667 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5668 | SCO_SV*) | 
|  | 5669 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 5670 | ;; | 
|  | 5671 | esac | 
|  | 5672 | ;; | 
|  | 5673 | esac | 
|  | 5674 |  | 
|  | 5675 | if test "$Py_DEBUG" = 'true'; then | 
|  | 5676 | : | 
|  | 5677 | else | 
|  | 5678 | OPT="-DNDEBUG $OPT" | 
|  | 5679 | fi | 
|  | 5680 |  | 
|  | 5681 | if test "$ac_arch_flags" | 
|  | 5682 | then | 
|  | 5683 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 5684 | fi | 
|  | 5685 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5686 | # Check whether GCC supports PyArg_ParseTuple format | 
|  | 5687 | if test "$GCC" = "yes" | 
|  | 5688 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
|  | 5690 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5691 | save_CFLAGS=$CFLAGS | 
|  | 5692 | CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5694 | /* end confdefs.h.  */ | 
|  | 5695 |  | 
|  | 5696 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5697 | int | 
|  | 5698 | main () | 
|  | 5699 | { | 
|  | 5700 |  | 
|  | 5701 | ; | 
|  | 5702 | return 0; | 
|  | 5703 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5704 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5705 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5706 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5707 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5709 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5710 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5712 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5713 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5714 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5715 |  | 
|  | 5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5717 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5718 |  | 
|  | 5719 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5721 | CFLAGS=$save_CFLAGS | 
|  | 5722 | fi | 
|  | 5723 |  | 
|  | 5724 | # On some compilers, pthreads are available without further options | 
|  | 5725 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 5726 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 5727 | # So we have to see first whether pthreads are available without | 
|  | 5728 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 5730 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5731 | if test "${ac_cv_pthread_is_default+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5732 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5734 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | ac_cv_pthread_is_default=no | 
|  | 5736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5738 | /* end confdefs.h.  */ | 
|  | 5739 |  | 
|  | 5740 | #include <pthread.h> | 
|  | 5741 |  | 
|  | 5742 | void* routine(void* p){return NULL;} | 
|  | 5743 |  | 
|  | 5744 | int main(){ | 
|  | 5745 | pthread_t p; | 
|  | 5746 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5747 | return 1; | 
|  | 5748 | (void)pthread_detach(p); | 
|  | 5749 | return 0; | 
|  | 5750 | } | 
|  | 5751 |  | 
|  | 5752 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5753 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 |  | 
|  | 5755 | ac_cv_pthread_is_default=yes | 
|  | 5756 | ac_cv_kthread=no | 
|  | 5757 | ac_cv_pthread=no | 
|  | 5758 |  | 
|  | 5759 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5760 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5761 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5763 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | fi | 
|  | 5765 |  | 
|  | 5766 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5767 | fi | 
|  | 5768 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 5770 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5771 |  | 
|  | 5772 |  | 
|  | 5773 | if test $ac_cv_pthread_is_default = yes | 
|  | 5774 | then | 
|  | 5775 | ac_cv_kpthread=no | 
|  | 5776 | else | 
|  | 5777 | # -Kpthread, if available, provides the right #defines | 
|  | 5778 | # and linker options to make pthread_create available | 
|  | 5779 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 5780 | # so we need to run a program to see whether it really made the | 
|  | 5781 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 5783 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5784 | if test "${ac_cv_kpthread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5785 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5786 | else | 
|  | 5787 | ac_save_cc="$CC" | 
|  | 5788 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5789 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5790 | ac_cv_kpthread=no | 
|  | 5791 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5793 | /* end confdefs.h.  */ | 
|  | 5794 |  | 
|  | 5795 | #include <pthread.h> | 
|  | 5796 |  | 
|  | 5797 | void* routine(void* p){return NULL;} | 
|  | 5798 |  | 
|  | 5799 | int main(){ | 
|  | 5800 | pthread_t p; | 
|  | 5801 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5802 | return 1; | 
|  | 5803 | (void)pthread_detach(p); | 
|  | 5804 | return 0; | 
|  | 5805 | } | 
|  | 5806 |  | 
|  | 5807 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5808 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | ac_cv_kpthread=yes | 
|  | 5810 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5811 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5812 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5813 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5814 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5815 | fi | 
|  | 5816 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | CC="$ac_save_cc" | 
|  | 5818 | fi | 
|  | 5819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 5821 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5822 | fi | 
|  | 5823 |  | 
|  | 5824 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5825 | then | 
|  | 5826 | # -Kthread, if available, provides the right #defines | 
|  | 5827 | # and linker options to make pthread_create available | 
|  | 5828 | # Some compilers won't report that they do not support -Kthread, | 
|  | 5829 | # so we need to run a program to see whether it really made the | 
|  | 5830 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 5832 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5833 | if test "${ac_cv_kthread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5834 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 | else | 
|  | 5836 | ac_save_cc="$CC" | 
|  | 5837 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5838 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5839 | ac_cv_kthread=no | 
|  | 5840 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5842 | /* end confdefs.h.  */ | 
|  | 5843 |  | 
|  | 5844 | #include <pthread.h> | 
|  | 5845 |  | 
|  | 5846 | void* routine(void* p){return NULL;} | 
|  | 5847 |  | 
|  | 5848 | int main(){ | 
|  | 5849 | pthread_t p; | 
|  | 5850 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5851 | return 1; | 
|  | 5852 | (void)pthread_detach(p); | 
|  | 5853 | return 0; | 
|  | 5854 | } | 
|  | 5855 |  | 
|  | 5856 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5857 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5858 | ac_cv_kthread=yes | 
|  | 5859 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5860 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5861 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5862 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5863 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5864 | fi | 
|  | 5865 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5866 | CC="$ac_save_cc" | 
|  | 5867 | fi | 
|  | 5868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 5870 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5871 | fi | 
|  | 5872 |  | 
|  | 5873 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5874 | then | 
|  | 5875 | # -pthread, if available, provides the right #defines | 
|  | 5876 | # and linker options to make pthread_create available | 
|  | 5877 | # Some compilers won't report that they do not support -pthread, | 
|  | 5878 | # so we need to run a program to see whether it really made the | 
|  | 5879 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 5881 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5882 | if test "${ac_cv_thread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5883 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 | else | 
|  | 5885 | ac_save_cc="$CC" | 
|  | 5886 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5887 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5888 | ac_cv_pthread=no | 
|  | 5889 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5891 | /* end confdefs.h.  */ | 
|  | 5892 |  | 
|  | 5893 | #include <pthread.h> | 
|  | 5894 |  | 
|  | 5895 | void* routine(void* p){return NULL;} | 
|  | 5896 |  | 
|  | 5897 | int main(){ | 
|  | 5898 | pthread_t p; | 
|  | 5899 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5900 | return 1; | 
|  | 5901 | (void)pthread_detach(p); | 
|  | 5902 | return 0; | 
|  | 5903 | } | 
|  | 5904 |  | 
|  | 5905 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5906 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5907 | ac_cv_pthread=yes | 
|  | 5908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5909 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5911 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5912 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | fi | 
|  | 5914 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5915 | CC="$ac_save_cc" | 
|  | 5916 | fi | 
|  | 5917 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 5919 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5920 | fi | 
|  | 5921 |  | 
|  | 5922 | # If we have set a CC compiler flag for thread support then | 
|  | 5923 | # check if it works for CXX, too. | 
|  | 5924 | ac_cv_cxx_thread=no | 
|  | 5925 | if test ! -z "$CXX" | 
|  | 5926 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 5928 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5929 | ac_save_cxx="$CXX" | 
|  | 5930 |  | 
|  | 5931 | if test "$ac_cv_kpthread" = "yes" | 
|  | 5932 | then | 
|  | 5933 | CXX="$CXX -Kpthread" | 
|  | 5934 | ac_cv_cxx_thread=yes | 
|  | 5935 | elif test "$ac_cv_kthread" = "yes" | 
|  | 5936 | then | 
|  | 5937 | CXX="$CXX -Kthread" | 
|  | 5938 | ac_cv_cxx_thread=yes | 
|  | 5939 | elif test "$ac_cv_pthread" = "yes" | 
|  | 5940 | then | 
|  | 5941 | CXX="$CXX -pthread" | 
|  | 5942 | ac_cv_cxx_thread=yes | 
|  | 5943 | fi | 
|  | 5944 |  | 
|  | 5945 | if test $ac_cv_cxx_thread = yes | 
|  | 5946 | then | 
|  | 5947 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 5948 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 5949 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 5950 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 5951 | then | 
|  | 5952 | ac_cv_cxx_thread=yes | 
|  | 5953 | else | 
|  | 5954 | ac_cv_cxx_thread=no | 
|  | 5955 | fi | 
|  | 5956 | rm -fr conftest* | 
|  | 5957 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 5959 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5960 | fi | 
|  | 5961 | CXX="$ac_save_cxx" | 
|  | 5962 |  | 
|  | 5963 |  | 
|  | 5964 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5966 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5967 | if test "${ac_cv_header_stdc+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5968 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5969 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5971 | /* end confdefs.h.  */ | 
|  | 5972 | #include <stdlib.h> | 
|  | 5973 | #include <stdarg.h> | 
|  | 5974 | #include <string.h> | 
|  | 5975 | #include <float.h> | 
|  | 5976 |  | 
|  | 5977 | int | 
|  | 5978 | main () | 
|  | 5979 | { | 
|  | 5980 |  | 
|  | 5981 | ; | 
|  | 5982 | return 0; | 
|  | 5983 | } | 
|  | 5984 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5985 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5986 | ac_cv_header_stdc=yes | 
|  | 5987 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5988 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5991 |  | 
|  | 5992 | if test $ac_cv_header_stdc = yes; then | 
|  | 5993 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5995 | /* end confdefs.h.  */ | 
|  | 5996 | #include <string.h> | 
|  | 5997 |  | 
|  | 5998 | _ACEOF | 
|  | 5999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6000 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 6001 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6002 | else | 
|  | 6003 | ac_cv_header_stdc=no | 
|  | 6004 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6005 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6006 |  | 
|  | 6007 | fi | 
|  | 6008 |  | 
|  | 6009 | if test $ac_cv_header_stdc = yes; then | 
|  | 6010 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6012 | /* end confdefs.h.  */ | 
|  | 6013 | #include <stdlib.h> | 
|  | 6014 |  | 
|  | 6015 | _ACEOF | 
|  | 6016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6017 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 6018 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6019 | else | 
|  | 6020 | ac_cv_header_stdc=no | 
|  | 6021 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6022 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6023 |  | 
|  | 6024 | fi | 
|  | 6025 |  | 
|  | 6026 | if test $ac_cv_header_stdc = yes; then | 
|  | 6027 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6028 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6029 | : | 
|  | 6030 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6032 | /* end confdefs.h.  */ | 
|  | 6033 | #include <ctype.h> | 
|  | 6034 | #include <stdlib.h> | 
|  | 6035 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 6036 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 6037 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 6038 | #else | 
|  | 6039 | # define ISLOWER(c) \ | 
|  | 6040 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 6041 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 6042 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 6043 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 6044 | #endif | 
|  | 6045 |  | 
|  | 6046 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 6047 | int | 
|  | 6048 | main () | 
|  | 6049 | { | 
|  | 6050 | int i; | 
|  | 6051 | for (i = 0; i < 256; i++) | 
|  | 6052 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 6053 | || toupper (i) != TOUPPER (i)) | 
|  | 6054 | return 2; | 
|  | 6055 | return 0; | 
|  | 6056 | } | 
|  | 6057 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6058 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 6059 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6060 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6061 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6063 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6064 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6065 | fi | 
|  | 6066 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6067 | fi | 
|  | 6068 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 6070 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6071 | if test $ac_cv_header_stdc = yes; then | 
|  | 6072 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6073 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6074 |  | 
|  | 6075 | fi | 
|  | 6076 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6077 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
|  | 6078 | fcntl.h grp.h \ | 
| Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6079 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6080 | 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] | 6081 | unistd.h utime.h \ | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6082 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
|  | 6083 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 6084 | sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
|  | 6085 | sys/stat.h sys/termio.h sys/time.h \ | 
|  | 6086 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 6087 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6088 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6089 | do : | 
|  | 6090 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 6091 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6092 | eval as_val=\$$as_ac_Header | 
|  | 6093 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6094 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6096 | _ACEOF | 
|  | 6097 |  | 
|  | 6098 | fi | 
|  | 6099 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6100 | done | 
|  | 6101 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6102 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6103 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6104 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 6106 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6107 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6108 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6109 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6111 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6112 | #include <sys/types.h> | 
|  | 6113 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6115 | int | 
|  | 6116 | main () | 
|  | 6117 | { | 
|  | 6118 | if ((DIR *) 0) | 
|  | 6119 | return 0; | 
|  | 6120 | ; | 
|  | 6121 | return 0; | 
|  | 6122 | } | 
|  | 6123 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6124 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6126 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6127 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6128 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6130 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | eval ac_res=\$$as_ac_Header | 
|  | 6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 6133 | $as_echo "$ac_res" >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6134 | eval as_val=\$$as_ac_Header | 
|  | 6135 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6137 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6138 | _ACEOF | 
|  | 6139 |  | 
|  | 6140 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6141 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6142 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6143 | done | 
|  | 6144 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 6145 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6147 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6148 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6149 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6150 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6151 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6153 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6154 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6155 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6156 | Use char because int might match the return type of a GCC | 
|  | 6157 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | #ifdef __cplusplus | 
|  | 6159 | extern "C" | 
|  | 6160 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6161 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | int | 
|  | 6163 | main () | 
|  | 6164 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6165 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6166 | ; | 
|  | 6167 | return 0; | 
|  | 6168 | } | 
|  | 6169 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6170 | for ac_lib in '' dir; do | 
|  | 6171 | if test -z "$ac_lib"; then | 
|  | 6172 | ac_res="none required" | 
|  | 6173 | else | 
|  | 6174 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6175 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6177 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6178 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6179 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6180 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6181 | conftest$ac_exeext | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6182 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6183 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6184 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6185 | done | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6186 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6187 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6188 | else | 
|  | 6189 | ac_cv_search_opendir=no | 
|  | 6190 | fi | 
|  | 6191 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | LIBS=$ac_func_search_save_LIBS | 
|  | 6193 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6195 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6196 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6197 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6198 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6199 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6200 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6202 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6204 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6205 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6206 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | else | 
|  | 6208 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6210 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6211 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6212 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6213 | Use char because int might match the return type of a GCC | 
|  | 6214 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | #ifdef __cplusplus | 
|  | 6216 | extern "C" | 
|  | 6217 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6218 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 | int | 
|  | 6220 | main () | 
|  | 6221 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6222 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6223 | ; | 
|  | 6224 | return 0; | 
|  | 6225 | } | 
|  | 6226 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6227 | for ac_lib in '' x; do | 
|  | 6228 | if test -z "$ac_lib"; then | 
|  | 6229 | ac_res="none required" | 
|  | 6230 | else | 
|  | 6231 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6232 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6233 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6234 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6235 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6236 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6237 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6238 | conftest$ac_exeext | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6239 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6240 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6241 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6242 | done | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6243 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6245 | else | 
|  | 6246 | ac_cv_search_opendir=no | 
|  | 6247 | fi | 
|  | 6248 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | LIBS=$ac_func_search_save_LIBS | 
|  | 6250 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6252 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6253 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6254 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6255 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6257 | fi | 
|  | 6258 |  | 
|  | 6259 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6260 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 6262 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6263 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6264 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6265 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6267 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6268 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6269 | int | 
|  | 6270 | main () | 
|  | 6271 | { | 
|  | 6272 | return makedev(0, 0); | 
|  | 6273 | ; | 
|  | 6274 | return 0; | 
|  | 6275 | } | 
|  | 6276 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6277 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6278 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 6279 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6280 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6282 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6283 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6284 |  | 
|  | 6285 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 6287 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6288 |  | 
|  | 6289 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6290 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6291 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6293 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6294 |  | 
|  | 6295 | fi | 
|  | 6296 |  | 
|  | 6297 |  | 
|  | 6298 |  | 
|  | 6299 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6300 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6301 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6303 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6304 |  | 
|  | 6305 | fi | 
|  | 6306 |  | 
|  | 6307 |  | 
|  | 6308 | fi | 
|  | 6309 | fi | 
|  | 6310 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6311 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 6312 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 6313 | for ac_header in net/if.h | 
|  | 6314 | do : | 
|  | 6315 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 6316 | #ifdef STDC_HEADERS | 
|  | 6317 | # include <stdlib.h> | 
|  | 6318 | # include <stddef.h> | 
|  | 6319 | #else | 
|  | 6320 | # ifdef HAVE_STDLIB_H | 
|  | 6321 | #  include <stdlib.h> | 
|  | 6322 | # endif | 
|  | 6323 | #endif | 
|  | 6324 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 6325 | # include <sys/socket.h> | 
|  | 6326 | #endif | 
|  | 6327 |  | 
|  | 6328 | " | 
|  | 6329 | if test "x$ac_cv_header_net_if_h" = x""yes; then : | 
|  | 6330 | cat >>confdefs.h <<_ACEOF | 
|  | 6331 | #define HAVE_NET_IF_H 1 | 
|  | 6332 | _ACEOF | 
|  | 6333 |  | 
|  | 6334 | fi | 
|  | 6335 |  | 
|  | 6336 | done | 
|  | 6337 |  | 
|  | 6338 |  | 
|  | 6339 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6340 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6341 | for ac_header in term.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6342 | do : | 
|  | 6343 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
| Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6344 | #ifdef HAVE_CURSES_H | 
|  | 6345 | #include <curses.h> | 
|  | 6346 | #endif | 
|  | 6347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6348 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6349 | if test "x$ac_cv_header_term_h" = x""yes; then : | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6350 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6351 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6352 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6353 |  | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6354 | fi | 
|  | 6355 |  | 
|  | 6356 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6357 |  | 
|  | 6358 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6359 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6360 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6361 | do : | 
|  | 6362 | 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] | 6363 | #ifdef HAVE_ASM_TYPES_H | 
|  | 6364 | #include <asm/types.h> | 
|  | 6365 | #endif | 
|  | 6366 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 6367 | #include <sys/socket.h> | 
|  | 6368 | #endif | 
|  | 6369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6370 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6371 | if test "x$ac_cv_header_linux_netlink_h" = x""yes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6372 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6373 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6374 | _ACEOF | 
|  | 6375 |  | 
|  | 6376 | fi | 
|  | 6377 |  | 
|  | 6378 | done | 
|  | 6379 |  | 
|  | 6380 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6381 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6382 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 6384 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 6385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6386 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6387 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6388 |  | 
|  | 6389 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6391 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6392 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6393 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 |  | 
|  | 6395 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6396 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6397 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6398 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6399 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6400 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6401 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 6403 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6404 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 6406 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6408 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6409 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6410 | #if defined(MAJOR_IN_MKDEV) | 
|  | 6411 | #include <sys/mkdev.h> | 
|  | 6412 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 6413 | #include <sys/sysmacros.h> | 
|  | 6414 | #else | 
|  | 6415 | #include <sys/types.h> | 
|  | 6416 | #endif | 
|  | 6417 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6418 | int | 
|  | 6419 | main () | 
|  | 6420 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6421 |  | 
|  | 6422 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6423 | ; | 
|  | 6424 | return 0; | 
|  | 6425 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6426 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6427 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6428 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6429 | ac_cv_has_makedev=yes | 
|  | 6430 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6431 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6432 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6433 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6434 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 6436 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6437 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 6438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6439 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6440 |  | 
|  | 6441 | fi | 
|  | 6442 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6443 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 6444 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 6445 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 6446 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 6447 | # structures (such as rlimit64) without declaring them. As a | 
|  | 6448 | # work-around, disable LFS on such configurations | 
|  | 6449 |  | 
|  | 6450 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 6452 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 6453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6454 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6455 |  | 
|  | 6456 | #define _LARGEFILE_SOURCE 1 | 
|  | 6457 | #define _FILE_OFFSET_BITS 64 | 
|  | 6458 | #include <sys/resource.h> | 
|  | 6459 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6460 | int | 
|  | 6461 | main () | 
|  | 6462 | { | 
|  | 6463 | struct rlimit foo; | 
|  | 6464 | ; | 
|  | 6465 | return 0; | 
|  | 6466 | } | 
|  | 6467 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6468 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6469 | sol_lfs_bug=no | 
|  | 6470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6471 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6472 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 6475 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6476 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 6477 | use_lfs=no | 
|  | 6478 | fi | 
|  | 6479 |  | 
|  | 6480 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6481 | # Two defines needed to enable largefile support on various platforms | 
|  | 6482 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6483 | case $ac_sys_system/$ac_sys_release in | 
|  | 6484 | AIX*) | 
|  | 6485 |  | 
|  | 6486 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 6487 |  | 
|  | 6488 | ;; | 
|  | 6489 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6491 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6492 |  | 
|  | 6493 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6494 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6495 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6496 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6497 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6498 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 6499 | cat >> confdefs.h <<\EOF | 
|  | 6500 | #if defined(SCO_DS) | 
|  | 6501 | #undef _OFF_T | 
|  | 6502 | #endif | 
|  | 6503 | EOF | 
|  | 6504 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6505 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6506 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6507 | if test "x$ac_cv_type_mode_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6508 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6509 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6510 |  | 
|  | 6511 | cat >>confdefs.h <<_ACEOF | 
|  | 6512 | #define mode_t int | 
|  | 6513 | _ACEOF | 
|  | 6514 |  | 
|  | 6515 | fi | 
|  | 6516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6517 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6518 | if test "x$ac_cv_type_off_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6519 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6520 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 |  | 
|  | 6522 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6523 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6524 | _ACEOF | 
|  | 6525 |  | 
|  | 6526 | fi | 
|  | 6527 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6528 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6529 | if test "x$ac_cv_type_pid_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6530 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6531 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6532 |  | 
|  | 6533 | cat >>confdefs.h <<_ACEOF | 
|  | 6534 | #define pid_t int | 
|  | 6535 | _ACEOF | 
|  | 6536 |  | 
|  | 6537 | fi | 
|  | 6538 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6539 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6541 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6542 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6544 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6545 | if test "x$ac_cv_type_size_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6546 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6547 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6548 |  | 
|  | 6549 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6550 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6551 | _ACEOF | 
|  | 6552 |  | 
|  | 6553 | fi | 
|  | 6554 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 6556 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6557 | if test "${ac_cv_type_uid_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6558 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6559 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6561 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6562 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 |  | 
|  | 6564 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6566 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6567 | ac_cv_type_uid_t=yes | 
|  | 6568 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6569 | ac_cv_type_uid_t=no | 
|  | 6570 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6571 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6572 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 6575 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6576 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6578 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 |  | 
|  | 6580 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6581 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6582 |  | 
|  | 6583 | fi | 
|  | 6584 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6585 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
|  | 6586 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6587 | no|yes) ;; #( | 
|  | 6588 | *) | 
|  | 6589 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6590 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6591 |  | 
|  | 6592 |  | 
|  | 6593 | cat >>confdefs.h <<_ACEOF | 
|  | 6594 | #define uint32_t $ac_cv_c_uint32_t | 
|  | 6595 | _ACEOF | 
|  | 6596 | ;; | 
|  | 6597 | esac | 
|  | 6598 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6599 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
|  | 6600 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6601 | no|yes) ;; #( | 
|  | 6602 | *) | 
|  | 6603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6604 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6605 |  | 
|  | 6606 |  | 
|  | 6607 | cat >>confdefs.h <<_ACEOF | 
|  | 6608 | #define uint64_t $ac_cv_c_uint64_t | 
|  | 6609 | _ACEOF | 
|  | 6610 | ;; | 
|  | 6611 | esac | 
|  | 6612 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6613 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
|  | 6614 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6615 | no|yes) ;; #( | 
|  | 6616 | *) | 
|  | 6617 |  | 
|  | 6618 | cat >>confdefs.h <<_ACEOF | 
|  | 6619 | #define int32_t $ac_cv_c_int32_t | 
|  | 6620 | _ACEOF | 
|  | 6621 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6622 | esac | 
|  | 6623 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6624 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
|  | 6625 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6626 | no|yes) ;; #( | 
|  | 6627 | *) | 
|  | 6628 |  | 
|  | 6629 | cat >>confdefs.h <<_ACEOF | 
|  | 6630 | #define int64_t $ac_cv_c_int64_t | 
|  | 6631 | _ACEOF | 
|  | 6632 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6633 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6634 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6635 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6636 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6637 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6638 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6639 |  | 
|  | 6640 | fi | 
|  | 6641 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6642 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6643 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6644 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6645 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6646 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6647 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6648 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 6650 | $as_echo_n "checking size of int... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6651 | if test "${ac_cv_sizeof_int+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6652 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6653 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6654 | 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] | 6655 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6656 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6657 | if test "$ac_cv_type_int" = yes; then | 
|  | 6658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6660 | { as_fn_set_status 77 | 
|  | 6661 | as_fn_error "cannot compute sizeof (int) | 
|  | 6662 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6663 | else | 
|  | 6664 | ac_cv_sizeof_int=0 | 
|  | 6665 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 6670 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6671 |  | 
|  | 6672 |  | 
|  | 6673 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6674 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6675 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6676 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6677 |  | 
|  | 6678 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6679 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6682 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 6684 | $as_echo_n "checking size of long... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6685 | if test "${ac_cv_sizeof_long+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6686 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6687 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6688 | 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] | 6689 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6691 | if test "$ac_cv_type_long" = yes; then | 
|  | 6692 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6693 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6694 | { as_fn_set_status 77 | 
|  | 6695 | as_fn_error "cannot compute sizeof (long) | 
|  | 6696 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6697 | else | 
|  | 6698 | ac_cv_sizeof_long=0 | 
|  | 6699 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6701 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 6704 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6705 |  | 
|  | 6706 |  | 
|  | 6707 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6709 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6711 |  | 
|  | 6712 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6713 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6714 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6715 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6716 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 6718 | $as_echo_n "checking size of void *... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6719 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6720 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6721 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6722 | 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] | 6723 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6724 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6725 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 6726 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6727 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6728 | { as_fn_set_status 77 | 
|  | 6729 | as_fn_error "cannot compute sizeof (void *) | 
|  | 6730 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6731 | else | 
|  | 6732 | ac_cv_sizeof_void_p=0 | 
|  | 6733 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6735 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 6738 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6739 |  | 
|  | 6740 |  | 
|  | 6741 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6743 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6745 |  | 
|  | 6746 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6747 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6748 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6749 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6750 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 6752 | $as_echo_n "checking size of short... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6753 | if test "${ac_cv_sizeof_short+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6754 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6756 | 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] | 6757 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6759 | if test "$ac_cv_type_short" = yes; then | 
|  | 6760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6762 | { as_fn_set_status 77 | 
|  | 6763 | as_fn_error "cannot compute sizeof (short) | 
|  | 6764 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6765 | else | 
|  | 6766 | ac_cv_sizeof_short=0 | 
|  | 6767 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6769 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6770 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 6772 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6773 |  | 
|  | 6774 |  | 
|  | 6775 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6777 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6778 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6779 |  | 
|  | 6780 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6781 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6784 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 6786 | $as_echo_n "checking size of float... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6787 | if test "${ac_cv_sizeof_float+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6788 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6790 | 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] | 6791 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6792 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6793 | if test "$ac_cv_type_float" = yes; then | 
|  | 6794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6796 | { as_fn_set_status 77 | 
|  | 6797 | as_fn_error "cannot compute sizeof (float) | 
|  | 6798 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6799 | else | 
|  | 6800 | ac_cv_sizeof_float=0 | 
|  | 6801 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6803 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 6806 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6807 |  | 
|  | 6808 |  | 
|  | 6809 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6810 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6811 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6813 |  | 
|  | 6814 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6815 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6816 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6817 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6818 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 6820 | $as_echo_n "checking size of double... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6821 | if test "${ac_cv_sizeof_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6822 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6824 | 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] | 6825 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6827 | if test "$ac_cv_type_double" = yes; then | 
|  | 6828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6829 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6830 | { as_fn_set_status 77 | 
|  | 6831 | as_fn_error "cannot compute sizeof (double) | 
|  | 6832 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6833 | else | 
|  | 6834 | ac_cv_sizeof_double=0 | 
|  | 6835 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6837 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6838 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 6840 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6841 |  | 
|  | 6842 |  | 
|  | 6843 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6844 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6845 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6846 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6847 |  | 
|  | 6848 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6849 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6850 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6851 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6852 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 6854 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6855 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6856 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6858 | 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] | 6859 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6861 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 6862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6864 | { as_fn_set_status 77 | 
|  | 6865 | as_fn_error "cannot compute sizeof (fpos_t) | 
|  | 6866 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6867 | else | 
|  | 6868 | ac_cv_sizeof_fpos_t=0 | 
|  | 6869 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6870 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6871 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 6874 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6875 |  | 
|  | 6876 |  | 
|  | 6877 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6879 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6880 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6881 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6882 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6883 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6884 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6885 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6886 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 6888 | $as_echo_n "checking size of size_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6889 | if test "${ac_cv_sizeof_size_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6890 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6891 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6892 | 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] | 6893 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6894 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6895 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 6896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6897 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6898 | { as_fn_set_status 77 | 
|  | 6899 | as_fn_error "cannot compute sizeof (size_t) | 
|  | 6900 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6901 | else | 
|  | 6902 | ac_cv_sizeof_size_t=0 | 
|  | 6903 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6905 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 6908 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6909 |  | 
|  | 6910 |  | 
|  | 6911 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6912 | cat >>confdefs.h <<_ACEOF | 
|  | 6913 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 6914 | _ACEOF | 
|  | 6915 |  | 
|  | 6916 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6917 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6918 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6919 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6920 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 6922 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6923 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6924 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6925 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6926 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6927 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6928 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6929 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 6930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6932 | { as_fn_set_status 77 | 
|  | 6933 | as_fn_error "cannot compute sizeof (pid_t) | 
|  | 6934 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6935 | else | 
|  | 6936 | ac_cv_sizeof_pid_t=0 | 
|  | 6937 | fi | 
|  | 6938 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6939 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6940 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 6942 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6943 |  | 
|  | 6944 |  | 
|  | 6945 |  | 
|  | 6946 | cat >>confdefs.h <<_ACEOF | 
|  | 6947 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 6948 | _ACEOF | 
|  | 6949 |  | 
|  | 6950 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6951 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
|  | 6953 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6954 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6956 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6957 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | int | 
|  | 6959 | main () | 
|  | 6960 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6961 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | ; | 
|  | 6963 | return 0; | 
|  | 6964 | } | 
|  | 6965 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6966 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6967 |  | 
|  | 6968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6969 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6970 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6971 | have_long_long=yes | 
|  | 6972 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6973 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
|  | 6976 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6977 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6978 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6979 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6980 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6981 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 6983 | $as_echo_n "checking size of long long... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6984 | if test "${ac_cv_sizeof_long_long+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6985 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6987 | 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] | 6988 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6990 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 6991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6992 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6993 | { as_fn_set_status 77 | 
|  | 6994 | as_fn_error "cannot compute sizeof (long long) | 
|  | 6995 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6996 | else | 
|  | 6997 | ac_cv_sizeof_long_long=0 | 
|  | 6998 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7000 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7001 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 7003 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7004 |  | 
|  | 7005 |  | 
|  | 7006 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7008 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7010 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7011 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7012 | fi | 
|  | 7013 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 7015 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7016 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7018 | /* end confdefs.h.  */ | 
|  | 7019 |  | 
|  | 7020 | int | 
|  | 7021 | main () | 
|  | 7022 | { | 
|  | 7023 | long double x; x = (long double)0; | 
|  | 7024 | ; | 
|  | 7025 | return 0; | 
|  | 7026 | } | 
|  | 7027 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7028 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7029 |  | 
|  | 7030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7031 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7032 |  | 
|  | 7033 | have_long_double=yes | 
|  | 7034 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7035 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 7038 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7039 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7040 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7041 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7042 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7043 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 7045 | $as_echo_n "checking size of long double... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7046 | if test "${ac_cv_sizeof_long_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7047 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7049 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7050 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7052 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 7053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7055 | { as_fn_set_status 77 | 
|  | 7056 | as_fn_error "cannot compute sizeof (long double) | 
|  | 7057 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7058 | else | 
|  | 7059 | ac_cv_sizeof_long_double=0 | 
|  | 7060 | fi | 
|  | 7061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7062 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7063 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 7065 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7066 |  | 
|  | 7067 |  | 
|  | 7068 |  | 
|  | 7069 | cat >>confdefs.h <<_ACEOF | 
|  | 7070 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 7071 | _ACEOF | 
|  | 7072 |  | 
|  | 7073 |  | 
|  | 7074 | fi | 
|  | 7075 |  | 
|  | 7076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 7078 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7079 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7081 | /* end confdefs.h.  */ | 
|  | 7082 |  | 
|  | 7083 | int | 
|  | 7084 | main () | 
|  | 7085 | { | 
|  | 7086 | _Bool x; x = (_Bool)0; | 
|  | 7087 | ; | 
|  | 7088 | return 0; | 
|  | 7089 | } | 
|  | 7090 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7091 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7092 |  | 
|  | 7093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7094 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7095 |  | 
|  | 7096 | have_c99_bool=yes | 
|  | 7097 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7098 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 7101 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7102 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7103 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7106 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 7108 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7109 | if test "${ac_cv_sizeof__Bool+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7110 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7112 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7113 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7115 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 7116 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7117 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7118 | { as_fn_set_status 77 | 
|  | 7119 | as_fn_error "cannot compute sizeof (_Bool) | 
|  | 7120 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7121 | else | 
|  | 7122 | ac_cv_sizeof__Bool=0 | 
|  | 7123 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7124 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7125 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7126 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 7128 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7129 |  | 
|  | 7130 |  | 
|  | 7131 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7132 | cat >>confdefs.h <<_ACEOF | 
|  | 7133 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 7134 | _ACEOF | 
|  | 7135 |  | 
|  | 7136 |  | 
|  | 7137 | fi | 
|  | 7138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7139 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7140 | #include <stdint.h> | 
|  | 7141 | #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7142 | #ifdef HAVE_INTTYPES_H | 
|  | 7143 | #include <inttypes.h> | 
|  | 7144 | #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7145 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7146 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7147 |  | 
|  | 7148 | cat >>confdefs.h <<_ACEOF | 
|  | 7149 | #define HAVE_UINTPTR_T 1 | 
|  | 7150 | _ACEOF | 
|  | 7151 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7152 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7153 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7154 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7155 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 7157 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7158 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7159 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7161 | 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] | 7162 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7164 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 7165 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7166 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7167 | { as_fn_set_status 77 | 
|  | 7168 | as_fn_error "cannot compute sizeof (uintptr_t) | 
|  | 7169 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7170 | else | 
|  | 7171 | ac_cv_sizeof_uintptr_t=0 | 
|  | 7172 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 7177 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7178 |  | 
|  | 7179 |  | 
|  | 7180 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7181 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7182 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7184 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7185 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7186 | fi | 
|  | 7187 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7188 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7189 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7190 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7191 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7192 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 7194 | $as_echo_n "checking size of off_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7195 | if test "${ac_cv_sizeof_off_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7196 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7197 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7198 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7199 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7200 | #include <sys/types.h> | 
|  | 7201 | #endif | 
|  | 7202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7203 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7204 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7206 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 7207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7209 | { as_fn_set_status 77 | 
|  | 7210 | as_fn_error "cannot compute sizeof (off_t) | 
|  | 7211 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7212 | else | 
|  | 7213 | ac_cv_sizeof_off_t=0 | 
|  | 7214 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7215 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7216 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7217 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 7219 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7221 |  | 
|  | 7222 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7223 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7224 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7226 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7227 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7228 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 7230 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7231 | if test "$have_long_long" = yes | 
|  | 7232 | then | 
|  | 7233 | 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] | 7234 | "$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] | 7235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7236 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7239 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7240 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7242 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7243 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7244 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7246 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7247 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7248 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7249 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7252 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 7254 | $as_echo_n "checking size of time_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7255 | if test "${ac_cv_sizeof_time_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7256 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7257 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7258 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7259 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7260 | #include <sys/types.h> | 
|  | 7261 | #endif | 
|  | 7262 | #ifdef HAVE_TIME_H | 
|  | 7263 | #include <time.h> | 
|  | 7264 | #endif | 
|  | 7265 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7266 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7267 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7268 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7269 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 7270 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7271 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7272 | { as_fn_set_status 77 | 
|  | 7273 | as_fn_error "cannot compute sizeof (time_t) | 
|  | 7274 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7275 | else | 
|  | 7276 | ac_cv_sizeof_time_t=0 | 
|  | 7277 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7278 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7279 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7280 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 7282 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7283 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7284 |  | 
|  | 7285 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7286 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7287 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7288 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7289 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7290 |  | 
|  | 7291 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7292 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7293 | ac_save_cc="$CC" | 
|  | 7294 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7295 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7296 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7297 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7298 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7299 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7300 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 7303 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7304 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7306 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7307 |  | 
|  | 7308 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7309 | int | 
|  | 7310 | main () | 
|  | 7311 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7312 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | ; | 
|  | 7314 | return 0; | 
|  | 7315 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7316 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7318 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7319 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7320 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 7323 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7324 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7325 | # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7326 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7327 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7328 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 7330 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7331 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7332 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7333 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7334 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7335 | #ifdef HAVE_PTHREAD_H | 
|  | 7336 | #include <pthread.h> | 
|  | 7337 | #endif | 
|  | 7338 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7339 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7340 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7341 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7342 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 7343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7345 | { as_fn_set_status 77 | 
|  | 7346 | as_fn_error "cannot compute sizeof (pthread_t) | 
|  | 7347 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7348 | else | 
|  | 7349 | ac_cv_sizeof_pthread_t=0 | 
|  | 7350 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7351 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7352 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7353 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 7355 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7357 |  | 
|  | 7358 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7359 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7360 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7362 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7363 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7364 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7365 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7366 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7367 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7368 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7369 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7370 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 7371 | ;; | 
|  | 7372 | Darwin/*) | 
|  | 7373 | OTHER_LIBTOOL_OPT="" | 
|  | 7374 | ;; | 
|  | 7375 | esac | 
|  | 7376 |  | 
|  | 7377 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7378 | ARCH_RUN_32BIT="" | 
|  | 7379 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7380 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7381 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7382 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 7383 | if test "${enable_universalsdk}"; then | 
|  | 7384 | : | 
|  | 7385 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7386 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7387 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7388 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7389 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7390 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7391 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7392 | if test ${gcc_version} '<' 4.0 | 
|  | 7393 | then | 
|  | 7394 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 7395 | else | 
|  | 7396 | LIBTOOL_CRUFT="" | 
|  | 7397 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7398 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7399 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7400 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7402 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7403 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7404 | #include <unistd.h> | 
|  | 7405 | int main(int argc, char*argv[]) | 
|  | 7406 | { | 
|  | 7407 | if (sizeof(long) == 4) { | 
|  | 7408 | return 0; | 
|  | 7409 | } else { | 
|  | 7410 | return 1; | 
|  | 7411 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7412 | } | 
|  | 7413 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7414 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7415 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7416 | ac_osx_32bit=yes | 
|  | 7417 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7418 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7419 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7421 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7422 | fi | 
|  | 7423 |  | 
|  | 7424 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7425 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7426 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7427 | i386) | 
|  | 7428 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 7429 | ;; | 
|  | 7430 | ppc) | 
|  | 7431 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 7432 | ;; | 
|  | 7433 | *) | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7434 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7435 | ;; | 
|  | 7436 | esac | 
|  | 7437 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7438 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7439 | i386) | 
|  | 7440 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 7441 | ;; | 
|  | 7442 | ppc) | 
|  | 7443 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 7444 | ;; | 
|  | 7445 | *) | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7446 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7447 | ;; | 
|  | 7448 | esac | 
|  | 7449 |  | 
|  | 7450 | #ARCH_RUN_32BIT="true" | 
|  | 7451 | fi | 
|  | 7452 |  | 
|  | 7453 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7454 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7455 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7456 | esac | 
|  | 7457 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 7459 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7460 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7461 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7462 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7464 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7466 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7469 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7470 | if test $enable_shared = "yes" | 
|  | 7471 | then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 7472 | as_fn_error "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7473 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7476 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7477 | fi | 
|  | 7478 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 7480 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7481 | case $ac_sys_system/$ac_sys_release in | 
|  | 7482 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 7487 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7488 | ;; | 
|  | 7489 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7491 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7492 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7493 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7494 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7495 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7496 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7497 |  | 
|  | 7498 |  | 
|  | 7499 |  | 
|  | 7500 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7501 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7502 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7503 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7504 | cat >>confdefs.h <<_ACEOF | 
|  | 7505 | #define SHLIB_EXT "$SO" | 
|  | 7506 | _ACEOF | 
|  | 7507 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7508 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7509 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7510 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 7511 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 7513 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7514 | if test -z "$LDSHARED" | 
|  | 7515 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7516 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7517 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7518 | 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] | 7519 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7520 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7521 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7522 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7524 | if test "$GCC" = "yes" ; then | 
|  | 7525 | LDSHARED='$(CC) -shared' | 
|  | 7526 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7527 | else | 
|  | 7528 | LDSHARED='$(CC) -G' | 
|  | 7529 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7530 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7531 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7532 | if test "$GCC" = "yes" ; then | 
|  | 7533 | LDSHARED='$(CC) -shared' | 
|  | 7534 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7535 | else | 
|  | 7536 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7537 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7538 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7539 | LDSHARED='$(CC) -bundle' | 
|  | 7540 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7541 | if test "$enable_framework" ; then | 
|  | 7542 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7543 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7544 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7545 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7546 | else | 
|  | 7547 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7548 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7549 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7550 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7551 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7552 | LDSHARED='$(CC) -bundle' | 
|  | 7553 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7554 | if test "$enable_framework" ; then | 
|  | 7555 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7556 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7557 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7558 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7559 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7560 | # No framework, use the Python app as bundle-loader | 
|  | 7561 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7562 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7563 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7564 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7565 | Darwin/*) | 
|  | 7566 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 7567 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7568 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7569 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7570 | then | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7571 | if test "${enable_universalsdk}"; then | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7572 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7573 | fi | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7574 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 7575 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7576 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7577 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7578 | LDSHARED='$(CC) -bundle' | 
|  | 7579 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7580 | if test "$enable_framework" ; then | 
|  | 7581 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7582 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7583 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7584 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7585 | else | 
|  | 7586 | # No framework, use the Python app as bundle-loader | 
|  | 7587 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 7588 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7589 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7590 | fi | 
|  | 7591 | fi | 
|  | 7592 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7593 | Linux*|GNU*|QNX*) | 
|  | 7594 | LDSHARED='$(CC) -shared' | 
|  | 7595 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 7596 | BSD/OS*/4*) | 
|  | 7597 | LDSHARED="gcc -shared" | 
|  | 7598 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7599 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7600 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7601 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7602 | LDSHARED='$(CC) -shared' | 
|  | 7603 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7604 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7605 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7606 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7607 | OpenBSD*) | 
|  | 7608 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7609 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7610 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 7611 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7612 | else | 
|  | 7613 | case `uname -r` in | 
|  | 7614 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 7615 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 7616 | ;; | 
|  | 7617 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7618 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 7619 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7620 | ;; | 
|  | 7621 | esac | 
|  | 7622 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7623 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7624 | LDSHARED='$(CC) -shared' | 
|  | 7625 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7626 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7627 | if test "$GCC" = "yes" ; then | 
|  | 7628 | LDSHARED='$(CC) -shared' | 
|  | 7629 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7630 | else | 
|  | 7631 | LDSHARED='$(CC) -G' | 
|  | 7632 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7633 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7634 | SCO_SV*) | 
|  | 7635 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 7636 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 7637 | CYGWIN*) | 
|  | 7638 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 7639 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7640 | *)	LDSHARED="ld";; | 
|  | 7641 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7642 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 7644 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7645 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7646 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7647 | # 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] | 7648 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 7650 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7651 | if test -z "$CCSHARED" | 
|  | 7652 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7653 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7654 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7655 | then CCSHARED="-fPIC"; | 
|  | 7656 | elif test `uname -p` = sparc; | 
|  | 7657 | then CCSHARED="-xcode=pic32"; | 
|  | 7658 | else CCSHARED="-Kpic"; | 
|  | 7659 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7660 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7661 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7662 | else CCSHARED="+z"; | 
|  | 7663 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7664 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7665 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7666 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7667 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7668 | if test "$GCC" = "yes" | 
|  | 7669 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7670 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7671 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7672 | SCO_SV*) | 
|  | 7673 | if test "$GCC" = "yes" | 
|  | 7674 | then CCSHARED="-fPIC" | 
|  | 7675 | else CCSHARED="-Kpic -belf" | 
|  | 7676 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7677 | IRIX*/6*)  case $CC in | 
|  | 7678 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7679 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7680 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7681 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7682 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 7684 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7685 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7686 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 7688 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7689 | if test -z "$LINKFORSHARED" | 
|  | 7690 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7691 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7692 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7693 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7694 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 7695 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7696 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7697 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7698 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7700 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7701 | if test "$enable_framework" | 
|  | 7702 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7703 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7704 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7705 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7706 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7707 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7708 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7709 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7710 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7711 | then | 
|  | 7712 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 7713 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7714 | SunOS/5*) case $CC in | 
|  | 7715 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7716 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7717 | then | 
|  | 7718 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7719 | fi;; | 
|  | 7720 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7721 | CYGWIN*) | 
|  | 7722 | if test $enable_shared = "no" | 
|  | 7723 | then | 
|  | 7724 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 7725 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7726 | QNX*) | 
|  | 7727 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 7728 | # symbol table so that they can be found when a module | 
|  | 7729 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 7730 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 7731 | # when running test_compile.py. | 
|  | 7732 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7733 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 7736 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7737 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7738 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 7741 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7742 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 7743 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7744 | case $ac_sys_system in | 
|  | 7745 | CYGWIN*) | 
|  | 7746 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 7747 | # but not when building the interpreter DLL. | 
|  | 7748 | CFLAGSFORSHARED='';; | 
|  | 7749 | *) | 
|  | 7750 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 7751 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7752 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 7754 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7755 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7756 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 7757 | # library (with --enable-shared). | 
|  | 7758 | # 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] | 7759 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 7760 | # if it is not required, since it creates a dependency of the shared library | 
|  | 7761 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 7762 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 7763 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7764 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 7766 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7767 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7768 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7769 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7770 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 7772 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7773 |  | 
|  | 7774 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7775 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 7777 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7778 | if test "${ac_cv_lib_sendfile_sendfile+set}" = set; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7779 | $as_echo_n "(cached) " >&6 | 
|  | 7780 | else | 
|  | 7781 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7782 | LIBS="-lsendfile  $LIBS" | 
|  | 7783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7784 | /* end confdefs.h.  */ | 
|  | 7785 |  | 
|  | 7786 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7787 | Use char because int might match the return type of a GCC | 
|  | 7788 | builtin and then its argument prototype would still apply.  */ | 
|  | 7789 | #ifdef __cplusplus | 
|  | 7790 | extern "C" | 
|  | 7791 | #endif | 
|  | 7792 | char sendfile (); | 
|  | 7793 | int | 
|  | 7794 | main () | 
|  | 7795 | { | 
|  | 7796 | return sendfile (); | 
|  | 7797 | ; | 
|  | 7798 | return 0; | 
|  | 7799 | } | 
|  | 7800 | _ACEOF | 
|  | 7801 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 7802 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 7803 | else | 
|  | 7804 | ac_cv_lib_sendfile_sendfile=no | 
|  | 7805 | fi | 
|  | 7806 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7807 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7808 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7809 | fi | 
|  | 7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 7811 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7812 | if test "x$ac_cv_lib_sendfile_sendfile" = x""yes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7813 | cat >>confdefs.h <<_ACEOF | 
|  | 7814 | #define HAVE_LIBSENDFILE 1 | 
|  | 7815 | _ACEOF | 
|  | 7816 |  | 
|  | 7817 | LIBS="-lsendfile $LIBS" | 
|  | 7818 |  | 
|  | 7819 | fi | 
|  | 7820 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 7822 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7823 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7824 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7825 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7827 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7829 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7831 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7832 | Use char because int might match the return type of a GCC | 
|  | 7833 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | #ifdef __cplusplus | 
|  | 7835 | extern "C" | 
|  | 7836 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | int | 
|  | 7839 | main () | 
|  | 7840 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7841 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | ; | 
|  | 7843 | return 0; | 
|  | 7844 | } | 
|  | 7845 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7848 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7849 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7850 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7851 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7852 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7853 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7854 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 7856 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7857 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 | cat >>confdefs.h <<_ACEOF | 
|  | 7859 | #define HAVE_LIBDL 1 | 
|  | 7860 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7861 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7862 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7863 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7864 | fi | 
|  | 7865 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 7867 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7868 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7869 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7870 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7872 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7874 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7876 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7877 | Use char because int might match the return type of a GCC | 
|  | 7878 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | #ifdef __cplusplus | 
|  | 7880 | extern "C" | 
|  | 7881 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | int | 
|  | 7884 | main () | 
|  | 7885 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7886 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | ; | 
|  | 7888 | return 0; | 
|  | 7889 | } | 
|  | 7890 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7891 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7893 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7894 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7896 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7897 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7899 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 7901 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7902 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 | cat >>confdefs.h <<_ACEOF | 
|  | 7904 | #define HAVE_LIBDLD 1 | 
|  | 7905 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7906 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7907 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7908 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7909 | fi | 
|  | 7910 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7911 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7912 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7913 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 7915 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7916 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7917 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7918 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7919 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7921 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7923 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7924 | Use char because int might match the return type of a GCC | 
|  | 7925 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | #ifdef __cplusplus | 
|  | 7927 | extern "C" | 
|  | 7928 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | int | 
|  | 7931 | main () | 
|  | 7932 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7933 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | ; | 
|  | 7935 | return 0; | 
|  | 7936 | } | 
|  | 7937 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7938 | for ac_lib in '' pthread rt posix4; do | 
|  | 7939 | if test -z "$ac_lib"; then | 
|  | 7940 | ac_res="none required" | 
|  | 7941 | else | 
|  | 7942 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7943 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7944 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7945 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7946 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7947 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7948 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7949 | conftest$ac_exeext | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7950 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7951 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7952 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7953 | done | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7954 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7955 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7956 | else | 
|  | 7957 | ac_cv_search_sem_init=no | 
|  | 7958 | fi | 
|  | 7959 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7960 | LIBS=$ac_func_search_save_LIBS | 
|  | 7961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 7963 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7964 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7965 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7966 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7967 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7968 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7969 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7970 | # posix4 on Solaris 2.6 | 
|  | 7971 | # pthread (first!) on Linux | 
|  | 7972 | fi | 
|  | 7973 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7974 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 7976 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7977 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7978 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7979 | else | 
|  | 7980 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7981 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7983 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7984 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7985 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7986 | Use char because int might match the return type of a GCC | 
|  | 7987 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7988 | #ifdef __cplusplus | 
|  | 7989 | extern "C" | 
|  | 7990 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7991 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7992 | int | 
|  | 7993 | main () | 
|  | 7994 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7995 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7996 | ; | 
|  | 7997 | return 0; | 
|  | 7998 | } | 
|  | 7999 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8000 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8001 | ac_cv_lib_intl_textdomain=yes | 
|  | 8002 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8003 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8005 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8006 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8007 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8008 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 8010 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8011 | if test "x$ac_cv_lib_intl_textdomain" = x""yes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8013 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8014 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8015 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8016 | fi | 
|  | 8017 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8018 |  | 
|  | 8019 | # checks for system dependent C++ extensions support | 
|  | 8020 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8021 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 8022 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 8023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8024 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8025 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 8026 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | int | 
|  | 8028 | main () | 
|  | 8029 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8030 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | ; | 
|  | 8032 | return 0; | 
|  | 8033 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8034 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8036 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8037 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8039 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8042 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8043 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8044 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8045 |  | 
|  | 8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8047 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8048 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8049 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8050 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8051 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8052 | *) ;; | 
|  | 8053 | esac | 
|  | 8054 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8055 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 8057 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8058 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8059 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8060 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8062 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8064 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8066 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8067 | Use char because int might match the return type of a GCC | 
|  | 8068 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | #ifdef __cplusplus | 
|  | 8070 | extern "C" | 
|  | 8071 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | int | 
|  | 8074 | main () | 
|  | 8075 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8076 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | ; | 
|  | 8078 | return 0; | 
|  | 8079 | } | 
|  | 8080 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8081 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8083 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8084 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8085 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8086 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8087 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8089 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 8091 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8092 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8093 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8094 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8095 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 8097 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8098 | if test "${ac_cv_lib_socket_socket+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8099 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8100 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8102 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8104 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8106 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8107 | Use char because int might match the return type of a GCC | 
|  | 8108 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | #ifdef __cplusplus | 
|  | 8110 | extern "C" | 
|  | 8111 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | int | 
|  | 8114 | main () | 
|  | 8115 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8116 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | ; | 
|  | 8118 | return 0; | 
|  | 8119 | } | 
|  | 8120 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8121 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8123 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8124 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8125 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8126 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8127 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8129 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 8131 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8132 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8133 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8134 | fi | 
|  | 8135 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8136 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 8138 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8140 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8141 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8144 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8145 | LIBS="$withval $LIBS" | 
|  | 8146 |  | 
|  | 8147 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8149 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8150 | fi | 
|  | 8151 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8152 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8153 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8154 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 8155 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8157 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8158 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8159 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8160 | else | 
|  | 8161 | case $PKG_CONFIG in | 
|  | 8162 | [\\/]* | ?:[\\/]*) | 
|  | 8163 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8164 | ;; | 
|  | 8165 | *) | 
|  | 8166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8167 | for as_dir in $PATH | 
|  | 8168 | do | 
|  | 8169 | IFS=$as_save_IFS | 
|  | 8170 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8171 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8173 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8175 | break 2 | 
|  | 8176 | fi | 
|  | 8177 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8178 | done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8179 | IFS=$as_save_IFS | 
|  | 8180 |  | 
|  | 8181 | ;; | 
|  | 8182 | esac | 
|  | 8183 | fi | 
|  | 8184 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 8185 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 8187 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8188 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8190 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8191 | fi | 
|  | 8192 |  | 
|  | 8193 |  | 
|  | 8194 | fi | 
|  | 8195 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 8196 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 8197 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 8198 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8200 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8201 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8202 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8203 | else | 
|  | 8204 | case $ac_pt_PKG_CONFIG in | 
|  | 8205 | [\\/]* | ?:[\\/]*) | 
|  | 8206 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8207 | ;; | 
|  | 8208 | *) | 
|  | 8209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8210 | for as_dir in $PATH | 
|  | 8211 | do | 
|  | 8212 | IFS=$as_save_IFS | 
|  | 8213 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8214 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8216 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8218 | break 2 | 
|  | 8219 | fi | 
|  | 8220 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8221 | done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8222 | IFS=$as_save_IFS | 
|  | 8223 |  | 
|  | 8224 | ;; | 
|  | 8225 | esac | 
|  | 8226 | fi | 
|  | 8227 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 8228 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 8230 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8231 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8233 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8234 | fi | 
|  | 8235 |  | 
|  | 8236 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 8237 | PKG_CONFIG="" | 
|  | 8238 | else | 
|  | 8239 | case $cross_compiling:$ac_tool_warned in | 
|  | 8240 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 8242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8243 | ac_tool_warned=yes ;; | 
|  | 8244 | esac | 
|  | 8245 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 8246 | fi | 
|  | 8247 | else | 
|  | 8248 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 8249 | fi | 
|  | 8250 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8251 |  | 
|  | 8252 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 8254 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8255 |  | 
|  | 8256 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8257 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8258 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8259 | else | 
|  | 8260 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8261 | fi | 
|  | 8262 |  | 
|  | 8263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 8265 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8266 |  | 
|  | 8267 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 8269 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8270 |  | 
|  | 8271 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8272 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8273 | withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8274 | else | 
|  | 8275 | with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8276 | fi | 
|  | 8277 |  | 
|  | 8278 |  | 
|  | 8279 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8280 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 8281 | else | 
|  | 8282 | LIBFFI_INCLUDEDIR="" | 
|  | 8283 | fi | 
|  | 8284 |  | 
|  | 8285 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 8287 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8288 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8289 | # Check for support for loadable sqlite extensions | 
|  | 8290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 8291 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 8292 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 8293 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 8294 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 8295 | else | 
|  | 8296 | enable_loadable_sqlite_extensions="no" | 
|  | 8297 | fi | 
|  | 8298 |  | 
|  | 8299 |  | 
|  | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 8301 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 8302 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8303 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 8305 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8306 |  | 
|  | 8307 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8308 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8309 | withval=$with_dbmliborder; | 
|  | 8310 | if test x$with_dbmliborder = xyes | 
|  | 8311 | then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 8312 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8313 | else | 
|  | 8314 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 8315 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 8316 | then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 8317 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8318 | fi | 
|  | 8319 | done | 
|  | 8320 | fi | 
|  | 8321 | fi | 
|  | 8322 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 8324 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8325 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8326 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8327 |  | 
|  | 8328 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 8330 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8332 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8333 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8334 | withval=$with_signal_module; | 
|  | 8335 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8336 |  | 
|  | 8337 |  | 
|  | 8338 | if test -z "$with_signal_module" | 
|  | 8339 | then with_signal_module="yes" | 
|  | 8340 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 8342 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8343 |  | 
|  | 8344 | if test "${with_signal_module}" = "yes"; then | 
|  | 8345 | USE_SIGNAL_MODULE="" | 
|  | 8346 | SIGNAL_OBJS="" | 
|  | 8347 | else | 
|  | 8348 | USE_SIGNAL_MODULE="#" | 
|  | 8349 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 8350 | fi | 
|  | 8351 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8352 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8353 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8354 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8355 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8356 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 |  | 
|  | 8358 | # Templates for things AC_DEFINEd more than once. | 
|  | 8359 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8360 |  | 
|  | 8361 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 |  | 
|  | 8363 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 8365 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8367 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8368 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8369 | withval=$with_threads; | 
|  | 8370 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8371 |  | 
|  | 8372 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8373 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8375 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8376 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8377 | withval=$with_thread; with_threads=$with_thread | 
|  | 8378 | fi | 
|  | 8379 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8380 |  | 
|  | 8381 | if test -z "$with_threads" | 
|  | 8382 | then with_threads="yes" | 
|  | 8383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 8385 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8386 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8387 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8388 | if test "$with_threads" = "no" | 
|  | 8389 | then | 
|  | 8390 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8391 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 8392 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8393 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8394 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8395 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8396 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8397 |  | 
|  | 8398 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8400 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 8401 | then | 
|  | 8402 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8403 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8404 | CXX="$CXX -Kpthread" | 
|  | 8405 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8406 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8407 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8408 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8409 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8410 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8411 | then | 
|  | 8412 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8413 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8414 | CXX="$CXX -Kthread" | 
|  | 8415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8417 |  | 
|  | 8418 | posix_threads=yes | 
|  | 8419 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8420 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8421 | then | 
|  | 8422 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8423 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8424 | CXX="$CXX -pthread" | 
|  | 8425 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8426 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8427 |  | 
|  | 8428 | posix_threads=yes | 
|  | 8429 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8430 | else | 
|  | 8431 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 8432 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 8433 | fi | 
|  | 8434 | if test ! -z "$withval" -a -d "$withval" | 
|  | 8435 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 8436 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8437 |  | 
|  | 8438 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8439 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 8440 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 8442 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 8443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8444 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8445 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8446 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8447 | #ifdef _POSIX_THREADS | 
|  | 8448 | yes | 
|  | 8449 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 |  | 
|  | 8451 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8453 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8454 | unistd_defines_pthreads=yes | 
|  | 8455 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8456 | unistd_defines_pthreads=no | 
|  | 8457 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8458 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 8461 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8462 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8463 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8464 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8466 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8467 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8469 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8470 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8472 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8473 |  | 
|  | 8474 | LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8475 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8476 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8477 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8478 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8479 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8480 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8482 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8483 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8485 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8486 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8487 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8488 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8489 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8490 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 8491 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 8492 | # So we really have to include pthread.h, and then link. | 
|  | 8493 | _libs=$LIBS | 
|  | 8494 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 8496 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 8497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8498 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8499 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8500 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8501 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | int | 
|  | 8503 | main () | 
|  | 8504 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8505 |  | 
|  | 8506 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | ; | 
|  | 8508 | return 0; | 
|  | 8509 | } | 
|  | 8510 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8514 | $as_echo "yes" >&6; } | 
|  | 8515 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8516 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8517 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8518 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8519 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8521 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8522 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8523 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8525 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8526 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8527 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8528 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8529 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 8531 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8532 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8533 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8534 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8536 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8538 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8540 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8541 | Use char because int might match the return type of a GCC | 
|  | 8542 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | #ifdef __cplusplus | 
|  | 8544 | extern "C" | 
|  | 8545 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | int | 
|  | 8548 | main () | 
|  | 8549 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8550 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | ; | 
|  | 8552 | return 0; | 
|  | 8553 | } | 
|  | 8554 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8555 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8557 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8558 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8559 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8560 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8561 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8563 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 8565 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8566 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8567 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8568 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8569 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8570 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8571 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8572 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8573 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 8575 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8576 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8577 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8578 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8580 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8582 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8584 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8585 | Use char because int might match the return type of a GCC | 
|  | 8586 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8587 | #ifdef __cplusplus | 
|  | 8588 | extern "C" | 
|  | 8589 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | int | 
|  | 8592 | main () | 
|  | 8593 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | ; | 
|  | 8596 | return 0; | 
|  | 8597 | } | 
|  | 8598 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8599 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8601 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8602 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8603 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8604 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8605 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8607 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 8609 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8610 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8611 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8612 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8613 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8614 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8615 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8616 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8617 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 8619 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8620 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8621 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8622 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8624 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8626 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8628 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8629 | Use char because int might match the return type of a GCC | 
|  | 8630 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | #ifdef __cplusplus | 
|  | 8632 | extern "C" | 
|  | 8633 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | int | 
|  | 8636 | main () | 
|  | 8637 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8638 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | ; | 
|  | 8640 | return 0; | 
|  | 8641 | } | 
|  | 8642 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8643 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8644 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8645 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8647 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8648 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8649 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8650 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8651 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 8653 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8654 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8656 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8657 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8658 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8659 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8660 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8661 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 8663 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8664 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8665 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8666 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8668 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8670 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8672 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8673 | Use char because int might match the return type of a GCC | 
|  | 8674 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | #ifdef __cplusplus | 
|  | 8676 | extern "C" | 
|  | 8677 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | int | 
|  | 8680 | main () | 
|  | 8681 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8682 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | ; | 
|  | 8684 | return 0; | 
|  | 8685 | } | 
|  | 8686 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8687 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8688 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8689 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8690 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8691 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8692 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8693 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8695 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 8697 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8698 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8699 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8700 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8701 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8702 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8703 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8704 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8705 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8706 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8707 | fi | 
|  | 8708 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8709 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8710 | fi | 
|  | 8711 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8712 | fi | 
|  | 8713 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8714 | fi | 
|  | 8715 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8716 | fi | 
|  | 8717 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8718 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8719 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8720 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8721 | fi | 
|  | 8722 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 |  | 
|  | 8724 | fi | 
|  | 8725 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8726 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 8729 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8730 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8732 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8734 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8736 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8738 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8739 | Use char because int might match the return type of a GCC | 
|  | 8740 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | #ifdef __cplusplus | 
|  | 8742 | extern "C" | 
|  | 8743 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | int | 
|  | 8746 | main () | 
|  | 8747 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8748 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | ; | 
|  | 8750 | return 0; | 
|  | 8751 | } | 
|  | 8752 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8753 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8756 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8757 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8758 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8759 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8761 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 8763 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8764 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8765 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8766 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8767 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8768 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8769 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8770 | fi | 
|  | 8771 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8772 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8773 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 8775 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8776 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8777 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8778 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8780 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8782 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8784 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8785 | Use char because int might match the return type of a GCC | 
|  | 8786 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | #ifdef __cplusplus | 
|  | 8788 | extern "C" | 
|  | 8789 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | int | 
|  | 8792 | main () | 
|  | 8793 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8794 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8795 | ; | 
|  | 8796 | return 0; | 
|  | 8797 | } | 
|  | 8798 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8801 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8803 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8805 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8807 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 8809 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8810 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8811 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8812 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8813 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8814 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8815 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8816 | fi | 
|  | 8817 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8818 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8819 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8820 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8821 | if test "$posix_threads" = "yes"; then | 
|  | 8822 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8824 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8825 |  | 
|  | 8826 | fi | 
|  | 8827 |  | 
|  | 8828 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 8829 | case  $ac_sys_system/$ac_sys_release in | 
|  | 8830 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8831 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8832 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8833 | ;; | 
|  | 8834 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8836 |  | 
|  | 8837 | ;; | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8838 | AIX/5) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8839 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8840 |  | 
|  | 8841 | ;; | 
| Antoine Pitrou | 33a2994 | 2010-08-30 14:52:00 +0000 | [diff] [blame] | 8842 | AIX/6) | 
|  | 8843 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
|  | 8844 |  | 
|  | 8845 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8846 | esac | 
|  | 8847 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 8849 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8850 | if test "${ac_cv_pthread_system_supported+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8851 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8852 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8853 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8854 | ac_cv_pthread_system_supported=no | 
|  | 8855 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8857 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8858 | #include <pthread.h> | 
|  | 8859 | void *foo(void *parm) { | 
|  | 8860 | return NULL; | 
|  | 8861 | } | 
|  | 8862 | main() { | 
|  | 8863 | pthread_attr_t attr; | 
|  | 8864 | pthread_t id; | 
|  | 8865 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 8866 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 8867 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 8868 | exit(0); | 
|  | 8869 | } | 
|  | 8870 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8871 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8872 | ac_cv_pthread_system_supported=yes | 
|  | 8873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8874 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8877 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8878 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8879 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8880 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8881 | fi | 
|  | 8882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 8884 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8885 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 8886 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8887 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8888 |  | 
|  | 8889 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8890 | for ac_func in pthread_sigmask | 
|  | 8891 | do : | 
|  | 8892 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8893 | if test "x$ac_cv_func_pthread_sigmask" = x""yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8894 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8895 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8896 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8897 | case $ac_sys_system in | 
|  | 8898 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8901 |  | 
|  | 8902 | ;; | 
|  | 8903 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8904 | fi | 
|  | 8905 | done | 
|  | 8906 |  | 
|  | 8907 | fi | 
|  | 8908 |  | 
|  | 8909 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8910 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 8913 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8914 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8915 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8916 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8917 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8919 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8920 | ipv6=no | 
|  | 8921 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8922 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8923 | $as_echo "yes" >&6; } | 
|  | 8924 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8925 |  | 
|  | 8926 | ipv6=yes | 
|  | 8927 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8929 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8934 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8935 | ipv6=no | 
|  | 8936 |  | 
|  | 8937 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8939 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8940 | /* AF_INET6 available check */ | 
|  | 8941 | #include <sys/types.h> | 
|  | 8942 | #include <sys/socket.h> | 
|  | 8943 | main() | 
|  | 8944 | { | 
|  | 8945 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
|  | 8946 | exit(1); | 
|  | 8947 | else | 
|  | 8948 | exit(0); | 
|  | 8949 | } | 
|  | 8950 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8952 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8955 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8956 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8957 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8958 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8961 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8962 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8963 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8964 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8966 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8967 | fi | 
|  | 8968 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8969 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8970 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 8972 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 8973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8974 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8975 |  | 
|  | 8976 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8977 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | int | 
|  | 8979 | main () | 
|  | 8980 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8981 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8982 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | ; | 
|  | 8984 | return 0; | 
|  | 8985 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8988 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8989 |  | 
|  | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8991 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8992 | ipv6=yes | 
|  | 8993 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8994 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8995 |  | 
|  | 8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8997 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8998 | ipv6=no | 
|  | 8999 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9000 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9001 | 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] | 9002 | fi | 
|  | 9003 |  | 
|  | 9004 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9005 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9006 |  | 
|  | 9007 | fi | 
|  | 9008 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9009 | fi | 
|  | 9010 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9011 |  | 
|  | 9012 | ipv6type=unknown | 
|  | 9013 | ipv6lib=none | 
|  | 9014 | ipv6trylibc=no | 
|  | 9015 |  | 
|  | 9016 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 9018 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9019 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 9020 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9021 | case $i in | 
|  | 9022 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9024 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9025 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9026 | #include <netinet/in.h> | 
|  | 9027 | #ifdef IPV6_INRIA_VERSION | 
|  | 9028 | yes | 
|  | 9029 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9032 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9033 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9034 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9035 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9036 |  | 
|  | 9037 | ;; | 
|  | 9038 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9040 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9041 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9042 | #include <netinet/in.h> | 
|  | 9043 | #ifdef __KAME__ | 
|  | 9044 | yes | 
|  | 9045 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9048 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9049 | ipv6type=$i; | 
|  | 9050 | ipv6lib=inet6 | 
|  | 9051 | ipv6libdir=/usr/local/v6/lib | 
|  | 9052 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9053 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9054 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9055 |  | 
|  | 9056 | ;; | 
|  | 9057 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9059 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9060 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9061 | #include <features.h> | 
|  | 9062 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 9063 | yes | 
|  | 9064 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9067 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9068 | ipv6type=$i; | 
|  | 9069 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9070 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9071 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9072 |  | 
|  | 9073 | ;; | 
|  | 9074 | linux-inet6) | 
|  | 9075 | if test -d /usr/inet6; then | 
|  | 9076 | ipv6type=$i | 
|  | 9077 | ipv6lib=inet6 | 
|  | 9078 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9079 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9080 | fi | 
|  | 9081 | ;; | 
|  | 9082 | solaris) | 
|  | 9083 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9084 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9085 | ipv6type=$i | 
|  | 9086 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9087 | fi | 
|  | 9088 | fi | 
|  | 9089 | ;; | 
|  | 9090 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9092 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9093 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9094 | #include <sys/param.h> | 
|  | 9095 | #ifdef _TOSHIBA_INET6 | 
|  | 9096 | yes | 
|  | 9097 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9100 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9101 | ipv6type=$i; | 
|  | 9102 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9103 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9104 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9105 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9106 |  | 
|  | 9107 | ;; | 
|  | 9108 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9110 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9111 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9112 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 9113 | #ifdef __V6D__ | 
|  | 9114 | yes | 
|  | 9115 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9117 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9118 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9119 | ipv6type=$i; | 
|  | 9120 | ipv6lib=v6; | 
|  | 9121 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9122 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9123 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9124 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9125 |  | 
|  | 9126 | ;; | 
|  | 9127 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9129 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9130 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9131 | #include <sys/param.h> | 
|  | 9132 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 9133 | yes | 
|  | 9134 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9137 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9138 | ipv6type=$i; | 
|  | 9139 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9140 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9141 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9142 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9143 |  | 
|  | 9144 | ;; | 
|  | 9145 | esac | 
|  | 9146 | if test "$ipv6type" != "unknown"; then | 
|  | 9147 | break | 
|  | 9148 | fi | 
|  | 9149 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 9151 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9152 | fi | 
|  | 9153 |  | 
|  | 9154 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 9155 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 9156 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 9157 | echo "using lib$ipv6lib" | 
|  | 9158 | else | 
|  | 9159 | if test $ipv6trylibc = "yes"; then | 
|  | 9160 | echo "using libc" | 
|  | 9161 | else | 
|  | 9162 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 9163 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 9164 | echo 'ipv6 kit and compile beforehand.' | 
|  | 9165 | exit 1 | 
|  | 9166 | fi | 
|  | 9167 | fi | 
|  | 9168 | fi | 
|  | 9169 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 9171 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 9172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9173 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9174 |  | 
|  | 9175 | #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9176 | int | 
|  | 9177 | main () | 
|  | 9178 | { | 
|  | 9179 | FSIORefNum fRef = 0 | 
|  | 9180 | ; | 
|  | 9181 | return 0; | 
|  | 9182 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9183 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9184 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9185 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9186 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9188 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9189 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9191 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9192 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9193 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9194 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9196 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9197 |  | 
|  | 9198 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9200 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9201 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 9203 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9204 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9205 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9206 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9207 | withval=$with_doc_strings; | 
|  | 9208 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9209 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9210 |  | 
|  | 9211 | if test -z "$with_doc_strings" | 
|  | 9212 | then with_doc_strings="yes" | 
|  | 9213 | fi | 
|  | 9214 | if test "$with_doc_strings" != "no" | 
|  | 9215 | then | 
|  | 9216 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9217 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9218 |  | 
|  | 9219 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 9221 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9222 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9223 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 9225 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9226 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9227 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9228 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9229 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9230 | if test "$withval" != no | 
|  | 9231 | then | 
|  | 9232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9233 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9236 | $as_echo "yes" >&6; } | 
|  | 9237 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9238 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9239 | fi | 
|  | 9240 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9242 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9243 | fi | 
|  | 9244 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9245 |  | 
|  | 9246 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 9248 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9250 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9251 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9252 | withval=$with_pymalloc; | 
|  | 9253 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9254 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9255 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9256 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9257 | then | 
|  | 9258 | with_pymalloc="yes" | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9259 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9260 | fi | 
|  | 9261 | if test "$with_pymalloc" != "no" | 
|  | 9262 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9265 |  | 
|  | 9266 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 9268 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9269 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9270 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 9272 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9273 |  | 
|  | 9274 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9275 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9276 | withval=$with_valgrind; | 
|  | 9277 | else | 
|  | 9278 | with_valgrind=no | 
|  | 9279 | fi | 
|  | 9280 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 9282 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9283 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9284 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9285 | if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9287 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9288 |  | 
|  | 9289 | else | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 9290 | as_fn_error "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9291 |  | 
|  | 9292 | fi | 
|  | 9293 |  | 
|  | 9294 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9295 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9296 | fi | 
|  | 9297 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9298 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9299 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9300 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9301 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9302 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 9303 | # 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] | 9304 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9305 | do : | 
|  | 9306 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9307 | if test "x$ac_cv_func_dlopen" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9309 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9311 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9312 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9313 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9314 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9315 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9316 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 9317 | # loading of modules. | 
|  | 9318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 9320 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9321 | if test -z "$DYNLOADFILE" | 
|  | 9322 | then | 
|  | 9323 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9324 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 9325 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9326 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9327 | else DYNLOADFILE="dynload_aix.o" | 
|  | 9328 | fi | 
|  | 9329 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9330 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9331 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 9332 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9333 | *) | 
|  | 9334 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 9335 | # out any dynamic loading | 
|  | 9336 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9337 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9338 | else DYNLOADFILE="dynload_stub.o" | 
|  | 9339 | fi | 
|  | 9340 | ;; | 
|  | 9341 | esac | 
|  | 9342 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 9344 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9345 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 9346 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9349 |  | 
|  | 9350 | fi | 
|  | 9351 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9352 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 9353 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9354 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 9356 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9357 | if test -z "$MACHDEP_OBJS" | 
|  | 9358 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9359 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 9360 | else | 
|  | 9361 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9362 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
|  | 9364 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9365 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9366 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9367 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Antoine Pitrou | 8250e23 | 2011-02-25 23:41:16 +0000 | [diff] [blame] | 9368 | clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9369 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
|  | 9370 | futimens futimes \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9371 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9372 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 9373 | if_nameindex \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9374 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 9375 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9376 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 9377 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9378 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 9379 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 9380 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 9381 | sigaction sigaltstack siginterrupt sigpending \ | 
|  | 9382 | sigrelse sigwait snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9383 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9384 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
|  | 9385 | wcscoll wcsftime wcsxfrm writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9386 | do : | 
|  | 9387 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9388 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 9389 | eval as_val=\$$as_ac_var | 
|  | 9390 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9392 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9394 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9395 | fi | 
|  | 9396 | done | 
|  | 9397 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9398 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9399 | # For some functions, having a definition is not sufficient, since | 
|  | 9400 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 9402 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 9403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9404 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9405 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9406 | int | 
|  | 9407 | main () | 
|  | 9408 | { | 
|  | 9409 | void *x=chroot | 
|  | 9410 | ; | 
|  | 9411 | return 0; | 
|  | 9412 | } | 
|  | 9413 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9414 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9416 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9417 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9419 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9420 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9422 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9423 |  | 
|  | 9424 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 9427 | $as_echo_n "checking for link... " >&6; } | 
|  | 9428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9429 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9430 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9431 | int | 
|  | 9432 | main () | 
|  | 9433 | { | 
|  | 9434 | void *x=link | 
|  | 9435 | ; | 
|  | 9436 | return 0; | 
|  | 9437 | } | 
|  | 9438 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9439 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9441 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9442 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9444 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9447 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9448 |  | 
|  | 9449 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 9452 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 9453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9454 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9455 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9456 | int | 
|  | 9457 | main () | 
|  | 9458 | { | 
|  | 9459 | void *x=symlink | 
|  | 9460 | ; | 
|  | 9461 | return 0; | 
|  | 9462 | } | 
|  | 9463 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9464 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9466 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9467 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9469 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9472 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9473 |  | 
|  | 9474 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 9477 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 9478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9479 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9480 | #include <unistd.h> | 
|  | 9481 | int | 
|  | 9482 | main () | 
|  | 9483 | { | 
|  | 9484 | void *x=fchdir | 
|  | 9485 | ; | 
|  | 9486 | return 0; | 
|  | 9487 | } | 
|  | 9488 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9489 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9491 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9492 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9494 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9495 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9497 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9498 |  | 
|  | 9499 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 9502 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 9503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9504 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9505 | #include <unistd.h> | 
|  | 9506 | int | 
|  | 9507 | main () | 
|  | 9508 | { | 
|  | 9509 | void *x=fsync | 
|  | 9510 | ; | 
|  | 9511 | return 0; | 
|  | 9512 | } | 
|  | 9513 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9514 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9515 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9516 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9517 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9519 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9522 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9523 |  | 
|  | 9524 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 9527 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 9528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9529 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9530 | #include <unistd.h> | 
|  | 9531 | int | 
|  | 9532 | main () | 
|  | 9533 | { | 
|  | 9534 | void *x=fdatasync | 
|  | 9535 | ; | 
|  | 9536 | return 0; | 
|  | 9537 | } | 
|  | 9538 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9539 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9540 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9541 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9542 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9544 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9545 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9547 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9548 |  | 
|  | 9549 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 9552 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9554 | /* end confdefs.h.  */ | 
|  | 9555 | #include <sys/epoll.h> | 
|  | 9556 | int | 
|  | 9557 | main () | 
|  | 9558 | { | 
|  | 9559 | void *x=epoll_create | 
|  | 9560 | ; | 
|  | 9561 | return 0; | 
|  | 9562 | } | 
|  | 9563 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9564 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9566 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9567 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9569 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9572 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9573 |  | 
|  | 9574 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 9577 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 9578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9579 | /* end confdefs.h.  */ | 
|  | 9580 |  | 
|  | 9581 | #include <sys/types.h> | 
|  | 9582 | #include <sys/event.h> | 
|  | 9583 |  | 
|  | 9584 | int | 
|  | 9585 | main () | 
|  | 9586 | { | 
|  | 9587 | int x=kqueue() | 
|  | 9588 | ; | 
|  | 9589 | return 0; | 
|  | 9590 | } | 
|  | 9591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9594 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9595 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9597 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9598 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9600 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9601 |  | 
|  | 9602 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9603 | 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] | 9604 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 9605 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 9606 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 9607 | # address to avoid compiler warnings and potential miscompilations | 
|  | 9608 | # because of the missing prototypes. | 
|  | 9609 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 9611 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 9612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9613 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9614 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9615 | #include <stdio.h> | 
|  | 9616 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9617 | int | 
|  | 9618 | main () | 
|  | 9619 | { | 
|  | 9620 | void* p = ctermid_r | 
|  | 9621 | ; | 
|  | 9622 | return 0; | 
|  | 9623 | } | 
|  | 9624 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9625 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9626 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9627 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9628 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9630 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9631 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9633 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9634 |  | 
|  | 9635 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9637 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 9639 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9640 | if test "${ac_cv_flock_decl+set}" = set; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9641 | $as_echo_n "(cached) " >&6 | 
|  | 9642 | else | 
|  | 9643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9644 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9645 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9646 | int | 
|  | 9647 | main () | 
|  | 9648 | { | 
|  | 9649 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9650 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9651 | ; | 
|  | 9652 | return 0; | 
|  | 9653 | } | 
|  | 9654 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9655 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9656 | ac_cv_flock_decl=yes | 
|  | 9657 | else | 
|  | 9658 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9659 |  | 
|  | 9660 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9662 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9663 | fi | 
|  | 9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 9665 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 9666 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 9667 | for ac_func in flock | 
|  | 9668 | do : | 
|  | 9669 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9670 | if test "x$ac_cv_func_flock" = x""yes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9671 | cat >>confdefs.h <<_ACEOF | 
|  | 9672 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9673 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9674 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9675 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9677 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9678 | if test "${ac_cv_lib_bsd_flock+set}" = set; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9679 | $as_echo_n "(cached) " >&6 | 
|  | 9680 | else | 
|  | 9681 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9682 | LIBS="-lbsd  $LIBS" | 
|  | 9683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9684 | /* end confdefs.h.  */ | 
|  | 9685 |  | 
|  | 9686 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9687 | Use char because int might match the return type of a GCC | 
|  | 9688 | builtin and then its argument prototype would still apply.  */ | 
|  | 9689 | #ifdef __cplusplus | 
|  | 9690 | extern "C" | 
|  | 9691 | #endif | 
|  | 9692 | char flock (); | 
|  | 9693 | int | 
|  | 9694 | main () | 
|  | 9695 | { | 
|  | 9696 | return flock (); | 
|  | 9697 | ; | 
|  | 9698 | return 0; | 
|  | 9699 | } | 
|  | 9700 | _ACEOF | 
|  | 9701 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9702 | ac_cv_lib_bsd_flock=yes | 
|  | 9703 | else | 
|  | 9704 | ac_cv_lib_bsd_flock=no | 
|  | 9705 | fi | 
|  | 9706 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9707 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9708 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9709 | fi | 
|  | 9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 9711 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9712 | if test "x$ac_cv_lib_bsd_flock" = x""yes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9713 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9714 |  | 
|  | 9715 |  | 
|  | 9716 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 9717 |  | 
|  | 9718 |  | 
|  | 9719 | fi | 
|  | 9720 |  | 
|  | 9721 |  | 
|  | 9722 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9723 | done | 
|  | 9724 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9725 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 9728 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 9729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9731 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9732 | #include <unistd.h> | 
|  | 9733 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9734 | int | 
|  | 9735 | main () | 
|  | 9736 | { | 
|  | 9737 | void* p = getpagesize | 
|  | 9738 | ; | 
|  | 9739 | return 0; | 
|  | 9740 | } | 
|  | 9741 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9742 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9743 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9744 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9745 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9747 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9748 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9750 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9751 |  | 
|  | 9752 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9754 |  | 
| Antoine Pitrou | 6f26be0 | 2011-05-03 18:18:59 +0200 | [diff] [blame] | 9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallopt can set malloc mmap threshold" >&5 | 
|  | 9756 | $as_echo_n "checking whether mallopt can set malloc mmap threshold... " >&6; } | 
|  | 9757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9758 | /* end confdefs.h.  */ | 
|  | 9759 |  | 
|  | 9760 | #include <malloc.h> | 
|  | 9761 |  | 
|  | 9762 | int | 
|  | 9763 | main () | 
|  | 9764 | { | 
|  | 9765 | mallopt(M_MMAP_THRESHOLD, 256 * 1024) | 
|  | 9766 | ; | 
|  | 9767 | return 0; | 
|  | 9768 | } | 
|  | 9769 | _ACEOF | 
|  | 9770 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 9771 |  | 
|  | 9772 | $as_echo "#define HAVE_MALLOPT_MMAP_THRESHOLD 1" >>confdefs.h | 
|  | 9773 |  | 
|  | 9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9775 | $as_echo "yes" >&6; } | 
|  | 9776 | else | 
|  | 9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9778 | $as_echo "no" >&6; } | 
|  | 9779 |  | 
|  | 9780 | fi | 
|  | 9781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9782 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9783 | for ac_prog in true | 
|  | 9784 | do | 
|  | 9785 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 9786 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9788 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9789 | if test "${ac_cv_prog_TRUE+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9790 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9791 | else | 
|  | 9792 | if test -n "$TRUE"; then | 
|  | 9793 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 9794 | else | 
|  | 9795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9796 | for as_dir in $PATH | 
|  | 9797 | do | 
|  | 9798 | IFS=$as_save_IFS | 
|  | 9799 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9800 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9802 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9803 | $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] | 9804 | break 2 | 
|  | 9805 | fi | 
|  | 9806 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9807 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9808 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9809 |  | 
|  | 9810 | fi | 
|  | 9811 | fi | 
|  | 9812 | TRUE=$ac_cv_prog_TRUE | 
|  | 9813 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 9815 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9816 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9818 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9819 | fi | 
|  | 9820 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9821 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9822 | test -n "$TRUE" && break | 
|  | 9823 | done | 
|  | 9824 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 9825 |  | 
|  | 9826 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 9828 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9829 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9830 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9831 | else | 
|  | 9832 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9833 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9835 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9836 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9837 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9838 | Use char because int might match the return type of a GCC | 
|  | 9839 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9840 | #ifdef __cplusplus | 
|  | 9841 | extern "C" | 
|  | 9842 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9843 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9844 | int | 
|  | 9845 | main () | 
|  | 9846 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9847 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9848 | ; | 
|  | 9849 | return 0; | 
|  | 9850 | } | 
|  | 9851 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9852 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9853 | ac_cv_lib_c_inet_aton=yes | 
|  | 9854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9855 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9856 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9857 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9858 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9859 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9860 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 9862 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9863 | if test "x$ac_cv_lib_c_inet_aton" = x""yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9864 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9865 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 9867 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9868 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9869 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9870 | else | 
|  | 9871 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9872 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9874 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9875 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9876 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9877 | Use char because int might match the return type of a GCC | 
|  | 9878 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9879 | #ifdef __cplusplus | 
|  | 9880 | extern "C" | 
|  | 9881 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9882 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9883 | int | 
|  | 9884 | main () | 
|  | 9885 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9886 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9887 | ; | 
|  | 9888 | return 0; | 
|  | 9889 | } | 
|  | 9890 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9891 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9892 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 9893 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9894 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9896 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9897 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9898 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9899 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 9901 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9902 | if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9903 | cat >>confdefs.h <<_ACEOF | 
|  | 9904 | #define HAVE_LIBRESOLV 1 | 
|  | 9905 | _ACEOF | 
|  | 9906 |  | 
|  | 9907 | LIBS="-lresolv $LIBS" | 
|  | 9908 |  | 
|  | 9909 | fi | 
|  | 9910 |  | 
|  | 9911 |  | 
|  | 9912 | fi | 
|  | 9913 |  | 
|  | 9914 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9915 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 9916 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 9918 | $as_echo_n "checking for chflags... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9919 | if test "${ac_cv_have_chflags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9920 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9921 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9922 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9923 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9924 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9926 | /* end confdefs.h.  */ | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9927 | [ | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9928 | #include <sys/stat.h> | 
|  | 9929 | #include <unistd.h> | 
|  | 9930 | int main(int argc, char*argv[]) | 
|  | 9931 | { | 
|  | 9932 | if(chflags(argv[0], 0) != 0) | 
|  | 9933 | return 1; | 
|  | 9934 | return 0; | 
|  | 9935 | } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9936 | ] | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9937 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9938 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9939 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9940 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9941 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9942 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9943 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9944 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 9945 | fi | 
|  | 9946 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9947 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9948 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 9950 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9951 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9953 | if test "x$ac_cv_func_chflags" = x""yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9954 | ac_cv_have_chflags="yes" | 
|  | 9955 | else | 
|  | 9956 | ac_cv_have_chflags="no" | 
|  | 9957 | fi | 
|  | 9958 |  | 
|  | 9959 | fi | 
|  | 9960 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9961 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9962 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9963 |  | 
|  | 9964 | fi | 
|  | 9965 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 9967 | $as_echo_n "checking for lchflags... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9968 | if test "${ac_cv_have_lchflags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9969 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9970 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9971 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9972 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9973 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9975 | /* end confdefs.h.  */ | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9976 | [ | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9977 | #include <sys/stat.h> | 
|  | 9978 | #include <unistd.h> | 
|  | 9979 | int main(int argc, char*argv[]) | 
|  | 9980 | { | 
|  | 9981 | if(lchflags(argv[0], 0) != 0) | 
|  | 9982 | return 1; | 
|  | 9983 | return 0; | 
|  | 9984 | } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9985 | ] | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9986 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9987 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9988 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9989 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9990 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9991 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9992 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9993 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9994 | fi | 
|  | 9995 |  | 
|  | 9996 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9997 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 9999 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10000 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10001 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10002 | if test "x$ac_cv_func_lchflags" = x""yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10003 | ac_cv_have_lchflags="yes" | 
|  | 10004 | else | 
|  | 10005 | ac_cv_have_lchflags="no" | 
|  | 10006 | fi | 
|  | 10007 |  | 
|  | 10008 | fi | 
|  | 10009 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10011 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10012 |  | 
|  | 10013 | fi | 
|  | 10014 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10015 | case $ac_sys_system/$ac_sys_release in | 
|  | 10016 | Darwin/*) | 
|  | 10017 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 10018 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 10019 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 10020 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 10021 | ;; | 
|  | 10022 | esac | 
|  | 10023 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 10025 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10026 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10027 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10028 | else | 
|  | 10029 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10030 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10032 | /* end confdefs.h.  */ | 
|  | 10033 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10034 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10035 | Use char because int might match the return type of a GCC | 
|  | 10036 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10037 | #ifdef __cplusplus | 
|  | 10038 | extern "C" | 
|  | 10039 | #endif | 
|  | 10040 | char inflateCopy (); | 
|  | 10041 | int | 
|  | 10042 | main () | 
|  | 10043 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10044 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10045 | ; | 
|  | 10046 | return 0; | 
|  | 10047 | } | 
|  | 10048 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10049 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10050 | ac_cv_lib_z_inflateCopy=yes | 
|  | 10051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10052 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10053 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10054 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10055 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10056 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 10059 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10060 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10063 |  | 
|  | 10064 | fi | 
|  | 10065 |  | 
|  | 10066 |  | 
|  | 10067 | case $ac_sys_system/$ac_sys_release in | 
|  | 10068 | Darwin/*) | 
|  | 10069 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 10070 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 10071 | ;; | 
|  | 10072 | esac | 
|  | 10073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 10075 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 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 | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10078 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10079 | #include <netdb.h> | 
|  | 10080 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10081 | int | 
|  | 10082 | main () | 
|  | 10083 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10084 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10085 | ; | 
|  | 10086 | return 0; | 
|  | 10087 | } | 
|  | 10088 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10089 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10091 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10092 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10094 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10095 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10097 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10098 |  | 
|  | 10099 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10100 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10101 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 10104 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 10105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10106 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10107 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10108 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10109 | #include <sys/socket.h> | 
|  | 10110 | #include <netinet/in.h> | 
|  | 10111 | #include <arpa/inet.h> | 
|  | 10112 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10113 | int | 
|  | 10114 | main () | 
|  | 10115 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10116 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10117 | ; | 
|  | 10118 | return 0; | 
|  | 10119 | } | 
|  | 10120 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10122 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10123 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10124 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10126 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10129 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10130 |  | 
|  | 10131 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10132 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10133 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 10136 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 10137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10138 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10139 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10140 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10141 | #include <sys/socket.h> | 
|  | 10142 | #include <netinet/in.h> | 
|  | 10143 | #include <arpa/inet.h> | 
|  | 10144 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10145 | int | 
|  | 10146 | main () | 
|  | 10147 | { | 
|  | 10148 | void* p = inet_pton | 
|  | 10149 | ; | 
|  | 10150 | return 0; | 
|  | 10151 | } | 
|  | 10152 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10153 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10155 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10156 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10158 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10159 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10161 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10162 |  | 
|  | 10163 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10164 | 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] | 10165 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10166 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 10168 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 10169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10170 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10171 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10172 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10173 | #ifdef HAVE_GRP_H | 
|  | 10174 | #include <grp.h> | 
|  | 10175 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10176 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10177 | int | 
|  | 10178 | main () | 
|  | 10179 | { | 
|  | 10180 | void* p = setgroups | 
|  | 10181 | ; | 
|  | 10182 | return 0; | 
|  | 10183 | } | 
|  | 10184 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10185 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10186 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10187 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10188 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10190 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10191 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10193 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10194 |  | 
|  | 10195 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10196 | 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] | 10197 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10198 | # check for openpty and forkpty | 
|  | 10199 |  | 
|  | 10200 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | do : | 
|  | 10202 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10203 | if test "x$ac_cv_func_openpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10205 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10207 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10208 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 10210 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10211 | if test "${ac_cv_lib_util_openpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10212 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10213 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10215 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10217 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10219 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10220 | Use char because int might match the return type of a GCC | 
|  | 10221 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | #ifdef __cplusplus | 
|  | 10223 | extern "C" | 
|  | 10224 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | int | 
|  | 10227 | main () | 
|  | 10228 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10229 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | ; | 
|  | 10231 | return 0; | 
|  | 10232 | } | 
|  | 10233 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10234 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10236 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10237 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10238 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10239 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10240 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 10244 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10245 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10246 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10247 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10248 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 10250 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10251 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10252 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10253 | else | 
|  | 10254 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10255 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10257 | /* end confdefs.h.  */ | 
|  | 10258 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10259 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10260 | Use char because int might match the return type of a GCC | 
|  | 10261 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10262 | #ifdef __cplusplus | 
|  | 10263 | extern "C" | 
|  | 10264 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10265 | char openpty (); | 
|  | 10266 | int | 
|  | 10267 | main () | 
|  | 10268 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10269 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10270 | ; | 
|  | 10271 | return 0; | 
|  | 10272 | } | 
|  | 10273 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10274 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10275 | ac_cv_lib_bsd_openpty=yes | 
|  | 10276 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10277 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10278 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10279 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10280 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10281 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10282 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 10284 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10285 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10286 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10287 | LIBS="$LIBS -lbsd" | 
|  | 10288 | fi | 
|  | 10289 |  | 
|  | 10290 |  | 
|  | 10291 | fi | 
|  | 10292 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10293 |  | 
|  | 10294 | fi | 
|  | 10295 | done | 
|  | 10296 |  | 
|  | 10297 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10298 | do : | 
|  | 10299 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10300 | if test "x$ac_cv_func_forkpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10302 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10304 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10305 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 10307 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10308 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10309 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10310 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10312 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10314 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10316 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10317 | Use char because int might match the return type of a GCC | 
|  | 10318 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | #ifdef __cplusplus | 
|  | 10320 | extern "C" | 
|  | 10321 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | int | 
|  | 10324 | main () | 
|  | 10325 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10326 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | ; | 
|  | 10328 | return 0; | 
|  | 10329 | } | 
|  | 10330 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10333 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10334 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10335 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10336 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10337 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 10341 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10342 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10343 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10344 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10345 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 10347 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10348 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10349 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10350 | else | 
|  | 10351 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10352 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10354 | /* end confdefs.h.  */ | 
|  | 10355 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10356 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10357 | Use char because int might match the return type of a GCC | 
|  | 10358 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10359 | #ifdef __cplusplus | 
|  | 10360 | extern "C" | 
|  | 10361 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10362 | char forkpty (); | 
|  | 10363 | int | 
|  | 10364 | main () | 
|  | 10365 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10366 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10367 | ; | 
|  | 10368 | return 0; | 
|  | 10369 | } | 
|  | 10370 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10372 | ac_cv_lib_bsd_forkpty=yes | 
|  | 10373 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10374 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10375 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10377 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10378 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10379 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 10381 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10382 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10383 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10384 | LIBS="$LIBS -lbsd" | 
|  | 10385 | fi | 
|  | 10386 |  | 
|  | 10387 |  | 
|  | 10388 | fi | 
|  | 10389 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10390 |  | 
|  | 10391 | fi | 
|  | 10392 | done | 
|  | 10393 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10394 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10395 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10396 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10397 | do : | 
|  | 10398 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10399 | if test "x$ac_cv_func_memmove" = x""yes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10400 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10402 | _ACEOF | 
|  | 10403 |  | 
|  | 10404 | fi | 
|  | 10405 | done | 
|  | 10406 |  | 
|  | 10407 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10408 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10409 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10410 | do : | 
|  | 10411 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10412 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 10413 | eval as_val=\$$as_ac_var | 
|  | 10414 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10416 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10418 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10419 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10420 | done | 
|  | 10421 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10422 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 10423 | for ac_func in dup2 getcwd strdup | 
|  | 10424 | do : | 
|  | 10425 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10426 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 10427 | eval as_val=\$$as_ac_var | 
|  | 10428 | if test "x$as_val" = x""yes; then : | 
|  | 10429 | cat >>confdefs.h <<_ACEOF | 
|  | 10430 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 10431 | _ACEOF | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10432 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10433 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10434 | case " $LIBOBJS " in | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 10435 | *" $ac_func.$ac_objext "* ) ;; | 
|  | 10436 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10437 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10438 | esac | 
|  | 10439 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10440 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 10441 | done | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10442 |  | 
|  | 10443 |  | 
|  | 10444 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10445 | do : | 
|  | 10446 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10447 | if test "x$ac_cv_func_getpgrp" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10449 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10450 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10452 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10453 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | int | 
|  | 10455 | main () | 
|  | 10456 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10457 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | ; | 
|  | 10459 | return 0; | 
|  | 10460 | } | 
|  | 10461 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10462 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10465 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10466 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10467 | 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] | 10468 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10469 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10470 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10471 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10472 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10473 | do : | 
|  | 10474 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10475 | if test "x$ac_cv_func_setpgrp" = x""yes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10476 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10477 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10478 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10480 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10481 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10482 | int | 
|  | 10483 | main () | 
|  | 10484 | { | 
|  | 10485 | setpgrp(0,0); | 
|  | 10486 | ; | 
|  | 10487 | return 0; | 
|  | 10488 | } | 
|  | 10489 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10492 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10493 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10494 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10496 |  | 
|  | 10497 | fi | 
|  | 10498 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10499 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10500 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10501 | do : | 
|  | 10502 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10503 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10505 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10508 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10509 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | int | 
|  | 10511 | main () | 
|  | 10512 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10513 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | ; | 
|  | 10515 | return 0; | 
|  | 10516 | } | 
|  | 10517 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10518 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10519 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10520 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10521 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10522 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10523 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10525 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10526 | 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] | 10527 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10528 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10529 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10530 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10531 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 10533 | $as_echo_n "checking for major... " >&6; } | 
|  | 10534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10535 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10536 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10537 | #if defined(MAJOR_IN_MKDEV) | 
|  | 10538 | #include <sys/mkdev.h> | 
|  | 10539 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 10540 | #include <sys/sysmacros.h> | 
|  | 10541 | #else | 
|  | 10542 | #include <sys/types.h> | 
|  | 10543 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10544 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10545 | int | 
|  | 10546 | main () | 
|  | 10547 | { | 
|  | 10548 |  | 
|  | 10549 | makedev(major(0),minor(0)); | 
|  | 10550 |  | 
|  | 10551 | ; | 
|  | 10552 | return 0; | 
|  | 10553 | } | 
|  | 10554 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10556 |  | 
|  | 10557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10558 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10561 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10562 |  | 
|  | 10563 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10566 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10567 |  | 
|  | 10568 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10569 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10570 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10571 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10572 | # 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] | 10573 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 10575 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 10576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10577 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10578 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10579 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10580 | #include <sys/socket.h> | 
|  | 10581 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10582 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10583 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | int | 
|  | 10585 | main () | 
|  | 10586 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10587 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | ; | 
|  | 10589 | return 0; | 
|  | 10590 | } | 
|  | 10591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10592 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10593 | have_getaddrinfo=yes | 
|  | 10594 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10595 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10596 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10597 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10598 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 10600 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10601 | if test $have_getaddrinfo = yes | 
|  | 10602 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 10604 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10605 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10606 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10608 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10609 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10610 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10612 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10613 |  | 
|  | 10614 | #include <sys/types.h> | 
|  | 10615 | #include <netdb.h> | 
|  | 10616 | #include <string.h> | 
|  | 10617 | #include <sys/socket.h> | 
|  | 10618 | #include <netinet/in.h> | 
|  | 10619 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10620 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10621 | { | 
|  | 10622 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 10623 | struct addrinfo hints, *ai, *aitop; | 
|  | 10624 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 10625 |  | 
|  | 10626 | for (passive = 0; passive <= 1; passive++) { | 
|  | 10627 | memset(&hints, 0, sizeof(hints)); | 
|  | 10628 | hints.ai_family = AF_UNSPEC; | 
|  | 10629 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 10630 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10631 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10632 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 10633 | (void)gai_strerror(gaierr); | 
|  | 10634 | goto bad; | 
|  | 10635 | } | 
|  | 10636 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 10637 | if (ai->ai_addr == NULL || | 
|  | 10638 | ai->ai_addrlen == 0 || | 
|  | 10639 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 10640 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 10641 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 10642 | goto bad; | 
|  | 10643 | } | 
|  | 10644 | switch (ai->ai_family) { | 
|  | 10645 | case AF_INET: | 
|  | 10646 | if (strcmp(strport, "54321") != 0) { | 
|  | 10647 | goto bad; | 
|  | 10648 | } | 
|  | 10649 | if (passive) { | 
|  | 10650 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 10651 | goto bad; | 
|  | 10652 | } | 
|  | 10653 | } else { | 
|  | 10654 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 10655 | goto bad; | 
|  | 10656 | } | 
|  | 10657 | } | 
|  | 10658 | inet4++; | 
|  | 10659 | break; | 
|  | 10660 | case AF_INET6: | 
|  | 10661 | if (strcmp(strport, "54321") != 0) { | 
|  | 10662 | goto bad; | 
|  | 10663 | } | 
|  | 10664 | if (passive) { | 
|  | 10665 | if (strcmp(straddr, "::") != 0) { | 
|  | 10666 | goto bad; | 
|  | 10667 | } | 
|  | 10668 | } else { | 
|  | 10669 | if (strcmp(straddr, "::1") != 0) { | 
|  | 10670 | goto bad; | 
|  | 10671 | } | 
|  | 10672 | } | 
|  | 10673 | inet6++; | 
|  | 10674 | break; | 
|  | 10675 | case AF_UNSPEC: | 
|  | 10676 | goto bad; | 
|  | 10677 | break; | 
|  | 10678 | default: | 
|  | 10679 | /* another family support? */ | 
|  | 10680 | break; | 
|  | 10681 | } | 
|  | 10682 | } | 
|  | 10683 | } | 
|  | 10684 |  | 
|  | 10685 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 10686 | goto bad; | 
|  | 10687 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 10688 | goto bad; | 
|  | 10689 |  | 
|  | 10690 | if (aitop) | 
|  | 10691 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10692 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10693 |  | 
|  | 10694 | bad: | 
|  | 10695 | if (aitop) | 
|  | 10696 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10697 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10698 | } | 
|  | 10699 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10701 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10702 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10703 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10704 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10706 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10707 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10708 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10709 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10710 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10711 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10712 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10713 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 10715 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 10716 |  | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10717 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10718 | then | 
|  | 10719 | if test $ipv6 = yes | 
|  | 10720 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10721 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 10722 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 10723 | exit 1 | 
|  | 10724 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10725 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10728 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10729 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10730 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10731 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10732 | do : | 
|  | 10733 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10734 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10736 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10738 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10739 | fi | 
|  | 10740 | done | 
|  | 10741 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10742 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10743 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 10745 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10746 | if test "${ac_cv_header_time+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10747 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10748 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10750 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10751 | #include <sys/types.h> | 
|  | 10752 | #include <sys/time.h> | 
|  | 10753 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10754 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | int | 
|  | 10756 | main () | 
|  | 10757 | { | 
|  | 10758 | if ((struct tm *) 0) | 
|  | 10759 | return 0; | 
|  | 10760 | ; | 
|  | 10761 | return 0; | 
|  | 10762 | } | 
|  | 10763 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10764 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10765 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10766 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10767 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10768 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10770 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 10772 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10773 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10775 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10776 |  | 
|  | 10777 | fi | 
|  | 10778 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 10780 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10781 | if test "${ac_cv_struct_tm+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10782 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10783 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10785 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10786 | #include <sys/types.h> | 
|  | 10787 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | int | 
|  | 10790 | main () | 
|  | 10791 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10792 | struct tm tm; | 
|  | 10793 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10794 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | ; | 
|  | 10796 | return 0; | 
|  | 10797 | } | 
|  | 10798 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10800 | ac_cv_struct_tm=time.h | 
|  | 10801 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10802 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10803 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10805 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 10807 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10808 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10809 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10810 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10811 |  | 
|  | 10812 | fi | 
|  | 10813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10814 | 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] | 10815 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10817 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10818 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 |  | 
|  | 10820 | cat >>confdefs.h <<_ACEOF | 
|  | 10821 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 10822 | _ACEOF | 
|  | 10823 |  | 
|  | 10824 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10825 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10826 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10827 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 10828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10829 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10830 |  | 
|  | 10831 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10832 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 10833 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10834 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10835 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10836 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10837 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10838 | fi | 
|  | 10839 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10840 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10841 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10842 | _ACEOF | 
|  | 10843 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 10845 | $as_echo_n "checking for tzname... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10846 | if test "${ac_cv_var_tzname+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10847 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10848 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10850 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10851 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10852 | #if !HAVE_DECL_TZNAME | 
|  | 10853 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10854 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | int | 
|  | 10857 | main () | 
|  | 10858 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10859 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | ; | 
|  | 10861 | return 0; | 
|  | 10862 | } | 
|  | 10863 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10864 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10865 | ac_cv_var_tzname=yes | 
|  | 10866 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10867 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10868 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10869 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10870 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10871 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 10873 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10874 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10875 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10876 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10877 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10878 | fi | 
|  | 10879 | fi | 
|  | 10880 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10881 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10882 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 |  | 
|  | 10884 | cat >>confdefs.h <<_ACEOF | 
|  | 10885 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 10886 | _ACEOF | 
|  | 10887 |  | 
|  | 10888 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10889 | fi | 
|  | 10890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10891 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10892 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10893 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | cat >>confdefs.h <<_ACEOF | 
|  | 10895 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 10896 | _ACEOF | 
|  | 10897 |  | 
|  | 10898 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10899 | fi | 
|  | 10900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10901 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10902 | if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 10903 |  | 
|  | 10904 | cat >>confdefs.h <<_ACEOF | 
|  | 10905 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 10906 | _ACEOF | 
|  | 10907 |  | 
|  | 10908 |  | 
|  | 10909 | fi | 
|  | 10910 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10911 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10912 | if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10913 |  | 
|  | 10914 | cat >>confdefs.h <<_ACEOF | 
|  | 10915 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 10916 | _ACEOF | 
|  | 10917 |  | 
|  | 10918 |  | 
|  | 10919 | fi | 
|  | 10920 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10921 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10922 | if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10923 |  | 
|  | 10924 | cat >>confdefs.h <<_ACEOF | 
|  | 10925 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 10926 | _ACEOF | 
|  | 10927 |  | 
|  | 10928 |  | 
|  | 10929 | fi | 
|  | 10930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10931 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10932 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10933 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | cat >>confdefs.h <<_ACEOF | 
|  | 10935 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 10936 | _ACEOF | 
|  | 10937 |  | 
|  | 10938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10940 |  | 
|  | 10941 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10942 | case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10943 | *" fileblocks.$ac_objext "* ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10944 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
|  | 10945 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10946 | esac | 
|  | 10947 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10948 | fi | 
|  | 10949 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10950 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 10953 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10954 | if test "${ac_cv_header_time_altzone+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10955 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10956 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10957 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10959 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10960 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10961 | int | 
|  | 10962 | main () | 
|  | 10963 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10964 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10965 | ; | 
|  | 10966 | return 0; | 
|  | 10967 | } | 
|  | 10968 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10969 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10970 | ac_cv_header_time_altzone=yes | 
|  | 10971 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10972 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10973 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10975 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10976 | fi | 
|  | 10977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 10979 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10980 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10982 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10983 |  | 
|  | 10984 | fi | 
|  | 10985 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10986 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 10988 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 10989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10990 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10991 |  | 
|  | 10992 | #include <sys/types.h> | 
|  | 10993 | #include <sys/select.h> | 
|  | 10994 | #include <sys/time.h> | 
|  | 10995 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | int | 
|  | 10997 | main () | 
|  | 10998 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10999 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11000 | ; | 
|  | 11001 | return 0; | 
|  | 11002 | } | 
|  | 11003 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11004 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 |  | 
|  | 11006 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11007 | $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] | 11008 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11009 | was_it_defined=yes | 
|  | 11010 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11011 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 11014 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 11017 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11018 | if test "${ac_cv_struct_addrinfo+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11019 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11020 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11022 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11023 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | int | 
|  | 11025 | main () | 
|  | 11026 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11027 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | ; | 
|  | 11029 | return 0; | 
|  | 11030 | } | 
|  | 11031 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11032 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11033 | ac_cv_struct_addrinfo=yes | 
|  | 11034 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11035 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11036 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11038 | fi | 
|  | 11039 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 11041 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11042 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11044 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11045 |  | 
|  | 11046 | fi | 
|  | 11047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 11049 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11050 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11051 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11052 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11054 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11055 |  | 
|  | 11056 | #		include <sys/types.h> | 
|  | 11057 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11058 | int | 
|  | 11059 | main () | 
|  | 11060 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11061 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | ; | 
|  | 11063 | return 0; | 
|  | 11064 | } | 
|  | 11065 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11067 | ac_cv_struct_sockaddr_storage=yes | 
|  | 11068 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11069 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11070 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11072 | fi | 
|  | 11073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 11075 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11076 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11078 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11079 |  | 
|  | 11080 | fi | 
|  | 11081 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11082 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 11085 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11086 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11087 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11088 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11090 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11092 | int | 
|  | 11093 | main () | 
|  | 11094 | { | 
|  | 11095 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
|  | 11096 | test_array [0] = 0 | 
|  | 11097 |  | 
|  | 11098 | ; | 
|  | 11099 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11100 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11102 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11103 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11105 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11106 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11108 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 11110 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11111 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11112 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11113 |  | 
|  | 11114 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 11117 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11118 | if test "${ac_cv_c_const+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11119 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11122 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11123 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11124 | int | 
|  | 11125 | main () | 
|  | 11126 | { | 
|  | 11127 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 11128 | #ifndef __cplusplus | 
|  | 11129 | /* Ultrix mips cc rejects this.  */ | 
|  | 11130 | typedef int charset[2]; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11131 | const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11133 | char const *const *pcpcc; | 
|  | 11134 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 11136 | struct point {int x, y;}; | 
|  | 11137 | static struct point const zero = {0,0}; | 
|  | 11138 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 11139 | It does not let you subtract one const X* pointer from another in | 
|  | 11140 | an arm of an if-expression whose if-part is not a constant | 
|  | 11141 | expression */ | 
|  | 11142 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11143 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11145 | ++pcpcc; | 
|  | 11146 | ppc = (char**) pcpcc; | 
|  | 11147 | pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 11149 | char *t; | 
|  | 11150 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11151 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11152 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11153 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 | } | 
|  | 11155 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 11156 | int x[] = {25, 17}; | 
|  | 11157 | const int *foo = &x[0]; | 
|  | 11158 | ++foo; | 
|  | 11159 | } | 
|  | 11160 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 11161 | typedef const int *iptr; | 
|  | 11162 | iptr p = 0; | 
|  | 11163 | ++p; | 
|  | 11164 | } | 
|  | 11165 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 11166 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 11167 | struct s { int j; const int *ap[3]; }; | 
|  | 11168 | struct s *b; b->j = 5; | 
|  | 11169 | } | 
|  | 11170 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 11171 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11172 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11174 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11176 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | ; | 
|  | 11178 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11179 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11181 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11182 | ac_cv_c_const=yes | 
|  | 11183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11184 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11185 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11187 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 11189 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11190 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11191 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11192 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11193 |  | 
|  | 11194 | fi | 
|  | 11195 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11196 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11197 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 11199 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 11200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11201 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11202 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11203 | int | 
|  | 11204 | main () | 
|  | 11205 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11206 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | ; | 
|  | 11208 | return 0; | 
|  | 11209 | } | 
|  | 11210 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11211 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11212 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11213 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11214 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11215 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11216 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11217 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11218 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11221 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11222 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11223 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 11225 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 11226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11227 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11228 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | int | 
|  | 11230 | main () | 
|  | 11231 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11232 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | ; | 
|  | 11234 | return 0; | 
|  | 11235 | } | 
|  | 11236 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11238 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11239 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11241 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11242 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11243 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11244 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11247 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11248 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11249 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 11251 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 11252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11253 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11254 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | int | 
|  | 11256 | main () | 
|  | 11257 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11258 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | ; | 
|  | 11260 | return 0; | 
|  | 11261 | } | 
|  | 11262 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11265 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11267 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11268 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 11271 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11272 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11273 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 11275 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 11276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11277 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11278 |  | 
|  | 11279 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11280 | int foo(int x, ...) { | 
|  | 11281 | va_list va; | 
|  | 11282 | va_start(va, x); | 
|  | 11283 | va_arg(va, int); | 
|  | 11284 | va_arg(va, char *); | 
|  | 11285 | va_arg(va, double); | 
|  | 11286 | return 0; | 
|  | 11287 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11288 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | int | 
|  | 11290 | main () | 
|  | 11291 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11292 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | ; | 
|  | 11294 | return 0; | 
|  | 11295 | } | 
|  | 11296 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11297 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 |  | 
|  | 11299 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11300 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11302 | works=yes | 
|  | 11303 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11304 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11307 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11308 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11309 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 11311 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 11312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11313 | /* end confdefs.h.  */ | 
|  | 11314 |  | 
|  | 11315 | #include <sys/types.h> | 
|  | 11316 | #include <sys/socket.h> | 
|  | 11317 |  | 
|  | 11318 | int | 
|  | 11319 | main () | 
|  | 11320 | { | 
|  | 11321 | void *x=socketpair | 
|  | 11322 | ; | 
|  | 11323 | return 0; | 
|  | 11324 | } | 
|  | 11325 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11326 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11327 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11328 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11329 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11331 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11332 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11334 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11335 |  | 
|  | 11336 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11337 | 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] | 11338 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11339 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 11341 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 11342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11343 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11344 | #include <sys/types.h> | 
|  | 11345 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | int | 
|  | 11347 | main () | 
|  | 11348 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11349 | struct sockaddr x; | 
|  | 11350 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | ; | 
|  | 11352 | return 0; | 
|  | 11353 | } | 
|  | 11354 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11355 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11357 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11359 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11360 |  | 
|  | 11361 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11363 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11364 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11365 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11366 | 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] | 11367 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11368 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 11370 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 11371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11372 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11373 |  | 
|  | 11374 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 11375 | #include <stdarg.h> | 
|  | 11376 | #else | 
|  | 11377 | #include <varargs.h> | 
|  | 11378 | #endif | 
|  | 11379 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | int | 
|  | 11381 | main () | 
|  | 11382 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11383 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11384 | ; | 
|  | 11385 | return 0; | 
|  | 11386 | } | 
|  | 11387 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11388 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11389 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11390 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11391 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11395 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11396 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11397 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 11400 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11401 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11402 | # 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] | 11403 |  | 
|  | 11404 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11405 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11406 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11408 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11409 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 11411 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11412 | OLD_CFLAGS=$CFLAGS | 
|  | 11413 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11415 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11416 |  | 
|  | 11417 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | int | 
|  | 11420 | main () | 
|  | 11421 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11422 |  | 
|  | 11423 | char *name; | 
|  | 11424 | struct hostent *he, *res; | 
|  | 11425 | char buffer[2048]; | 
|  | 11426 | int buflen = 2048; | 
|  | 11427 | int h_errnop; | 
|  | 11428 |  | 
|  | 11429 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 |  | 
|  | 11431 | ; | 
|  | 11432 | return 0; | 
|  | 11433 | } | 
|  | 11434 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11435 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11437 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11438 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11440 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11443 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11445 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11448 | $as_echo "no" >&6; } | 
|  | 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 11450 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 11451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11452 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11453 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11454 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | int | 
|  | 11457 | main () | 
|  | 11458 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11459 |  | 
|  | 11460 | char *name; | 
|  | 11461 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11462 | char buffer[2048]; | 
|  | 11463 | int buflen = 2048; | 
|  | 11464 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11465 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11466 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 |  | 
|  | 11468 | ; | 
|  | 11469 | return 0; | 
|  | 11470 | } | 
|  | 11471 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11474 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11475 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11477 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11478 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11480 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11482 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11485 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 11487 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 11488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11489 | /* end confdefs.h.  */ | 
|  | 11490 |  | 
|  | 11491 | #           include <netdb.h> | 
|  | 11492 |  | 
|  | 11493 | int | 
|  | 11494 | main () | 
|  | 11495 | { | 
|  | 11496 |  | 
|  | 11497 | char *name; | 
|  | 11498 | struct hostent *he; | 
|  | 11499 | struct hostent_data data; | 
|  | 11500 |  | 
|  | 11501 | (void) gethostbyname_r(name, he, &data); | 
|  | 11502 |  | 
|  | 11503 | ; | 
|  | 11504 | return 0; | 
|  | 11505 | } | 
|  | 11506 | _ACEOF | 
|  | 11507 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11508 |  | 
|  | 11509 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 11510 |  | 
|  | 11511 |  | 
|  | 11512 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 11513 |  | 
|  | 11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11515 | $as_echo "yes" >&6; } | 
|  | 11516 |  | 
|  | 11517 | else | 
|  | 11518 |  | 
|  | 11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11520 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11522 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11523 | 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] | 11524 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11525 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11526 | 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] | 11527 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11528 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11530 | CFLAGS=$OLD_CFLAGS | 
|  | 11531 |  | 
|  | 11532 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11534 | for ac_func in gethostbyname | 
|  | 11535 | do : | 
|  | 11536 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11537 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11539 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11541 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11542 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11543 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11544 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11545 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11546 | fi | 
|  | 11547 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11548 |  | 
|  | 11549 |  | 
|  | 11550 |  | 
|  | 11551 |  | 
|  | 11552 |  | 
|  | 11553 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11554 | # checks for system services | 
|  | 11555 | # (none yet) | 
|  | 11556 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11557 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11558 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11559 | if test "x$ac_cv_func___fpu_control" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11560 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11561 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 11563 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11564 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11565 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11566 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11568 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11570 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11572 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11573 | Use char because int might match the return type of a GCC | 
|  | 11574 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | #ifdef __cplusplus | 
|  | 11576 | extern "C" | 
|  | 11577 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11578 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | int | 
|  | 11580 | main () | 
|  | 11581 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11582 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | ; | 
|  | 11584 | return 0; | 
|  | 11585 | } | 
|  | 11586 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11587 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11590 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11592 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11593 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11595 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 11597 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11598 | if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | cat >>confdefs.h <<_ACEOF | 
|  | 11600 | #define HAVE_LIBIEEE 1 | 
|  | 11601 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11602 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11603 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11604 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11605 | fi | 
|  | 11606 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11607 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11608 | fi | 
|  | 11609 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11610 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11611 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 11613 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11615 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11616 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11617 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11618 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | then | 
|  | 11620 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11621 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11624 | $as_echo "yes" >&6; } | 
|  | 11625 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11626 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11627 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11628 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11630 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11631 | fi | 
|  | 11632 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11633 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11634 | # check for --with-libm=... | 
|  | 11635 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11636 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11637 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11638 | *) LIBM=-lm | 
|  | 11639 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 11641 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11642 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11643 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11644 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11645 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11646 | if test "$withval" = no | 
|  | 11647 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 11649 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11650 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11651 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 11653 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 11654 | 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] | 11655 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11656 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 11658 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11659 | fi | 
|  | 11660 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11661 |  | 
|  | 11662 | # check for --with-libc=... | 
|  | 11663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 11665 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11666 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11667 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11668 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11669 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11670 | if test "$withval" = no | 
|  | 11671 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 11673 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11674 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11675 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 11677 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 11678 | 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] | 11679 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11680 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 11682 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11683 | fi | 
|  | 11684 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11685 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11686 | # ************************************************** | 
|  | 11687 | # * Check for various properties of floating point * | 
|  | 11688 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11689 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 11691 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11692 | if test "${ac_cv_little_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11693 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11694 | else | 
|  | 11695 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11696 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11697 | ac_cv_little_endian_double=no | 
|  | 11698 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11700 | /* end confdefs.h.  */ | 
|  | 11701 |  | 
|  | 11702 | #include <string.h> | 
|  | 11703 | int main() { | 
|  | 11704 | double x = 9006104071832581.0; | 
|  | 11705 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 11706 | return 0; | 
|  | 11707 | else | 
|  | 11708 | return 1; | 
|  | 11709 | } | 
|  | 11710 |  | 
|  | 11711 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11712 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11713 | ac_cv_little_endian_double=yes | 
|  | 11714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11715 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11716 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11718 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11719 | fi | 
|  | 11720 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11721 | fi | 
|  | 11722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 11724 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11725 | if test "$ac_cv_little_endian_double" = yes | 
|  | 11726 | then | 
|  | 11727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11728 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11729 |  | 
|  | 11730 | fi | 
|  | 11731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 11733 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11734 | if test "${ac_cv_big_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11735 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11736 | else | 
|  | 11737 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11738 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11739 | ac_cv_big_endian_double=no | 
|  | 11740 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11742 | /* end confdefs.h.  */ | 
|  | 11743 |  | 
|  | 11744 | #include <string.h> | 
|  | 11745 | int main() { | 
|  | 11746 | double x = 9006104071832581.0; | 
|  | 11747 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 11748 | return 0; | 
|  | 11749 | else | 
|  | 11750 | return 1; | 
|  | 11751 | } | 
|  | 11752 |  | 
|  | 11753 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11755 | ac_cv_big_endian_double=yes | 
|  | 11756 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11757 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11758 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11759 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11760 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11761 | fi | 
|  | 11762 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11763 | fi | 
|  | 11764 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 11766 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11767 | if test "$ac_cv_big_endian_double" = yes | 
|  | 11768 | then | 
|  | 11769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11770 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11771 |  | 
|  | 11772 | fi | 
|  | 11773 |  | 
|  | 11774 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 11775 | # While Python doesn't currently have full support for these platforms | 
|  | 11776 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 11777 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 11779 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11780 | if test "${ac_cv_mixed_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11781 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11782 | else | 
|  | 11783 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11784 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11785 | ac_cv_mixed_endian_double=no | 
|  | 11786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11788 | /* end confdefs.h.  */ | 
|  | 11789 |  | 
|  | 11790 | #include <string.h> | 
|  | 11791 | int main() { | 
|  | 11792 | double x = 9006104071832581.0; | 
|  | 11793 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 11794 | return 0; | 
|  | 11795 | else | 
|  | 11796 | return 1; | 
|  | 11797 | } | 
|  | 11798 |  | 
|  | 11799 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11801 | ac_cv_mixed_endian_double=yes | 
|  | 11802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11803 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11804 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11805 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11806 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11807 | fi | 
|  | 11808 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11809 | fi | 
|  | 11810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 11812 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11813 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 11814 | then | 
|  | 11815 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11816 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11817 |  | 
|  | 11818 | fi | 
|  | 11819 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11820 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11821 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11822 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11823 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11824 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11825 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11826 |  | 
|  | 11827 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 11828 | # so we try it on all platforms. | 
|  | 11829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 11831 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 11832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11833 | /* end confdefs.h.  */ | 
|  | 11834 |  | 
|  | 11835 | int | 
|  | 11836 | main () | 
|  | 11837 | { | 
|  | 11838 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11839 | unsigned short cw; | 
|  | 11840 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 11841 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11842 |  | 
|  | 11843 | ; | 
|  | 11844 | return 0; | 
|  | 11845 | } | 
|  | 11846 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11847 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11848 | have_gcc_asm_for_x87=yes | 
|  | 11849 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11850 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11851 | fi | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 11854 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11855 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 11856 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11857 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11858 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11859 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11860 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11862 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 11863 | # rounding issues.  The result of this test has little meaning on non | 
|  | 11864 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 11865 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 11866 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 11868 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11869 | # $BASECFLAGS may affect the result | 
|  | 11870 | ac_save_cc="$CC" | 
|  | 11871 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11872 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11873 | ac_cv_x87_double_rounding=no | 
|  | 11874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11876 | /* end confdefs.h.  */ | 
|  | 11877 |  | 
|  | 11878 | #include <stdlib.h> | 
|  | 11879 | #include <math.h> | 
|  | 11880 | int main() { | 
|  | 11881 | volatile double x, y, z; | 
|  | 11882 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 11883 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 11884 | y = 1./x; | 
|  | 11885 | if (y != 1.) | 
|  | 11886 | exit(0); | 
|  | 11887 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 11888 | x = 1e16; | 
|  | 11889 | y = 2.99999; | 
|  | 11890 | z = x + y; | 
|  | 11891 | if (z != 1e16+4.) | 
|  | 11892 | exit(0); | 
|  | 11893 | /* both tests show evidence of double rounding */ | 
|  | 11894 | exit(1); | 
|  | 11895 | } | 
|  | 11896 |  | 
|  | 11897 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11899 | ac_cv_x87_double_rounding=no | 
|  | 11900 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11901 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11902 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11903 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11904 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11905 | fi | 
|  | 11906 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11907 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 11909 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11910 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 11911 | then | 
|  | 11912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11913 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11914 |  | 
|  | 11915 | fi | 
|  | 11916 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11917 | # ************************************ | 
|  | 11918 | # * Check for mathematical functions * | 
|  | 11919 | # ************************************ | 
|  | 11920 |  | 
|  | 11921 | LIBS_SAVE=$LIBS | 
|  | 11922 | LIBS="$LIBS $LIBM" | 
|  | 11923 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11924 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 11925 | do : | 
|  | 11926 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11927 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 11928 | eval as_val=\$$as_ac_var | 
|  | 11929 | if test "x$as_val" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11930 | cat >>confdefs.h <<_ACEOF | 
|  | 11931 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 11932 | _ACEOF | 
|  | 11933 |  | 
|  | 11934 | fi | 
|  | 11935 | done | 
|  | 11936 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 11937 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11938 | do : | 
|  | 11939 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11940 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 11941 | eval as_val=\$$as_ac_var | 
|  | 11942 | if test "x$as_val" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11943 | cat >>confdefs.h <<_ACEOF | 
|  | 11944 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 11945 | _ACEOF | 
|  | 11946 |  | 
|  | 11947 | fi | 
|  | 11948 | done | 
|  | 11949 |  | 
|  | 11950 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 11951 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11952 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11953 | ac_have_decl=1 | 
|  | 11954 | else | 
|  | 11955 | ac_have_decl=0 | 
|  | 11956 | fi | 
|  | 11957 |  | 
|  | 11958 | cat >>confdefs.h <<_ACEOF | 
|  | 11959 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 11960 | _ACEOF | 
|  | 11961 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 11962 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11963 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11964 | ac_have_decl=1 | 
|  | 11965 | else | 
|  | 11966 | ac_have_decl=0 | 
|  | 11967 | fi | 
|  | 11968 |  | 
|  | 11969 | cat >>confdefs.h <<_ACEOF | 
|  | 11970 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 11971 | _ACEOF | 
|  | 11972 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 11973 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11974 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11975 | ac_have_decl=1 | 
|  | 11976 | else | 
|  | 11977 | ac_have_decl=0 | 
|  | 11978 | fi | 
|  | 11979 |  | 
|  | 11980 | cat >>confdefs.h <<_ACEOF | 
|  | 11981 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 11982 | _ACEOF | 
|  | 11983 |  | 
|  | 11984 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11985 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 11986 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 11988 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11989 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11990 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11991 | else | 
|  | 11992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11993 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11994 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 11995 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11997 | /* end confdefs.h.  */ | 
|  | 11998 |  | 
|  | 11999 | #include <math.h> | 
|  | 12000 | #include <stdlib.h> | 
|  | 12001 | int main() { | 
|  | 12002 | /* return 0 if either negative zeros don't exist | 
|  | 12003 | on this platform or if negative zeros exist | 
|  | 12004 | and tanh(-0.) == -0. */ | 
|  | 12005 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 12006 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 12007 | else exit(1); | 
|  | 12008 | } | 
|  | 12009 |  | 
|  | 12010 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12012 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 12013 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12014 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12015 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12017 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12018 | fi | 
|  | 12019 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12020 | fi | 
|  | 12021 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 12023 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12024 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 12025 | then | 
|  | 12026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12027 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12028 |  | 
|  | 12029 | fi | 
|  | 12030 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12031 | if test "$ac_cv_func_log1p" = yes | 
|  | 12032 | then | 
|  | 12033 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 12034 | # -0.  See issue #9920. | 
|  | 12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 12036 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12037 | if test "${ac_cv_log1p_drops_zero_sign+set}" = set; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12038 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12039 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12040 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12041 | if test "$cross_compiling" = yes; then : | 
|  | 12042 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12043 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12045 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12046 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12047 | #include <math.h> | 
|  | 12048 | #include <stdlib.h> | 
|  | 12049 | int main() { | 
|  | 12050 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 12051 | distinguished. */ | 
|  | 12052 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 12053 | return 0; | 
|  | 12054 | else | 
|  | 12055 | return 1; | 
|  | 12056 | } | 
|  | 12057 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12058 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12059 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 12060 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12061 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12062 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 12063 | fi | 
|  | 12064 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12065 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12066 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12067 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12068 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12069 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 12071 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 12072 | fi | 
|  | 12073 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 12074 | then | 
|  | 12075 |  | 
|  | 12076 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 12077 |  | 
|  | 12078 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12079 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12080 | LIBS=$LIBS_SAVE | 
|  | 12081 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12082 | # For multiprocessing module, check that sem_open | 
|  | 12083 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 12084 | # the kernel module that provides POSIX semaphores | 
|  | 12085 | # isn't loaded by default, so an attempt to call | 
|  | 12086 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 12088 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12089 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12090 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12091 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12092 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12093 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12094 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12096 | /* end confdefs.h.  */ | 
|  | 12097 |  | 
|  | 12098 | #include <unistd.h> | 
|  | 12099 | #include <fcntl.h> | 
|  | 12100 | #include <stdio.h> | 
|  | 12101 | #include <semaphore.h> | 
|  | 12102 | #include <sys/stat.h> | 
|  | 12103 |  | 
|  | 12104 | int main(void) { | 
|  | 12105 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 12106 | if (a == SEM_FAILED) { | 
|  | 12107 | perror("sem_open"); | 
|  | 12108 | return 1; | 
|  | 12109 | } | 
|  | 12110 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12111 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12112 | return 0; | 
|  | 12113 | } | 
|  | 12114 |  | 
|  | 12115 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12116 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12117 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12118 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12119 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12120 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12122 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12123 | fi | 
|  | 12124 |  | 
|  | 12125 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12126 | fi | 
|  | 12127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 12129 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12130 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 12131 | then | 
|  | 12132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12134 |  | 
|  | 12135 | fi | 
|  | 12136 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12137 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 12139 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12140 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12142 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12143 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12144 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12145 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12147 | /* end confdefs.h.  */ | 
|  | 12148 |  | 
|  | 12149 | #include <unistd.h> | 
|  | 12150 | #include <fcntl.h> | 
|  | 12151 | #include <stdio.h> | 
|  | 12152 | #include <semaphore.h> | 
|  | 12153 | #include <sys/stat.h> | 
|  | 12154 |  | 
|  | 12155 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12156 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12157 | int count; | 
|  | 12158 | int res; | 
|  | 12159 | if(a==SEM_FAILED){ | 
|  | 12160 | perror("sem_open"); | 
|  | 12161 | return 1; | 
|  | 12162 |  | 
|  | 12163 | } | 
|  | 12164 | res = sem_getvalue(a, &count); | 
|  | 12165 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12166 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12167 | return res==-1 ? 1 : 0; | 
|  | 12168 | } | 
|  | 12169 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12170 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12171 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12172 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12173 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12174 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12175 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12177 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12178 | fi | 
|  | 12179 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12180 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12181 | fi | 
|  | 12182 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 12184 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12185 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 12186 | then | 
|  | 12187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12188 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12189 |  | 
|  | 12190 | fi | 
|  | 12191 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12192 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 12194 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12195 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12196 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12197 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 12198 | yes) | 
|  | 12199 | enable_big_digits=30 ;; | 
|  | 12200 | no) | 
|  | 12201 | enable_big_digits=15 ;; | 
|  | 12202 | 15|30) | 
|  | 12203 | ;; | 
|  | 12204 | *) | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 12205 | as_fn_error "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12206 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 12208 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12209 |  | 
|  | 12210 | cat >>confdefs.h <<_ACEOF | 
|  | 12211 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 12212 | _ACEOF | 
|  | 12213 |  | 
|  | 12214 |  | 
|  | 12215 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 12217 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12218 | fi | 
|  | 12219 |  | 
|  | 12220 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12221 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12222 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12223 | if test "x$ac_cv_header_wchar_h" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 |  | 
|  | 12225 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12226 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12227 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12228 | wchar_h="yes" | 
|  | 12229 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12230 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12231 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12232 |  | 
|  | 12233 | fi | 
|  | 12234 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12235 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12237 | # determine wchar_t size | 
|  | 12238 | if test "$wchar_h" = yes | 
|  | 12239 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12240 | # The cast to long int works around a bug in the HP C Compiler | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12241 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 12242 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 12243 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 12245 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12246 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12247 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12249 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 12250 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12253 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 12254 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 12255 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 12256 | { as_fn_set_status 77 | 
|  | 12257 | as_fn_error "cannot compute sizeof (wchar_t) | 
|  | 12258 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12259 | else | 
|  | 12260 | ac_cv_sizeof_wchar_t=0 | 
|  | 12261 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12262 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 12266 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12267 |  | 
|  | 12268 |  | 
|  | 12269 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12271 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12273 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12274 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12275 | fi | 
|  | 12276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 12278 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12279 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12281 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12282 |  | 
|  | 12283 | #include <tcl.h> | 
|  | 12284 | #if TCL_UTF_MAX != 6 | 
|  | 12285 | # error "NOT UCS4_TCL" | 
|  | 12286 | #endif | 
|  | 12287 | int | 
|  | 12288 | main () | 
|  | 12289 | { | 
|  | 12290 |  | 
|  | 12291 | ; | 
|  | 12292 | return 0; | 
|  | 12293 | } | 
|  | 12294 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12295 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12296 |  | 
|  | 12297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12298 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12299 |  | 
|  | 12300 | have_ucs4_tcl=yes | 
|  | 12301 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12302 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 12305 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12306 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12307 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12308 | if test "$wchar_h" = yes | 
|  | 12309 | then | 
|  | 12310 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 12312 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12313 | if test "${ac_cv_wchar_t_signed+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12315 | else | 
|  | 12316 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12317 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12318 | ac_cv_wchar_t_signed=yes | 
|  | 12319 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12321 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12322 |  | 
|  | 12323 | #include <wchar.h> | 
|  | 12324 | int main() | 
|  | 12325 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12326 | /* Success: exit code 0 */ | 
|  | 12327 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12328 | } | 
|  | 12329 |  | 
|  | 12330 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12331 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12332 | ac_cv_wchar_t_signed=yes | 
|  | 12333 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12334 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12335 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12336 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12337 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12338 | fi | 
|  | 12339 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12340 | fi | 
|  | 12341 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 12343 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12344 | fi | 
|  | 12345 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 | 
|  | 12347 | $as_echo_n "checking what type to use for str... " >&6; } | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12348 |  | 
|  | 12349 | # Check whether --with-wide-unicode was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12350 | if test "${with_wide_unicode+set}" = set; then : | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12351 | withval=$with_wide_unicode; | 
|  | 12352 | if test "$withval" != no | 
|  | 12353 | then unicode_size="4" | 
|  | 12354 | else unicode_size="2" | 
|  | 12355 | fi | 
|  | 12356 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12357 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12358 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12359 | case "$have_ucs4_tcl" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12360 | yes) unicode_size="4";; | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12361 | *)   unicode_size="2" ;; | 
|  | 12362 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12363 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12364 | fi | 
|  | 12365 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12366 |  | 
|  | 12367 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12368 | case "$unicode_size" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12369 | 4) | 
|  | 12370 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
|  | 12371 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12372 | ABIFLAGS="${ABIFLAGS}u" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12373 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12374 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12375 | ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12376 | esac | 
|  | 12377 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12378 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12379 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12380 | # wchar_t is only usable if it maps to an unsigned type | 
|  | 12381 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12382 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12383 | then | 
|  | 12384 | PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12386 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12387 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12388 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12389 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12390 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
|  | 12391 | then | 
|  | 12392 | PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12393 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12394 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12395 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
|  | 12396 | then | 
|  | 12397 | PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12398 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12399 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12400 | else | 
|  | 12401 | PY_UNICODE_TYPE="no type found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12402 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
|  | 12404 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12405 |  | 
|  | 12406 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 12408 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12409 | if test "${ac_cv_c_bigendian+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12410 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12411 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12412 | ac_cv_c_bigendian=unknown | 
|  | 12413 | # See if we're dealing with a universal compiler. | 
|  | 12414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12415 | /* end confdefs.h.  */ | 
|  | 12416 | #ifndef __APPLE_CC__ | 
|  | 12417 | not a universal capable compiler | 
|  | 12418 | #endif | 
|  | 12419 | typedef int dummy; | 
|  | 12420 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12421 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12422 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12423 |  | 
|  | 12424 | # Check for potential -arch flags.  It is not universal unless | 
|  | 12425 | # there are at least two -arch flags with different values. | 
|  | 12426 | ac_arch= | 
|  | 12427 | ac_prev= | 
|  | 12428 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 12429 | if test -n "$ac_prev"; then | 
|  | 12430 | case $ac_word in | 
|  | 12431 | i?86 | x86_64 | ppc | ppc64) | 
|  | 12432 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 12433 | ac_arch=$ac_word | 
|  | 12434 | else | 
|  | 12435 | ac_cv_c_bigendian=universal | 
|  | 12436 | break | 
|  | 12437 | fi | 
|  | 12438 | ;; | 
|  | 12439 | esac | 
|  | 12440 | ac_prev= | 
|  | 12441 | elif test "x$ac_word" = "x-arch"; then | 
|  | 12442 | ac_prev=arch | 
|  | 12443 | fi | 
|  | 12444 | done | 
|  | 12445 | fi | 
|  | 12446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12447 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12448 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 12449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12450 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12451 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12453 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12454 | int | 
|  | 12455 | main () | 
|  | 12456 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12457 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 12458 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 12459 | && LITTLE_ENDIAN) | 
|  | 12460 | bogus endian macros | 
|  | 12461 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12462 |  | 
|  | 12463 | ; | 
|  | 12464 | return 0; | 
|  | 12465 | } | 
|  | 12466 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12467 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12468 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12470 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12471 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12472 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12473 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | int | 
|  | 12475 | main () | 
|  | 12476 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12477 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12478 | not big endian | 
|  | 12479 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 |  | 
|  | 12481 | ; | 
|  | 12482 | return 0; | 
|  | 12483 | } | 
|  | 12484 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12485 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12486 | ac_cv_c_bigendian=yes | 
|  | 12487 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12488 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12489 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12491 | fi | 
|  | 12492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12493 | fi | 
|  | 12494 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12495 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 12496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12497 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12498 | #include <limits.h> | 
|  | 12499 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | int | 
|  | 12501 | main () | 
|  | 12502 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12503 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 12504 | bogus endian macros | 
|  | 12505 | #endif | 
|  | 12506 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | ; | 
|  | 12508 | return 0; | 
|  | 12509 | } | 
|  | 12510 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12511 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12512 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 12513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12514 | /* end confdefs.h.  */ | 
|  | 12515 | #include <limits.h> | 
|  | 12516 |  | 
|  | 12517 | int | 
|  | 12518 | main () | 
|  | 12519 | { | 
|  | 12520 | #ifndef _BIG_ENDIAN | 
|  | 12521 | not big endian | 
|  | 12522 | #endif | 
|  | 12523 |  | 
|  | 12524 | ; | 
|  | 12525 | return 0; | 
|  | 12526 | } | 
|  | 12527 | _ACEOF | 
|  | 12528 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12530 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12531 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12534 | fi | 
|  | 12535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12536 | fi | 
|  | 12537 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12538 | # Compile a test program. | 
|  | 12539 | if test "$cross_compiling" = yes; then : | 
|  | 12540 | # Try to guess by grepping values from an object file. | 
|  | 12541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12542 | /* end confdefs.h.  */ | 
|  | 12543 | short int ascii_mm[] = | 
|  | 12544 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 12545 | short int ascii_ii[] = | 
|  | 12546 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 12547 | int use_ascii (int i) { | 
|  | 12548 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 12549 | } | 
|  | 12550 | short int ebcdic_ii[] = | 
|  | 12551 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 12552 | short int ebcdic_mm[] = | 
|  | 12553 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 12554 | int use_ebcdic (int i) { | 
|  | 12555 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 12556 | } | 
|  | 12557 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12558 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12559 | int | 
|  | 12560 | main () | 
|  | 12561 | { | 
|  | 12562 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 12563 | ; | 
|  | 12564 | return 0; | 
|  | 12565 | } | 
|  | 12566 | _ACEOF | 
|  | 12567 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12568 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 12569 | ac_cv_c_bigendian=yes | 
|  | 12570 | fi | 
|  | 12571 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 12572 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 12573 | ac_cv_c_bigendian=no | 
|  | 12574 | else | 
|  | 12575 | # finding both strings is unlikely to happen, but who knows? | 
|  | 12576 | ac_cv_c_bigendian=unknown | 
|  | 12577 | fi | 
|  | 12578 | fi | 
|  | 12579 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12580 | 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] | 12581 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12583 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12584 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | int | 
|  | 12586 | main () | 
|  | 12587 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12589 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 12590 | union | 
|  | 12591 | { | 
|  | 12592 | long int l; | 
|  | 12593 | char c[sizeof (long int)]; | 
|  | 12594 | } u; | 
|  | 12595 | u.l = 1; | 
|  | 12596 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12597 |  | 
|  | 12598 | ; | 
|  | 12599 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12600 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12602 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12603 | ac_cv_c_bigendian=no | 
|  | 12604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12605 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12606 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12608 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12609 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12610 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12611 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12612 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 12614 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 12615 | case $ac_cv_c_bigendian in #( | 
|  | 12616 | yes) | 
|  | 12617 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 12618 | ;; #( | 
|  | 12619 | no) | 
|  | 12620 | ;; #( | 
|  | 12621 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12622 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12623 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12625 | ;; #( | 
|  | 12626 | *) | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 12627 | as_fn_error "unknown endianness | 
|  | 12628 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12629 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12630 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12631 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12632 | # ABI version string for Python extension modules.  This appears between the | 
|  | 12633 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 12634 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 12635 | # this order): | 
|  | 12636 | # | 
|  | 12637 | # * The Python implementation (always 'cpython-' for us) | 
|  | 12638 | # * The major and minor version numbers | 
|  | 12639 | # * --with-pydebug (adds a 'd') | 
|  | 12640 | # * --with-pymalloc (adds a 'm') | 
|  | 12641 | # * --with-wide-unicode (adds a 'u') | 
|  | 12642 | # | 
|  | 12643 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12644 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 12645 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12646 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 12648 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 12650 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 12652 | $as_echo_n "checking SOABI... " >&6; } | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12653 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 12655 | $as_echo "$SOABI" >&6; } | 
|  | 12656 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 12658 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 12659 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 12661 | $as_echo "$LDVERSION" >&6; } | 
|  | 12662 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12663 | # SO is the extension of shared libraries `(including the dot!) | 
|  | 12664 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
|  | 12666 | $as_echo_n "checking SO... " >&6; } | 
|  | 12667 | if test -z "$SO" | 
|  | 12668 | then | 
|  | 12669 | case $ac_sys_system in | 
|  | 12670 | hp*|HP*) | 
|  | 12671 | case `uname -m` in | 
|  | 12672 | ia64) SO=.so;; | 
|  | 12673 | *)    SO=.sl;; | 
|  | 12674 | esac | 
|  | 12675 | ;; | 
|  | 12676 | CYGWIN*)   SO=.dll;; | 
| Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12677 | Linux*|GNU*) | 
|  | 12678 | SO=.${SOABI}.so;; | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12679 | *)	   SO=.so;; | 
|  | 12680 | esac | 
|  | 12681 | else | 
|  | 12682 | # this might also be a termcap variable, see #610332 | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12683 | echo | 
|  | 12684 | echo '=====================================================================' | 
|  | 12685 | echo '+                                                                   +' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12686 | echo '+ WARNING: You have set SO in your environment.                     +' | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12687 | echo '+ Do you really mean to change the extension for shared libraries?  +' | 
|  | 12688 | echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
|  | 12689 | echo '+                                                                   +' | 
|  | 12690 | echo '=====================================================================' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12691 | sleep 10 | 
|  | 12692 | fi | 
|  | 12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
|  | 12694 | $as_echo "$SO" >&6; } | 
|  | 12695 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12696 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 12697 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 12699 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12700 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12701 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12702 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12704 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12705 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12708 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12709 |  | 
|  | 12710 | int main() | 
|  | 12711 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12712 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12713 | } | 
|  | 12714 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12715 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12716 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12717 | ac_cv_rshift_extends_sign=yes | 
|  | 12718 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12719 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12720 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12722 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12723 | fi | 
|  | 12724 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12725 | fi | 
|  | 12726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 12728 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12729 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12730 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12732 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12733 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12734 | fi | 
|  | 12735 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12736 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 12738 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12739 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12740 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12741 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12744 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12745 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | int | 
|  | 12747 | main () | 
|  | 12748 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12749 |  | 
|  | 12750 | FILE *f = fopen("/dev/null", "r"); | 
|  | 12751 | flockfile(f); | 
|  | 12752 | getc_unlocked(f); | 
|  | 12753 | funlockfile(f); | 
|  | 12754 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | ; | 
|  | 12756 | return 0; | 
|  | 12757 | } | 
|  | 12758 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12759 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12760 | ac_cv_have_getc_unlocked=yes | 
|  | 12761 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12762 | ac_cv_have_getc_unlocked=no | 
|  | 12763 | fi | 
|  | 12764 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12765 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12766 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 12769 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12770 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 12771 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12772 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12773 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12774 |  | 
|  | 12775 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12776 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12777 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12778 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 12779 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12780 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12781 | # On some systems we need to link readline to a termcap compatible | 
|  | 12782 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 12783 | # with setup.py. | 
|  | 12784 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 12786 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12787 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
|  | 12788 | if test -z "$py_libtermcap"; then | 
|  | 12789 | READLINE_LIBS="-lreadline" | 
|  | 12790 | else | 
|  | 12791 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 12792 | fi | 
|  | 12793 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12795 | /* end confdefs.h.  */ | 
|  | 12796 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12797 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12798 | Use char because int might match the return type of a GCC | 
|  | 12799 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12800 | #ifdef __cplusplus | 
|  | 12801 | extern "C" | 
|  | 12802 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12803 | char readline (); | 
|  | 12804 | int | 
|  | 12805 | main () | 
|  | 12806 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12807 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12808 | ; | 
|  | 12809 | return 0; | 
|  | 12810 | } | 
|  | 12811 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12812 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12813 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12814 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12815 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12816 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12817 | if test $py_cv_lib_readline = yes; then | 
|  | 12818 | break | 
|  | 12819 | fi | 
|  | 12820 | done | 
|  | 12821 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 12822 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12823 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 12825 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12826 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 12828 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12830 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12831 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12832 | fi | 
|  | 12833 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12834 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 12836 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12837 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12838 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12839 | else | 
|  | 12840 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12841 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12843 | /* end confdefs.h.  */ | 
|  | 12844 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12845 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12846 | Use char because int might match the return type of a GCC | 
|  | 12847 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12848 | #ifdef __cplusplus | 
|  | 12849 | extern "C" | 
|  | 12850 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12851 | char rl_callback_handler_install (); | 
|  | 12852 | int | 
|  | 12853 | main () | 
|  | 12854 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12855 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12856 | ; | 
|  | 12857 | return 0; | 
|  | 12858 | } | 
|  | 12859 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12860 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12861 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 12862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12863 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12864 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12865 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12866 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12867 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12868 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 12870 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12871 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12872 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12873 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12874 |  | 
|  | 12875 | fi | 
|  | 12876 |  | 
|  | 12877 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12878 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12880 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12881 | #include <readline/readline.h> | 
|  | 12882 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12883 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12884 | have_readline=yes | 
|  | 12885 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12886 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12887 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12888 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 12889 | rm -f conftest.err conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12890 | if test $have_readline = yes | 
|  | 12891 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12893 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12894 | #include <readline/readline.h> | 
|  | 12895 |  | 
|  | 12896 | _ACEOF | 
|  | 12897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12898 | $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] | 12899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12900 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12901 |  | 
|  | 12902 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12903 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12904 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12906 | /* end confdefs.h.  */ | 
|  | 12907 | #include <readline/readline.h> | 
|  | 12908 |  | 
|  | 12909 | _ACEOF | 
|  | 12910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12911 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12913 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12914 |  | 
|  | 12915 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12916 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12917 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12918 | fi | 
|  | 12919 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12920 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 12922 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12923 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12924 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12925 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12927 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12929 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12931 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12932 | Use char because int might match the return type of a GCC | 
|  | 12933 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | #ifdef __cplusplus | 
|  | 12935 | extern "C" | 
|  | 12936 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12938 | int | 
|  | 12939 | main () | 
|  | 12940 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12941 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | ; | 
|  | 12943 | return 0; | 
|  | 12944 | } | 
|  | 12945 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12946 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12948 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12949 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12950 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12951 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12952 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 12956 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12957 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12959 | $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] | 12960 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12961 | fi | 
|  | 12962 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12963 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12964 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 12966 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12967 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12968 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12969 | else | 
|  | 12970 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12971 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12973 | /* end confdefs.h.  */ | 
|  | 12974 |  | 
|  | 12975 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12976 | Use char because int might match the return type of a GCC | 
|  | 12977 | builtin and then its argument prototype would still apply.  */ | 
|  | 12978 | #ifdef __cplusplus | 
|  | 12979 | extern "C" | 
|  | 12980 | #endif | 
|  | 12981 | char rl_completion_display_matches_hook (); | 
|  | 12982 | int | 
|  | 12983 | main () | 
|  | 12984 | { | 
|  | 12985 | return rl_completion_display_matches_hook (); | 
|  | 12986 | ; | 
|  | 12987 | return 0; | 
|  | 12988 | } | 
|  | 12989 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12990 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12991 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 12992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12993 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12994 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12995 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12996 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12997 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12998 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 13000 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13001 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13002 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13003 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13004 |  | 
|  | 13005 | fi | 
|  | 13006 |  | 
|  | 13007 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13008 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 13010 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13011 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13013 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13015 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13017 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13019 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13020 | Use char because int might match the return type of a GCC | 
|  | 13021 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | #ifdef __cplusplus | 
|  | 13023 | extern "C" | 
|  | 13024 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 | int | 
|  | 13027 | main () | 
|  | 13028 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13029 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | ; | 
|  | 13031 | return 0; | 
|  | 13032 | } | 
|  | 13033 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13034 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13036 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13037 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13038 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13039 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13040 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13042 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 13044 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13045 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13046 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13047 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13048 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13049 | fi | 
|  | 13050 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13051 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13052 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13054 | /* end confdefs.h.  */ | 
|  | 13055 | #include <readline/readline.h> | 
|  | 13056 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13057 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13058 | have_readline=yes | 
|  | 13059 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13060 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13061 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13062 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 13063 | rm -f conftest.err conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13064 | if test $have_readline = yes | 
|  | 13065 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13067 | /* end confdefs.h.  */ | 
|  | 13068 | #include <readline/readline.h> | 
|  | 13069 |  | 
|  | 13070 | _ACEOF | 
|  | 13071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13072 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13074 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13075 |  | 
|  | 13076 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13077 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13078 |  | 
|  | 13079 | fi | 
|  | 13080 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13081 | # End of readline checks: restore LIBS | 
|  | 13082 | LIBS=$LIBS_no_readline | 
|  | 13083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 13085 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13086 | if test "${ac_cv_broken_nice+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13088 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13091 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13092 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13094 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13095 |  | 
|  | 13096 | int main() | 
|  | 13097 | { | 
|  | 13098 | int val1 = nice(1); | 
|  | 13099 | if (val1 != -1 && val1 == nice(2)) | 
|  | 13100 | exit(0); | 
|  | 13101 | exit(1); | 
|  | 13102 | } | 
|  | 13103 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13105 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13106 | ac_cv_broken_nice=yes | 
|  | 13107 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13108 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13109 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13111 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13112 | fi | 
|  | 13113 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13114 | fi | 
|  | 13115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 13117 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13118 | if test "$ac_cv_broken_nice" = yes | 
|  | 13119 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13121 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13122 |  | 
|  | 13123 | fi | 
|  | 13124 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 13126 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13127 | if test "${ac_cv_broken_poll+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13128 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13129 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13130 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13131 | ac_cv_broken_poll=no | 
|  | 13132 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13134 | /* end confdefs.h.  */ | 
|  | 13135 |  | 
|  | 13136 | #include <poll.h> | 
|  | 13137 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13138 | int main() | 
|  | 13139 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13140 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13141 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13142 |  | 
|  | 13143 | close (42); | 
|  | 13144 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13145 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13146 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13147 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13148 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13149 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13150 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13151 | return 1; | 
|  | 13152 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13153 |  | 
|  | 13154 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13155 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13156 | ac_cv_broken_poll=yes | 
|  | 13157 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13158 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13159 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13161 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13162 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13163 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13164 | fi | 
|  | 13165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 13167 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13168 | if test "$ac_cv_broken_poll" = yes | 
|  | 13169 | then | 
|  | 13170 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13171 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13172 |  | 
|  | 13173 | fi | 
|  | 13174 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13175 | # 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] | 13176 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 13177 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13178 | 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] | 13179 | #include <$ac_cv_struct_tm> | 
|  | 13180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13181 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13182 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13183 |  | 
|  | 13184 | cat >>confdefs.h <<_ACEOF | 
|  | 13185 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 13186 | _ACEOF | 
|  | 13187 |  | 
|  | 13188 |  | 
|  | 13189 | fi | 
|  | 13190 |  | 
|  | 13191 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 13192 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13193 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13194 |  | 
|  | 13195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13196 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 13197 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13198 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13199 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13200 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13202 | fi | 
|  | 13203 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13204 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13205 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13206 | _ACEOF | 
|  | 13207 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 13209 | $as_echo_n "checking for tzname... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13210 | if test "${ac_cv_var_tzname+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13211 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13212 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13214 | /* end confdefs.h.  */ | 
|  | 13215 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13216 | #if !HAVE_DECL_TZNAME | 
|  | 13217 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13218 | #endif | 
|  | 13219 |  | 
|  | 13220 | int | 
|  | 13221 | main () | 
|  | 13222 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13223 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13224 | ; | 
|  | 13225 | return 0; | 
|  | 13226 | } | 
|  | 13227 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13228 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13229 | ac_cv_var_tzname=yes | 
|  | 13230 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13231 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13232 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13233 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13234 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13235 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 13237 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13238 | if test $ac_cv_var_tzname = yes; then | 
|  | 13239 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13240 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13241 |  | 
|  | 13242 | fi | 
|  | 13243 | fi | 
|  | 13244 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13245 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13246 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 13248 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13249 | if test "${ac_cv_working_tzset+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13250 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13251 | else | 
|  | 13252 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13253 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13254 | ac_cv_working_tzset=no | 
|  | 13255 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13257 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13258 |  | 
|  | 13259 | #include <stdlib.h> | 
|  | 13260 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13261 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13262 |  | 
|  | 13263 | #if HAVE_TZNAME | 
|  | 13264 | extern char *tzname[]; | 
|  | 13265 | #endif | 
|  | 13266 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13267 | int main() | 
|  | 13268 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13269 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 13270 | do 'something' with localtime, but it works as documented | 
|  | 13271 | 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] | 13272 | This includes making sure that tzname is set properly if | 
|  | 13273 | tm->tm_zone does not exist since it is the alternative way | 
|  | 13274 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13275 |  | 
|  | 13276 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13277 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13278 | */ | 
|  | 13279 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13280 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13281 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 13282 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13283 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13284 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13285 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 13286 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13287 | #if HAVE_TZNAME | 
|  | 13288 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 13289 | if (strcmp(tzname[0], "UTC") || | 
|  | 13290 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 13291 | exit(1); | 
|  | 13292 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13293 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13294 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13295 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13296 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13297 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13298 | #if HAVE_TZNAME | 
|  | 13299 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 13300 | exit(1); | 
|  | 13301 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13302 |  | 
|  | 13303 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 13304 | tzset(); | 
|  | 13305 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 13306 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13307 | #if HAVE_TZNAME | 
|  | 13308 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 13309 | exit(1); | 
|  | 13310 | #endif | 
|  | 13311 |  | 
|  | 13312 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13313 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 13314 | exit(1); | 
|  | 13315 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 13316 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13317 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13318 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13319 | exit(0); | 
|  | 13320 | } | 
|  | 13321 |  | 
|  | 13322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13323 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13324 | ac_cv_working_tzset=yes | 
|  | 13325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13326 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13329 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13330 | fi | 
|  | 13331 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13332 | fi | 
|  | 13333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 13335 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13336 | if test "$ac_cv_working_tzset" = yes | 
|  | 13337 | then | 
|  | 13338 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13339 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13340 |  | 
|  | 13341 | fi | 
|  | 13342 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13343 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 13345 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13346 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13347 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13348 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13350 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13351 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13352 | int | 
|  | 13353 | main () | 
|  | 13354 | { | 
|  | 13355 |  | 
|  | 13356 | struct stat st; | 
|  | 13357 | st.st_mtim.tv_nsec = 1; | 
|  | 13358 |  | 
|  | 13359 | ; | 
|  | 13360 | return 0; | 
|  | 13361 | } | 
|  | 13362 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13363 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13364 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13366 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13367 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13369 | fi | 
|  | 13370 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 13372 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13373 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 13374 | then | 
|  | 13375 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13376 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13377 |  | 
|  | 13378 | fi | 
|  | 13379 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13380 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 13382 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13383 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13384 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13385 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13387 | /* end confdefs.h.  */ | 
|  | 13388 | #include <sys/stat.h> | 
|  | 13389 | int | 
|  | 13390 | main () | 
|  | 13391 | { | 
|  | 13392 |  | 
|  | 13393 | struct stat st; | 
|  | 13394 | st.st_mtimespec.tv_nsec = 1; | 
|  | 13395 |  | 
|  | 13396 | ; | 
|  | 13397 | return 0; | 
|  | 13398 | } | 
|  | 13399 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13401 | ac_cv_stat_tv_nsec2=yes | 
|  | 13402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13403 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13404 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13406 | fi | 
|  | 13407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 13409 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13410 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 13411 | then | 
|  | 13412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13414 |  | 
|  | 13415 | fi | 
|  | 13416 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13417 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 13419 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13420 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13421 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13422 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13424 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13425 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | int | 
|  | 13427 | main () | 
|  | 13428 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13429 |  | 
|  | 13430 | int rtn; | 
|  | 13431 | rtn = mvwdelch(0,0,0); | 
|  | 13432 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | ; | 
|  | 13434 | return 0; | 
|  | 13435 | } | 
|  | 13436 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13438 | ac_cv_mvwdelch_is_expression=yes | 
|  | 13439 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13440 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13441 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13443 | fi | 
|  | 13444 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 13446 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13447 |  | 
|  | 13448 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 13449 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13451 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13452 |  | 
|  | 13453 | fi | 
|  | 13454 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 13456 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13457 | if test "${ac_cv_window_has_flags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13458 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13459 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13461 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13462 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | int | 
|  | 13464 | main () | 
|  | 13465 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13466 |  | 
|  | 13467 | WINDOW *w; | 
|  | 13468 | w->_flags = 0; | 
|  | 13469 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | ; | 
|  | 13471 | return 0; | 
|  | 13472 | } | 
|  | 13473 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13474 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13475 | ac_cv_window_has_flags=yes | 
|  | 13476 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13477 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13478 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13480 | fi | 
|  | 13481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 13483 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13484 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13485 |  | 
|  | 13486 | if test "$ac_cv_window_has_flags" = yes | 
|  | 13487 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13489 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13490 |  | 
|  | 13491 | fi | 
|  | 13492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 13494 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 13495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13496 | /* end confdefs.h.  */ | 
|  | 13497 | #include <curses.h> | 
|  | 13498 | int | 
|  | 13499 | main () | 
|  | 13500 | { | 
|  | 13501 | void *x=is_term_resized | 
|  | 13502 | ; | 
|  | 13503 | return 0; | 
|  | 13504 | } | 
|  | 13505 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13506 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13508 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13509 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13511 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13514 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13515 |  | 
|  | 13516 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13518 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 13520 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 13521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13522 | /* end confdefs.h.  */ | 
|  | 13523 | #include <curses.h> | 
|  | 13524 | int | 
|  | 13525 | main () | 
|  | 13526 | { | 
|  | 13527 | void *x=resize_term | 
|  | 13528 | ; | 
|  | 13529 | return 0; | 
|  | 13530 | } | 
|  | 13531 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13532 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13534 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13535 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13537 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13538 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13540 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13541 |  | 
|  | 13542 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 13546 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 13547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13548 | /* end confdefs.h.  */ | 
|  | 13549 | #include <curses.h> | 
|  | 13550 | int | 
|  | 13551 | main () | 
|  | 13552 | { | 
|  | 13553 | void *x=resizeterm | 
|  | 13554 | ; | 
|  | 13555 | return 0; | 
|  | 13556 | } | 
|  | 13557 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13558 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13560 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13561 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13563 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13564 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13566 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13567 |  | 
|  | 13568 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13570 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 13572 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13573 |  | 
|  | 13574 | if test -r /dev/ptmx | 
|  | 13575 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13577 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13578 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13579 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13580 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13581 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13583 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13584 | fi | 
|  | 13585 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 13587 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13588 |  | 
|  | 13589 | if test -r /dev/ptc | 
|  | 13590 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13592 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13594 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13595 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13596 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13598 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13599 | fi | 
|  | 13600 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13601 | if test "$have_long_long" = yes | 
|  | 13602 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
|  | 13604 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13605 | if test "${ac_cv_have_long_long_format+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13606 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13608 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13609 | ac_cv_have_long_long_format=no | 
|  | 13610 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13612 | /* end confdefs.h.  */ | 
|  | 13613 |  | 
|  | 13614 | #include <stdio.h> | 
|  | 13615 | #include <stddef.h> | 
|  | 13616 | #include <string.h> | 
|  | 13617 |  | 
|  | 13618 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13619 | #include <sys/types.h> | 
|  | 13620 | #endif | 
|  | 13621 |  | 
|  | 13622 | int main() | 
|  | 13623 | { | 
|  | 13624 | char buffer[256]; | 
|  | 13625 |  | 
|  | 13626 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 13627 | return 1; | 
|  | 13628 | if (strcmp(buffer, "123")) | 
|  | 13629 | return 1; | 
|  | 13630 |  | 
|  | 13631 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 13632 | return 1; | 
|  | 13633 | if (strcmp(buffer, "-123")) | 
|  | 13634 | return 1; | 
|  | 13635 |  | 
|  | 13636 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 13637 | return 1; | 
|  | 13638 | if (strcmp(buffer, "123")) | 
|  | 13639 | return 1; | 
|  | 13640 |  | 
|  | 13641 | return 0; | 
|  | 13642 | } | 
|  | 13643 |  | 
|  | 13644 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13645 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13646 | ac_cv_have_long_long_format=yes | 
|  | 13647 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13648 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13649 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13651 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13652 | fi | 
|  | 13653 |  | 
|  | 13654 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13655 | fi | 
|  | 13656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
|  | 13658 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13659 | fi | 
|  | 13660 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13661 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13662 | then | 
|  | 13663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13664 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13665 |  | 
|  | 13666 | fi | 
|  | 13667 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13668 | if test $ac_sys_system = Darwin | 
|  | 13669 | then | 
|  | 13670 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 13671 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13672 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 13674 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13675 | if test "${ac_cv_have_size_t_format+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13676 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13679 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 13680 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13681 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13683 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13684 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13685 | #include <stdio.h> | 
|  | 13686 | #include <stddef.h> | 
|  | 13687 | #include <string.h> | 
|  | 13688 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13689 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13690 | #include <sys/types.h> | 
|  | 13691 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13692 |  | 
|  | 13693 | #ifdef HAVE_SSIZE_T | 
|  | 13694 | typedef ssize_t Py_ssize_t; | 
|  | 13695 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 13696 | typedef long Py_ssize_t; | 
|  | 13697 | #else | 
|  | 13698 | typedef int Py_ssize_t; | 
|  | 13699 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13700 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13701 | int main() | 
|  | 13702 | { | 
|  | 13703 | char buffer[256]; | 
|  | 13704 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13705 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 13706 | return 1; | 
|  | 13707 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13708 | if (strcmp(buffer, "123")) | 
|  | 13709 | return 1; | 
|  | 13710 |  | 
|  | 13711 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 13712 | return 1; | 
|  | 13713 |  | 
|  | 13714 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13715 | return 1; | 
|  | 13716 |  | 
|  | 13717 | return 0; | 
|  | 13718 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13719 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13720 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13721 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13722 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13723 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13724 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13725 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13727 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13728 | fi | 
|  | 13729 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13730 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 13732 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13733 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13734 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13735 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13736 |  | 
|  | 13737 | fi | 
|  | 13738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13739 | 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] | 13740 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13741 | #include <sys/types.h> | 
|  | 13742 | #endif | 
|  | 13743 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 13744 | #include <sys/socket.h> | 
|  | 13745 | #endif | 
|  | 13746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13748 | if test "x$ac_cv_type_socklen_t" = x""yes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13749 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13753 |  | 
|  | 13754 | fi | 
|  | 13755 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13756 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 13758 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13759 | if test "${ac_cv_broken_mbstowcs+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13761 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13762 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13763 | ac_cv_broken_mbstowcs=no | 
|  | 13764 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13766 | /* end confdefs.h.  */ | 
|  | 13767 |  | 
|  | 13768 | #include<stdlib.h> | 
|  | 13769 | int main() { | 
|  | 13770 | size_t len = -1; | 
|  | 13771 | const char *str = "text"; | 
|  | 13772 | len = mbstowcs(NULL, str, 0); | 
|  | 13773 | return (len != 4); | 
|  | 13774 | } | 
|  | 13775 |  | 
|  | 13776 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13777 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13778 | ac_cv_broken_mbstowcs=no | 
|  | 13779 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13781 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13782 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13783 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13784 | fi | 
|  | 13785 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13786 | fi | 
|  | 13787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 13789 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13790 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 13791 | then | 
|  | 13792 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13793 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13794 |  | 
|  | 13795 | fi | 
|  | 13796 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 13798 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13799 | if test "${ac_cv_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13800 | $as_echo_n "(cached) " >&6 | 
|  | 13801 | else | 
|  | 13802 | if test "$cross_compiling" = yes; then : | 
|  | 13803 | ac_cv_computed_gotos=no | 
|  | 13804 | else | 
|  | 13805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13806 | /* end confdefs.h.  */ | 
|  | 13807 |  | 
|  | 13808 | int main(int argc, char **argv) | 
|  | 13809 | { | 
|  | 13810 | static void *targets[1] = { &&LABEL1 }; | 
|  | 13811 | goto LABEL2; | 
|  | 13812 | LABEL1: | 
|  | 13813 | return 0; | 
|  | 13814 | LABEL2: | 
|  | 13815 | goto *targets[0]; | 
|  | 13816 | return 1; | 
|  | 13817 | } | 
|  | 13818 |  | 
|  | 13819 | _ACEOF | 
|  | 13820 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 13821 | ac_cv_computed_gotos=yes | 
|  | 13822 | else | 
|  | 13823 | ac_cv_computed_gotos=no | 
|  | 13824 | fi | 
|  | 13825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13826 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 13827 | fi | 
|  | 13828 |  | 
|  | 13829 | fi | 
|  | 13830 |  | 
|  | 13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 13832 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 13833 | if test "$ac_cv_computed_gotos" = yes | 
|  | 13834 | then | 
|  | 13835 |  | 
|  | 13836 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 13837 |  | 
|  | 13838 | fi | 
|  | 13839 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13840 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 13842 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13843 |  | 
|  | 13844 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13845 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13846 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13847 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13848 | then | 
|  | 13849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13850 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13851 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13853 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13854 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13855 | if test "$withval" = no | 
|  | 13856 | then | 
|  | 13857 |  | 
|  | 13858 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 13859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13861 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13862 | fi | 
|  | 13863 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13864 | else | 
|  | 13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 13866 | $as_echo "no value specified" >&6; } | 
|  | 13867 | fi | 
|  | 13868 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13869 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 13870 | case $ac_sys_system in | 
|  | 13871 | AIX*) | 
|  | 13872 |  | 
|  | 13873 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 13874 | ;; | 
|  | 13875 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13876 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13877 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 13878 |  | 
|  | 13879 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13880 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 13881 | do | 
|  | 13882 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 13883 | done | 
|  | 13884 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13885 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13886 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 13888 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13889 | for dir in $SRCDIRS; do | 
|  | 13890 | if test ! -d $dir; then | 
|  | 13891 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13892 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13893 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 13895 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13896 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13897 | # generate output files | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13898 | 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] | 13899 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 13900 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 13901 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13903 | # This file is a shell script that caches the results of configure | 
|  | 13904 | # 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] | 13905 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 13906 | # It is not useful on other systems.  If it contains results you don't | 
|  | 13907 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13908 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13909 | # config.status only pays attention to the cache file if you give it | 
|  | 13910 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13911 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13912 | # `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] | 13913 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 13914 | # following values. | 
|  | 13915 |  | 
|  | 13916 | _ACEOF | 
|  | 13917 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13918 | # The following way of writing the cache mishandles newlines in values, | 
|  | 13919 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13920 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13921 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 13922 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13923 | ( | 
|  | 13924 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 13925 | eval ac_val=\$$ac_var | 
|  | 13926 | case $ac_val in #( | 
|  | 13927 | *${as_nl}*) | 
|  | 13928 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13929 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 13930 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13931 | esac | 
|  | 13932 | case $ac_var in #( | 
|  | 13933 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13934 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 13935 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13936 | esac ;; | 
|  | 13937 | esac | 
|  | 13938 | done | 
|  | 13939 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13941 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 13942 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13943 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 13944 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13946 | "s/'/'\\\\''/g; | 
|  | 13947 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13948 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | *) | 
|  | 13950 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13951 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13952 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13953 | esac | | 
|  | 13954 | sort | 
|  | 13955 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13957 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13959 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13960 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 13961 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13962 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 13963 | :end' >>confcache | 
|  | 13964 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 13965 | if test -w "$cache_file"; then | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13966 | test "x$cache_file" != "x/dev/null" && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 13968 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13969 | cat confcache >$cache_file | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13970 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 13972 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13973 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13974 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13975 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13976 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13977 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 13978 | # Let make expand exec_prefix. | 
|  | 13979 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13980 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13981 | DEFS=-DHAVE_CONFIG_H | 
|  | 13982 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13983 | ac_libobjs= | 
|  | 13984 | ac_ltlibobjs= | 
|  | 13985 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 13986 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13987 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13988 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13989 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 13990 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13991 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 13992 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13993 | done | 
|  | 13994 | LIBOBJS=$ac_libobjs | 
|  | 13995 |  | 
|  | 13996 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 13997 |  | 
|  | 13998 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14000 |  | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14001 | : ${CONFIG_STATUS=./config.status} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14002 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | ac_clean_files_save=$ac_clean_files | 
|  | 14004 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 14006 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 14007 | as_write_fail=0 | 
|  | 14008 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14009 | #! $SHELL | 
|  | 14010 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14011 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14012 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14014 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14016 | ac_cs_recheck=false | 
|  | 14017 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14019 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 14020 | export SHELL | 
|  | 14021 | _ASEOF | 
|  | 14022 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 14023 | ## -------------------- ## | 
|  | 14024 | ## M4sh Initialization. ## | 
|  | 14025 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14026 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14027 | # Be more Bourne compatible | 
|  | 14028 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14029 | 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] | 14030 | emulate sh | 
|  | 14031 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14032 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14033 | # is contrary to our usage.  Disable this feature. | 
|  | 14034 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14035 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14036 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14037 | case `(set -o) 2>/dev/null` in #( | 
|  | 14038 | *posix*) : | 
|  | 14039 | set -o posix ;; #( | 
|  | 14040 | *) : | 
|  | 14041 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14042 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14043 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14044 |  | 
|  | 14045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14046 | as_nl=' | 
|  | 14047 | ' | 
|  | 14048 | export as_nl | 
|  | 14049 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 14050 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 14051 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 14052 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 14053 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 14054 | # but without wasting forks for bash or zsh. | 
|  | 14055 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 14056 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 14057 | as_echo='print -r --' | 
|  | 14058 | as_echo_n='print -rn --' | 
|  | 14059 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 14060 | as_echo='printf %s\n' | 
|  | 14061 | as_echo_n='printf %s' | 
|  | 14062 | else | 
|  | 14063 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 14064 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 14065 | as_echo_n='/usr/ucb/echo -n' | 
|  | 14066 | else | 
|  | 14067 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 14068 | as_echo_n_body='eval | 
|  | 14069 | arg=$1; | 
|  | 14070 | case $arg in #( | 
|  | 14071 | *"$as_nl"*) | 
|  | 14072 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 14073 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 14074 | esac; | 
|  | 14075 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 14076 | ' | 
|  | 14077 | export as_echo_n_body | 
|  | 14078 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 14079 | fi | 
|  | 14080 | export as_echo_body | 
|  | 14081 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 14082 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14083 |  | 
|  | 14084 | # The user is always right. | 
|  | 14085 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 | PATH_SEPARATOR=: | 
|  | 14087 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 14088 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 14089 | PATH_SEPARATOR=';' | 
|  | 14090 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14091 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14093 |  | 
|  | 14094 | # IFS | 
|  | 14095 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 14096 | # there to prevent editors from complaining about space-tab. | 
|  | 14097 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 14098 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14099 | IFS=" ""	$as_nl" | 
|  | 14100 |  | 
|  | 14101 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14102 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14103 | *[\\/]* ) as_myself=$0 ;; | 
|  | 14104 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | for as_dir in $PATH | 
|  | 14106 | do | 
|  | 14107 | IFS=$as_save_IFS | 
|  | 14108 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14109 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 14110 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14111 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14112 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14113 | ;; | 
|  | 14114 | esac | 
|  | 14115 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 14116 | # in which case we are not to be found in the path. | 
|  | 14117 | if test "x$as_myself" = x; then | 
|  | 14118 | as_myself=$0 | 
|  | 14119 | fi | 
|  | 14120 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14121 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 14122 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14123 | fi | 
|  | 14124 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14125 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 14126 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 14127 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 14128 | # trigger a bug in pdksh 5.2.14. | 
|  | 14129 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 14130 | do eval test x\${$as_var+set} = xset \ | 
|  | 14131 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14132 | done | 
|  | 14133 | PS1='$ ' | 
|  | 14134 | PS2='> ' | 
|  | 14135 | PS4='+ ' | 
|  | 14136 |  | 
|  | 14137 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14138 | LC_ALL=C | 
|  | 14139 | export LC_ALL | 
|  | 14140 | LANGUAGE=C | 
|  | 14141 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14142 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14143 | # CDPATH. | 
|  | 14144 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 14145 |  | 
|  | 14146 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14147 | # as_fn_error ERROR [LINENO LOG_FD] | 
|  | 14148 | # --------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14149 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 14150 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14151 | # script with status $?, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14152 | as_fn_error () | 
|  | 14153 | { | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14154 | as_status=$?; test $as_status -eq 0 && as_status=1 | 
|  | 14155 | if test "$3"; then | 
|  | 14156 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 14157 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14158 | fi | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14159 | $as_echo "$as_me: error: $1" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14160 | as_fn_exit $as_status | 
|  | 14161 | } # as_fn_error | 
|  | 14162 |  | 
|  | 14163 |  | 
|  | 14164 | # as_fn_set_status STATUS | 
|  | 14165 | # ----------------------- | 
|  | 14166 | # Set $? to STATUS, without forking. | 
|  | 14167 | as_fn_set_status () | 
|  | 14168 | { | 
|  | 14169 | return $1 | 
|  | 14170 | } # as_fn_set_status | 
|  | 14171 |  | 
|  | 14172 | # as_fn_exit STATUS | 
|  | 14173 | # ----------------- | 
|  | 14174 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 14175 | as_fn_exit () | 
|  | 14176 | { | 
|  | 14177 | set +e | 
|  | 14178 | as_fn_set_status $1 | 
|  | 14179 | exit $1 | 
|  | 14180 | } # as_fn_exit | 
|  | 14181 |  | 
|  | 14182 | # as_fn_unset VAR | 
|  | 14183 | # --------------- | 
|  | 14184 | # Portably unset VAR. | 
|  | 14185 | as_fn_unset () | 
|  | 14186 | { | 
|  | 14187 | { eval $1=; unset $1;} | 
|  | 14188 | } | 
|  | 14189 | as_unset=as_fn_unset | 
|  | 14190 | # as_fn_append VAR VALUE | 
|  | 14191 | # ---------------------- | 
|  | 14192 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 14193 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 14194 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 14195 | # implementations. | 
|  | 14196 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 14197 | eval 'as_fn_append () | 
|  | 14198 | { | 
|  | 14199 | eval $1+=\$2 | 
|  | 14200 | }' | 
|  | 14201 | else | 
|  | 14202 | as_fn_append () | 
|  | 14203 | { | 
|  | 14204 | eval $1=\$$1\$2 | 
|  | 14205 | } | 
|  | 14206 | fi # as_fn_append | 
|  | 14207 |  | 
|  | 14208 | # as_fn_arith ARG... | 
|  | 14209 | # ------------------ | 
|  | 14210 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 14211 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 14212 | # must be portable across $(()) and expr. | 
|  | 14213 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 14214 | eval 'as_fn_arith () | 
|  | 14215 | { | 
|  | 14216 | as_val=$(( $* )) | 
|  | 14217 | }' | 
|  | 14218 | else | 
|  | 14219 | as_fn_arith () | 
|  | 14220 | { | 
|  | 14221 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 14222 | } | 
|  | 14223 | fi # as_fn_arith | 
|  | 14224 |  | 
|  | 14225 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14226 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 14227 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 14228 | as_expr=expr | 
|  | 14229 | else | 
|  | 14230 | as_expr=false | 
|  | 14231 | fi | 
|  | 14232 |  | 
|  | 14233 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 14234 | as_basename=basename | 
|  | 14235 | else | 
|  | 14236 | as_basename=false | 
|  | 14237 | fi | 
|  | 14238 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14239 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 14240 | as_dirname=dirname | 
|  | 14241 | else | 
|  | 14242 | as_dirname=false | 
|  | 14243 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14245 | as_me=`$as_basename -- "$0" || | 
|  | 14246 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 14247 | X"$0" : 'X\(//\)$' \| \ | 
|  | 14248 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14249 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14250 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 14251 | s//\1/ | 
|  | 14252 | q | 
|  | 14253 | } | 
|  | 14254 | /^X\/\(\/\/\)$/{ | 
|  | 14255 | s//\1/ | 
|  | 14256 | q | 
|  | 14257 | } | 
|  | 14258 | /^X\/\(\/\).*/{ | 
|  | 14259 | s//\1/ | 
|  | 14260 | q | 
|  | 14261 | } | 
|  | 14262 | s/.*/./; q'` | 
|  | 14263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14264 | # Avoid depending upon Character Ranges. | 
|  | 14265 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 14266 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 14267 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 14268 | as_cr_digits='0123456789' | 
|  | 14269 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14270 |  | 
|  | 14271 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14272 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14273 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14274 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14275 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14276 | xy)  ECHO_C='\c';; | 
|  | 14277 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 14278 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14279 | esac;; | 
|  | 14280 | *) | 
|  | 14281 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14282 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14283 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14285 | if test -d conf$$.dir; then | 
|  | 14286 | rm -f conf$$.dir/conf$$.file | 
|  | 14287 | else | 
|  | 14288 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14289 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14290 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14291 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 14292 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 14293 | as_ln_s='ln -s' | 
|  | 14294 | # ... but there are two gotchas: | 
|  | 14295 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 14296 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 14297 | # In both cases, we have to default to `cp -p'. | 
|  | 14298 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 14299 | as_ln_s='cp -p' | 
|  | 14300 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 14301 | as_ln_s=ln | 
|  | 14302 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14303 | as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14304 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | else | 
|  | 14306 | as_ln_s='cp -p' | 
|  | 14307 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14308 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 14309 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14311 |  | 
|  | 14312 | # as_fn_mkdir_p | 
|  | 14313 | # ------------- | 
|  | 14314 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 14315 | as_fn_mkdir_p () | 
|  | 14316 | { | 
|  | 14317 |  | 
|  | 14318 | case $as_dir in #( | 
|  | 14319 | -*) as_dir=./$as_dir;; | 
|  | 14320 | esac | 
|  | 14321 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 14322 | as_dirs= | 
|  | 14323 | while :; do | 
|  | 14324 | case $as_dir in #( | 
|  | 14325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 14326 | *) as_qdir=$as_dir;; | 
|  | 14327 | esac | 
|  | 14328 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 14329 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 14330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 14331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 14332 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 14333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 14334 | $as_echo X"$as_dir" | | 
|  | 14335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 14336 | s//\1/ | 
|  | 14337 | q | 
|  | 14338 | } | 
|  | 14339 | /^X\(\/\/\)[^/].*/{ | 
|  | 14340 | s//\1/ | 
|  | 14341 | q | 
|  | 14342 | } | 
|  | 14343 | /^X\(\/\/\)$/{ | 
|  | 14344 | s//\1/ | 
|  | 14345 | q | 
|  | 14346 | } | 
|  | 14347 | /^X\(\/\).*/{ | 
|  | 14348 | s//\1/ | 
|  | 14349 | q | 
|  | 14350 | } | 
|  | 14351 | s/.*/./; q'` | 
|  | 14352 | test -d "$as_dir" && break | 
|  | 14353 | done | 
|  | 14354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14355 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14356 |  | 
|  | 14357 |  | 
|  | 14358 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14359 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14360 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14361 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14362 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14363 | as_mkdir_p=false | 
|  | 14364 | fi | 
|  | 14365 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14366 | if test -x / >/dev/null 2>&1; then | 
|  | 14367 | as_test_x='test -x' | 
|  | 14368 | else | 
|  | 14369 | if ls -dL / >/dev/null 2>&1; then | 
|  | 14370 | as_ls_L_option=L | 
|  | 14371 | else | 
|  | 14372 | as_ls_L_option= | 
|  | 14373 | fi | 
|  | 14374 | as_test_x=' | 
|  | 14375 | eval sh -c '\'' | 
|  | 14376 | if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14377 | test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14378 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14379 | case $1 in #( | 
|  | 14380 | -*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14381 | esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14382 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14383 | ???[sx]*):;;*)false;;esac;fi | 
|  | 14384 | '\'' sh | 
|  | 14385 | ' | 
|  | 14386 | fi | 
|  | 14387 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14388 |  | 
|  | 14389 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14390 | 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] | 14391 |  | 
|  | 14392 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14393 | 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] | 14394 |  | 
|  | 14395 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14397 | ## ----------------------------------- ## | 
|  | 14398 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 14399 | ## ----------------------------------- ## | 
|  | 14400 | _ASEOF | 
|  | 14401 | 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] | 14402 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14404 | # 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] | 14405 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14406 | # values after options handling. | 
|  | 14407 | ac_log=" | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 14408 | This file was extended by python $as_me 3.3, which was | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14409 | generated by GNU Autoconf 2.65.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 |  | 
|  | 14411 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 14412 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 14413 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 14414 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 14415 | $ $0 $@ | 
|  | 14416 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14417 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 14418 | " | 
|  | 14419 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | _ACEOF | 
|  | 14421 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14422 | case $ac_config_files in *" | 
|  | 14423 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 14424 | esac | 
|  | 14425 |  | 
|  | 14426 | case $ac_config_headers in *" | 
|  | 14427 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 14428 | esac | 
|  | 14429 |  | 
|  | 14430 |  | 
|  | 14431 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | # Files that config.status was made for. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14433 | config_files="$ac_config_files" | 
|  | 14434 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14436 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14440 | \`$as_me' instantiates files and other configuration actions | 
|  | 14441 | from templates according to the current configuration.  Unless the files | 
|  | 14442 | 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] | 14443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14444 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14445 |  | 
|  | 14446 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14447 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | --config     print configuration, then exit | 
|  | 14449 | -q, --quiet, --silent | 
|  | 14450 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14451 | -d, --debug      don't remove temporary files | 
|  | 14452 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 | --file=FILE[:TEMPLATE] | 
|  | 14454 | instantiate the configuration file FILE | 
|  | 14455 | --header=FILE[:TEMPLATE] | 
|  | 14456 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14457 |  | 
|  | 14458 | Configuration files: | 
|  | 14459 | $config_files | 
|  | 14460 |  | 
|  | 14461 | Configuration headers: | 
|  | 14462 | $config_headers | 
|  | 14463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14464 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14465 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14466 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14467 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14468 | 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] | 14469 | ac_cs_version="\\ | 
| Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 14470 | python config.status 3.3 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14471 | configured by $0, generated by GNU Autoconf 2.65, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14472 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14474 | Copyright (C) 2009 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | This config.status script is free software; the Free Software Foundation | 
|  | 14476 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14477 |  | 
|  | 14478 | ac_pwd='$ac_pwd' | 
|  | 14479 | srcdir='$srcdir' | 
|  | 14480 | INSTALL='$INSTALL' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14481 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | _ACEOF | 
|  | 14483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14485 | # 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] | 14486 | ac_need_defaults=: | 
|  | 14487 | while test $# != 0 | 
|  | 14488 | do | 
|  | 14489 | case $1 in | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14490 | --*=*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14491 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 14492 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14493 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14495 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14496 | ac_option=$1 | 
|  | 14497 | ac_optarg=$2 | 
|  | 14498 | ac_shift=shift | 
|  | 14499 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | esac | 
|  | 14501 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14502 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14504 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 14505 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14506 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 14508 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 14509 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14510 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | debug=: ;; | 
|  | 14512 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14513 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 | case $ac_optarg in | 
|  | 14515 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 14516 | esac | 
|  | 14517 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | ac_need_defaults=false;; | 
|  | 14519 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14520 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14521 | case $ac_optarg in | 
|  | 14522 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 14523 | esac | 
|  | 14524 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14526 | --he | --h) | 
|  | 14527 | # Conflict between --help and --header | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14528 | as_fn_error "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14530 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14531 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 14533 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 14534 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14535 |  | 
|  | 14536 | # This is an error. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14537 | -*) as_fn_error "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14538 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14540 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14541 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 |  | 
|  | 14543 | esac | 
|  | 14544 | shift | 
|  | 14545 | done | 
|  | 14546 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14547 | ac_configure_extra_args= | 
|  | 14548 |  | 
|  | 14549 | if $ac_cs_silent; then | 
|  | 14550 | exec 6>/dev/null | 
|  | 14551 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 14552 | fi | 
|  | 14553 |  | 
|  | 14554 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14555 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14556 | if \$ac_cs_recheck; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14557 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 14558 | shift | 
|  | 14559 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 14560 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14561 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14562 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14563 | fi | 
|  | 14564 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14566 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14567 | exec 5>>config.log | 
|  | 14568 | { | 
|  | 14569 | echo | 
|  | 14570 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 14571 | ## Running $as_me. ## | 
|  | 14572 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14573 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14574 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14576 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14577 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14578 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14581 |  | 
|  | 14582 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 | for ac_config_target in $ac_config_targets | 
|  | 14584 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14585 | case $ac_config_target in | 
|  | 14586 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 14587 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 14588 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14589 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 14590 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14591 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 14592 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14593 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14594 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14595 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14596 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | esac | 
|  | 14598 | done | 
|  | 14599 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14600 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 14602 | # then the envvar interface is used.  Set only those that are not. | 
|  | 14603 | # We use the long form for the default assignment because of an extremely | 
|  | 14604 | # bizarre bug on SunOS 4.1.3. | 
|  | 14605 | if $ac_need_defaults; then | 
|  | 14606 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 14607 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 14608 | fi | 
|  | 14609 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14610 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14611 | # 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] | 14612 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14613 | # Hook for its removal unless debugging. | 
|  | 14614 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 14615 | # 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] | 14616 | $debug || | 
|  | 14617 | { | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14618 | tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14619 | trap 'exit_status=$? | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14620 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14621 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14622 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14627 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14628 | test -n "$tmp" && test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | }  || | 
|  | 14630 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14631 | tmp=./conf$$-$RANDOM | 
|  | 14632 | (umask 077 && mkdir "$tmp") | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14633 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14635 | # Set up the scripts for CONFIG_FILES section. | 
|  | 14636 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 14637 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14638 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14640 |  | 
|  | 14641 | ac_cr=`echo X | tr X '\015'` | 
|  | 14642 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 14643 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 14644 | # point, so we can use a bashism as a fallback. | 
|  | 14645 | if test "x$ac_cr" = x; then | 
|  | 14646 | eval ac_cr=\$\'\\r\' | 
|  | 14647 | fi | 
|  | 14648 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 14649 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14650 | ac_cs_awk_cr='\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14651 | else | 
|  | 14652 | ac_cs_awk_cr=$ac_cr | 
|  | 14653 | fi | 
|  | 14654 |  | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14655 | echo 'BEGIN {' >"$tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14656 | _ACEOF | 
|  | 14657 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14659 | { | 
|  | 14660 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 14661 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 14662 | echo "_ACEOF" | 
|  | 14663 | } >conf$$subs.sh || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14664 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 14665 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14666 | ac_delim='%!_!# ' | 
|  | 14667 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14668 | . ./conf$$subs.sh || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14669 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14670 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14671 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 14672 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14673 | break | 
|  | 14674 | elif $ac_last_try; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14675 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14676 | else | 
|  | 14677 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14679 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14680 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14681 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14683 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14684 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14685 | sed -n ' | 
|  | 14686 | h | 
|  | 14687 | s/^/S["/; s/!.*/"]=/ | 
|  | 14688 | p | 
|  | 14689 | g | 
|  | 14690 | s/^[^!]*!// | 
|  | 14691 | :repl | 
|  | 14692 | t repl | 
|  | 14693 | s/'"$ac_delim"'$// | 
|  | 14694 | t delim | 
|  | 14695 | :nl | 
|  | 14696 | h | 
|  | 14697 | s/\(.\{148\}\)..*/\1/ | 
|  | 14698 | t more1 | 
|  | 14699 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 14700 | p | 
|  | 14701 | n | 
|  | 14702 | b repl | 
|  | 14703 | :more1 | 
|  | 14704 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14705 | p | 
|  | 14706 | g | 
|  | 14707 | s/.\{148\}// | 
|  | 14708 | t nl | 
|  | 14709 | :delim | 
|  | 14710 | h | 
|  | 14711 | s/\(.\{148\}\)..*/\1/ | 
|  | 14712 | t more2 | 
|  | 14713 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 14714 | p | 
|  | 14715 | b | 
|  | 14716 | :more2 | 
|  | 14717 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14718 | p | 
|  | 14719 | g | 
|  | 14720 | s/.\{148\}// | 
|  | 14721 | t delim | 
|  | 14722 | ' <conf$$subs.awk | sed ' | 
|  | 14723 | /^[^""]/{ | 
|  | 14724 | N | 
|  | 14725 | s/\n// | 
|  | 14726 | } | 
|  | 14727 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14728 | rm -f conf$$subs.awk | 
|  | 14729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14730 | _ACAWK | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14731 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 | for (key in S) S_is_set[key] = 1 | 
|  | 14733 | FS = "" | 
|  | 14734 |  | 
|  | 14735 | } | 
|  | 14736 | { | 
|  | 14737 | line = $ 0 | 
|  | 14738 | nfields = split(line, field, "@") | 
|  | 14739 | substed = 0 | 
|  | 14740 | len = length(field[1]) | 
|  | 14741 | for (i = 2; i < nfields; i++) { | 
|  | 14742 | key = field[i] | 
|  | 14743 | keylen = length(key) | 
|  | 14744 | if (S_is_set[key]) { | 
|  | 14745 | value = S[key] | 
|  | 14746 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 14747 | len += length(value) + length(field[++i]) | 
|  | 14748 | substed = 1 | 
|  | 14749 | } else | 
|  | 14750 | len += 1 + keylen | 
|  | 14751 | } | 
|  | 14752 |  | 
|  | 14753 | print line | 
|  | 14754 | } | 
|  | 14755 |  | 
|  | 14756 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14757 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14759 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 14760 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 14761 | else | 
|  | 14762 | cat | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14763 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14764 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14765 | _ACEOF | 
|  | 14766 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14767 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 14768 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14769 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 14770 | # (actually we leave an empty line to preserve line numbers). | 
|  | 14771 | if test "x$srcdir" = x.; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14772 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
|  | 14773 | s/:*\$(srcdir):*/:/ | 
|  | 14774 | s/:*\${srcdir}:*/:/ | 
|  | 14775 | s/:*@srcdir@:*/:/ | 
|  | 14776 | s/^\([^=]*=[	 ]*\):*/\1/ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14777 | s/:*$// | 
|  | 14778 | s/^[^=]*=[	 ]*$// | 
|  | 14779 | }' | 
|  | 14780 | fi | 
|  | 14781 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | fi # test -n "$CONFIG_FILES" | 
|  | 14784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14785 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 14786 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 14787 | # This happens for instance with `./config.status Makefile'. | 
|  | 14788 | if test -n "$CONFIG_HEADERS"; then | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14789 | cat >"$tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14790 | BEGIN { | 
|  | 14791 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14792 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14793 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 14794 | # here-document in config.status, that substitutes the proper values into | 
|  | 14795 | # config.h.in to produce config.h. | 
|  | 14796 |  | 
|  | 14797 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 14798 | # handling of long lines. | 
|  | 14799 | ac_delim='%!_!# ' | 
|  | 14800 | for ac_last_try in false false :; do | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14801 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 14802 | if test -z "$ac_t"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14803 | break | 
|  | 14804 | elif $ac_last_try; then | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14805 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14806 | else | 
|  | 14807 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 14808 | fi | 
|  | 14809 | done | 
|  | 14810 |  | 
|  | 14811 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 14812 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 14813 | # newline sequences. | 
|  | 14814 |  | 
|  | 14815 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 14816 | sed -n ' | 
|  | 14817 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14818 | t rset | 
|  | 14819 | :rset | 
|  | 14820 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 14821 | t def | 
|  | 14822 | d | 
|  | 14823 | :def | 
|  | 14824 | s/\\$// | 
|  | 14825 | t bsnl | 
|  | 14826 | s/["\\]/\\&/g | 
|  | 14827 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14828 | D["\1"]=" \3"/p | 
|  | 14829 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 14830 | d | 
|  | 14831 | :bsnl | 
|  | 14832 | s/["\\]/\\&/g | 
|  | 14833 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14834 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 14835 | t cont | 
|  | 14836 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 14837 | t cont | 
|  | 14838 | d | 
|  | 14839 | :cont | 
|  | 14840 | n | 
|  | 14841 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14842 | t clear | 
|  | 14843 | :clear | 
|  | 14844 | s/\\$// | 
|  | 14845 | t bsnlc | 
|  | 14846 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 14847 | d | 
|  | 14848 | :bsnlc | 
|  | 14849 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 14850 | b cont | 
|  | 14851 | ' <confdefs.h | sed ' | 
|  | 14852 | s/'"$ac_delim"'/"\\\ | 
|  | 14853 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14854 |  | 
|  | 14855 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14856 | for (key in D) D_is_set[key] = 1 | 
|  | 14857 | FS = "" | 
|  | 14858 | } | 
|  | 14859 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 14860 | line = \$ 0 | 
|  | 14861 | split(line, arg, " ") | 
|  | 14862 | if (arg[1] == "#") { | 
|  | 14863 | defundef = arg[2] | 
|  | 14864 | mac1 = arg[3] | 
|  | 14865 | } else { | 
|  | 14866 | defundef = substr(arg[1], 2) | 
|  | 14867 | mac1 = arg[2] | 
|  | 14868 | } | 
|  | 14869 | split(mac1, mac2, "(") #) | 
|  | 14870 | macro = mac2[1] | 
|  | 14871 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 14872 | if (D_is_set[macro]) { | 
|  | 14873 | # Preserve the white space surrounding the "#". | 
|  | 14874 | print prefix "define", macro P[macro] D[macro] | 
|  | 14875 | next | 
|  | 14876 | } else { | 
|  | 14877 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 14878 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 14879 | # on some systems where configure will not decide to define it. | 
|  | 14880 | if (defundef == "undef") { | 
|  | 14881 | print "/*", prefix defundef, macro, "*/" | 
|  | 14882 | next | 
|  | 14883 | } | 
|  | 14884 | } | 
|  | 14885 | } | 
|  | 14886 | { print } | 
|  | 14887 | _ACAWK | 
|  | 14888 | _ACEOF | 
|  | 14889 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14890 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14891 | fi # test -n "$CONFIG_HEADERS" | 
|  | 14892 |  | 
|  | 14893 |  | 
|  | 14894 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 14895 | shift | 
|  | 14896 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14897 | do | 
|  | 14898 | case $ac_tag in | 
|  | 14899 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 14900 | esac | 
|  | 14901 | case $ac_mode$ac_tag in | 
|  | 14902 | :[FHL]*:*);; | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14903 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14904 | :[FH]-) ac_tag=-:-;; | 
|  | 14905 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 14906 | esac | 
|  | 14907 | ac_save_IFS=$IFS | 
|  | 14908 | IFS=: | 
|  | 14909 | set x $ac_tag | 
|  | 14910 | IFS=$ac_save_IFS | 
|  | 14911 | shift | 
|  | 14912 | ac_file=$1 | 
|  | 14913 | shift | 
|  | 14914 |  | 
|  | 14915 | case $ac_mode in | 
|  | 14916 | :L) ac_source=$1;; | 
|  | 14917 | :[FH]) | 
|  | 14918 | ac_file_inputs= | 
|  | 14919 | for ac_f | 
|  | 14920 | do | 
|  | 14921 | case $ac_f in | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14922 | -) ac_f="$tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14923 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 14924 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 14925 | # because $ac_f cannot contain `:'. | 
|  | 14926 | test -f "$ac_f" || | 
|  | 14927 | case $ac_f in | 
|  | 14928 | [\\/$]*) false;; | 
|  | 14929 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 14930 | esac || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14931 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14932 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14933 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 14934 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14935 | done | 
|  | 14936 |  | 
|  | 14937 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 14938 | # use $as_me), people would be surprised to read: | 
|  | 14939 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14940 | configure_input='Generated from '` | 
|  | 14941 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 14942 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14943 | if test x"$ac_file" != x-; then | 
|  | 14944 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 14946 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14947 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14948 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 14949 | case $configure_input in #( | 
|  | 14950 | *\&* | *\|* | *\\* ) | 
|  | 14951 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 14952 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 14953 | *) ac_sed_conf_input=$configure_input;; | 
|  | 14954 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14955 |  | 
|  | 14956 | case $ac_tag in | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14957 | *:-:* | *:-) cat >"$tmp/stdin" \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 14958 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14959 | esac | 
|  | 14960 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | esac | 
|  | 14962 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14963 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14964 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14965 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 14966 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14967 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14968 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14969 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 14970 | s//\1/ | 
|  | 14971 | q | 
|  | 14972 | } | 
|  | 14973 | /^X\(\/\/\)[^/].*/{ | 
|  | 14974 | s//\1/ | 
|  | 14975 | q | 
|  | 14976 | } | 
|  | 14977 | /^X\(\/\/\)$/{ | 
|  | 14978 | s//\1/ | 
|  | 14979 | q | 
|  | 14980 | } | 
|  | 14981 | /^X\(\/\).*/{ | 
|  | 14982 | s//\1/ | 
|  | 14983 | q | 
|  | 14984 | } | 
|  | 14985 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14986 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14987 | ac_builddir=. | 
|  | 14988 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14989 | case "$ac_dir" in | 
|  | 14990 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 14991 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14992 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14993 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14994 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14995 | case $ac_top_builddir_sub in | 
|  | 14996 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 14997 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 14998 | esac ;; | 
|  | 14999 | esac | 
|  | 15000 | ac_abs_top_builddir=$ac_pwd | 
|  | 15001 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 15002 | # for backward compatibility: | 
|  | 15003 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 |  | 
|  | 15005 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15006 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15008 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 15009 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 15010 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15012 | ac_top_srcdir=$srcdir | 
|  | 15013 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 15014 | *) # Relative name. | 
|  | 15015 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 15016 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 15017 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15018 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15020 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15022 | case $ac_mode in | 
|  | 15023 | :F) | 
|  | 15024 | # | 
|  | 15025 | # CONFIG_FILE | 
|  | 15026 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 |  | 
|  | 15028 | case $INSTALL in | 
|  | 15029 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15030 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15031 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15032 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15033 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15035 | # If the template does not know about datarootdir, expand it. | 
|  | 15036 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 15037 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15038 | ac_sed_dataroot=' | 
|  | 15039 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15040 | p | 
|  | 15041 | q | 
|  | 15042 | } | 
|  | 15043 | /@datadir@/p | 
|  | 15044 | /@docdir@/p | 
|  | 15045 | /@infodir@/p | 
|  | 15046 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15047 | /@mandir@/p' | 
|  | 15048 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15049 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 15050 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 15052 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15053 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15055 | ac_datarootdir_hack=' | 
|  | 15056 | s&@datadir@&$datadir&g | 
|  | 15057 | s&@docdir@&$docdir&g | 
|  | 15058 | s&@infodir@&$infodir&g | 
|  | 15059 | s&@localedir@&$localedir&g | 
|  | 15060 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15061 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15062 | esac | 
|  | 15063 | _ACEOF | 
|  | 15064 |  | 
|  | 15065 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 15066 | # Shell code in configure.ac might set extrasub. | 
|  | 15067 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 15069 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | $extrasub | 
|  | 15071 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | :t | 
|  | 15074 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15075 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15076 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15077 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15078 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 15079 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 15080 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 15081 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 15082 | s&@builddir@&$ac_builddir&;t t | 
|  | 15083 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 15084 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 15085 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 15086 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15087 | " | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15088 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15089 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15090 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15091 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15092 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 15093 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15095 | which seems to be undefined.  Please make sure it is defined." >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15096 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15097 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15098 |  | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15099 | rm -f "$tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | case $ac_file in | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15101 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 
|  | 15102 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15103 | esac \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15104 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15105 | ;; | 
|  | 15106 | :H) | 
|  | 15107 | # | 
|  | 15108 | # CONFIG_HEADER | 
|  | 15109 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15111 | { | 
|  | 15112 | $as_echo "/* $configure_input  */" \ | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15113 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 
|  | 15114 | } >"$tmp/config.h" \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15115 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15116 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 15118 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | rm -f "$ac_file" | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15121 | mv "$tmp/config.h" "$ac_file" \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15122 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | fi | 
|  | 15124 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15125 | $as_echo "/* $configure_input  */" \ | 
| Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15126 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15127 | || as_fn_error "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15129 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15130 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15131 |  | 
|  | 15132 | esac | 
|  | 15133 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15134 |  | 
|  | 15135 | case $ac_file$ac_mode in | 
|  | 15136 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 15137 |  | 
|  | 15138 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15139 | done # for ac_tag | 
|  | 15140 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15141 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15142 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | ac_clean_files=$ac_clean_files_save | 
|  | 15145 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15146 | test $ac_write_fail = 0 || | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15147 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15148 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 |  | 
|  | 15150 | # configure is writing to config.log, and then calls config.status. | 
|  | 15151 | # config.status does its own redirection, appending to config.log. | 
|  | 15152 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 15153 | # by configure, so config.status won't be able to write to it; its | 
|  | 15154 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 15155 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 15156 | # appended to by config.status.  When coming back to configure, we | 
|  | 15157 | # need to make the FD available again. | 
|  | 15158 | if test "$no_create" != yes; then | 
|  | 15159 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15160 | ac_config_status_args= | 
|  | 15161 | test "$silent" = yes && | 
|  | 15162 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15164 | $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] | 15165 | exec 5>>config.log | 
|  | 15166 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 15167 | # would make configure fail if this is the last instruction. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 15168 | $ac_cs_success || as_fn_exit $? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | fi | 
|  | 15170 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 15172 | $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] | 15173 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15174 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15175 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15176 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15177 | if test ! -f Modules/Setup | 
|  | 15178 | then | 
|  | 15179 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 15180 | fi | 
|  | 15181 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15182 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15183 | if test ! -f Modules/Setup.local | 
|  | 15184 | then | 
|  | 15185 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 15186 | fi | 
|  | 15187 |  | 
|  | 15188 | echo "creating Makefile" | 
|  | 15189 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 15190 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15191 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15192 | mv config.c Modules |